From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,410d695a769d7cb8 X-Google-Attributes: gidfee84,public From: danpop@afsmail.cern.ch (Dan Pop) Subject: Re: determining real memory on OSF/1 3.0 Date: 1995/05/05 Message-ID: #1/1 X-Deja-AN: 102114856 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <3odjps$231@homer.alpha.net> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.osf.osf1 In <3odjps$231@homer.alpha.net> Mark Palmer writes: >Does anyone know of a command that will tell how much real memory is >installed under OSF/1 v3.0 > Use vmstat and compute (act + free + wire) * 8192. The result will be only a few megs less than the amount of real memory installed. If you have top installed, you can avoid the computation by looking at its output. If you want the exact value, compile this proggie: #define ULT_BIN_COMPAT 1 #include #include main() { int memsize; getsysinfo(GSI_PHYSMEM, &memsize, sizeof(memsize), NULL, NULL); printf("This machine has %d Kb of memory\n", memsize); return 0; } The #define is needed for OSF/1 2.x. Dan -- Dan Pop CERN, CN Division Email: danpop@afsmail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland