From: danpop@afsmail.cern.ch (Dan Pop)
Subject: Re: determining real memory on OSF/1 3.0
Date: 1995/05/05 [thread overview]
Message-ID: <danpop.799697868@rscernix> (raw)
In-Reply-To: 3odjps$231@homer.alpha.net
In <3odjps$231@homer.alpha.net> Mark Palmer <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 <stdio.h>
#include <sys/sysinfo.h>
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
next prev parent reply other threads:[~1995-05-05 4:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-05 4:00 determining real memory on OSF/1 3.0 Mark Palmer
1995-05-05 4:00 ` Dirk Grunwald
1995-05-05 4:00 ` Dan Pop [this message]
1995-05-05 4:00 ` Garry
1995-05-05 4:00 ` Dan Pop
1995-05-08 4:00 ` Burkhard Neidecker-Lutz
1995-05-08 4:00 ` Dan Pop
1995-05-09 4:00 ` Torbj|rn Lindgren
1995-05-09 4:00 ` Burkhard Neidecker-Lutz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox