* [SUMMARY] Figuring out the amount of physical memory
@ 1998-09-01 9:31 Hakim, Shlomo
0 siblings, 0 replies; only message in thread
From: Hakim, Shlomo @ 1998-09-01 9:31 UTC (permalink / raw)
To: tru64-unix-managers
Hi,
I got a bundle of answers for my question, most of which had to do with
"uerf -R" and then grep-ing for one string or another. Some of you suggested
to grep the /var/adm/messages file for the same info.
The ones I really liked were the following:
Trevor Parry gave me the "vmstat -P" which gives a very nice summary of the
physical memory usage. The "-P" option is not specified in the vmstat(1) man
page which is a petty.
Richard Bemrose contributed the following piece of code:
-- cut --
/* Returns the amount of physical memory
* Specific to Digital UNIX (OSF1)
* Aurthor: Richard Bemrose <rb237@phy.cam.ac.uk>
* Date : 31/08/1998
* Address: Polymers and Colloids Group, Cavendish Laboratory
University of Cambridge, Cambridge, CB3 0HE, UK
*/
#include <stdio.h>
#include <sys/sysinfo.h>
#include <machine/hal_sysinfo.h>
#include <sys/utsname.h>
void main(int argc, char **argv)
{
int memsize;
struct utsname arch;
uname(&arch);
getsysinfo(GSI_PHYSMEM, &memsize, sizeof(memsize), NULL, NULL);
printf("%s has %d Mb of physical memory\n", arch.nodename,
memsize/1024);
}
-- cut --
This is exactly what I was looking for since I want to get the information
within a script rather than just look at it myself.
Thank you all,
Shlomo.
-----Original Message-----
From: Hakim, Shlomo [mailto:shlomo_hakim@icomverse.com]
Sent: Sunday, August 30, 1998 10:47
To: 'Alpha OSF Managers'
Cc: Garfinkel, Yair
Subject: Figuring out the amount of physical memory
Dear Gurus,
Does anyone know a way to figure out the amount of physical memory in a
DU4.0x machine while it is running. All mean are Kosher i.e. shell command
or system call.
Thanks,
Shlomo.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-09-01 9:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-01 9:31 [SUMMARY] Figuring out the amount of physical memory Hakim, Shlomo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox