kmort
kmort

Reputation: 2948

Find amount of installed memory on QNX system

How do I find the amount of memory installed on my QNX Neutrino system?

Upvotes: 0

Views: 6374

Answers (3)

Emmanuel H.
Emmanuel H.

Reputation: 101

The amount of free RAM is the size of "/proc" !

In your own program, you can write something like this :

#include <sys/stat.h>
struct stat buf;
if (stat("/proc", &buf) != -1) {
    printf("Mem free = %d\n", buf.st_size);
}

-- Hope this help Emmanuel

Upvotes: 4

VinothKumar
VinothKumar

Reputation: 51

showmem -S will show the amount of RAM memory installed as shown below,

showmem -S

System RAM: 1936M ( 2030043136) Total Used: 401M ( 420642376) Used Private: 317M ( 332529404) Used Shared: 79M ( 83333120) Other: 4667K ( 4779852) (includes IFS and reserved RAM)

Upvotes: 4

kmort
kmort

Reputation: 2948

pidin info will show the amount of memory installed, as shown below.

pidin info
CPU:X86 Release:6.4.1  FreeMem:836Mb/1015Mb BootTime:Jun 04 14:01:55 UTC 2014

Upvotes: 6

Related Questions