From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b8a884c72ed0e02c X-Google-Attributes: gidfee84,public From: Dan.Pop@mail.cern.ch (Dan Pop) Subject: Re: How can I find the real memory of a Digital Unix 3.x system Date: 1995/09/30 Message-ID: #1/1 X-Deja-AN: 110981688 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <44fe6o$erk@newsbf02.news.aol.com> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.osf.osf1 In <44fe6o$erk@newsbf02.news.aol.com> anjone@aol.com (ANJONE) writes: >Could you please let me know how I can do that -- instead of >/usr/adm/messages file, I would prefer some C programming, API/System call >or command. #include #include main() { int memsize; getsysinfo(GSI_PHYSMEM, (caddr_t)&memsize, sizeof(memsize), NULL, NULL); printf("Memory size: %d KB\n", memsize); return 0; } Dan -- Dan Pop CERN, CN Division Email: Dan.Pop@mail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland