* Finding PagesSize and Physical Memory Installed on OSF/1 m/c?
@ 1997-12-11 5:00 Michael Genovese
1997-12-11 5:00 ` Knut Vietze
1997-12-11 5:00 ` Tyler Hall
0 siblings, 2 replies; 5+ messages in thread
From: Michael Genovese @ 1997-12-11 5:00 UTC (permalink / raw)
Is there a way to find, preferably using some standard OSF/1
utility / command, to find the PageSize and Physical Memory installed
on a given DEC-ALPHA machine running OSF1 ?
I need to be able to do this from within a PERL script.
pagesize seems to give what's needed for that, but I've
found nothing for the physical installed memory...
--
Mike Genovese, Sr. S/W Engineer
Software Engineering Laboratory, Raytheon, Marlborough, MA
508-490-3891
My opinions are my own, and NOT necessarily those of my employer.
Remove the "NOSPAMPLEASE." from my id to reply.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Finding PagesSize and Physical Memory Installed on OSF/1 m/c?
1997-12-11 5:00 Finding PagesSize and Physical Memory Installed on OSF/1 m/c? Michael Genovese
@ 1997-12-11 5:00 ` Knut Vietze
1997-12-11 5:00 ` Tyler Hall
1 sibling, 0 replies; 5+ messages in thread
From: Knut Vietze @ 1997-12-11 5:00 UTC (permalink / raw)
Michael Genovese wrote:
>
> Is there a way to find, preferably using some standard OSF/1
> utility / command, to find the PageSize and Physical Memory installed
> on a given DEC-ALPHA machine running OSF1 ?
>
> I need to be able to do this from within a PERL script.
>
> pagesize seems to give what's needed for that, but I've
> found nothing for the physical installed memory...
>
>
> --
> Mike Genovese, Sr. S/W Engineer
> Software Engineering Laboratory, Raytheon, Marlborough, MA
> 508-490-3891
> My opinions are my own, and NOT necessarily those of my employer.
> Remove the "NOSPAMPLEASE." from my id to reply.
I messed around with this quite for long, but I didn't find a smart
solution. Anyway, you may want to try to examine the system errorlog,
since the kernel logs the amount of installed memory at system startup:
# /usr/sbin/uerf -r 300 | grep physical | tail -1
^
|
------------------+ Record No 300: Operational event: System startup
As already said: far from being smart, but the only way I currently
have knowledge of. Have fun.
--
+----------------------------------------------+
| Knut Vietze, vietze@theory.phy.tu-dresden.de |
| vietze@iws.fhg.de |
| |
| No RISC - No Fun ! |
+----------------------------------------------+
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Finding PagesSize and Physical Memory Installed on OSF/1 m/c?
1997-12-11 5:00 Finding PagesSize and Physical Memory Installed on OSF/1 m/c? Michael Genovese
1997-12-11 5:00 ` Knut Vietze
@ 1997-12-11 5:00 ` Tyler Hall
1997-12-12 5:00 ` Vikas Sontakke
1 sibling, 1 reply; 5+ messages in thread
From: Tyler Hall @ 1997-12-11 5:00 UTC (permalink / raw)
how about:
uerf | grep "physical memory" |head -1
Tyler
Michael Genovese wrote:
>
> Is there a way to find, preferably using some standard OSF/1
> utility / command, to find the PageSize and Physical Memory installed
> on a given DEC-ALPHA machine running OSF1 ?
>
> I need to be able to do this from within a PERL script.
>
> pagesize seems to give what's needed for that, but I've
> found nothing for the physical installed memory...
>
>
> --
> Mike Genovese, Sr. S/W Engineer
> Software Engineering Laboratory, Raytheon, Marlborough, MA
> 508-490-3891
> My opinions are my own, and NOT necessarily those of my employer.
> Remove the "NOSPAMPLEASE." from my id to reply.
--
Tyler Hall Digital Equipment Corp
Digital UNIX Support Alpharetta GA
hall@alf.dec.com 1-800-354-9000
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Finding PagesSize and Physical Memory Installed on OSF/1 m/c?
1997-12-11 5:00 ` Tyler Hall
@ 1997-12-12 5:00 ` Vikas Sontakke
1997-12-17 5:00 ` Jeremy Levine
0 siblings, 1 reply; 5+ messages in thread
From: Vikas Sontakke @ 1997-12-12 5:00 UTC (permalink / raw)
#include <stdio.h>
#include <sys/sysinfo.h>
#include <machine/hal_sysinfo.h>
main(argc, argv)
int argc;
char **argv;
{
int memsize;
getsysinfo(GSI_PHYSMEM, &memsize, sizeof(memsize), NULL, NULL);
printf("This machine has %d Mb of memory\n",
(memsize+1024)/1024 );
/* printf("This machine has %d Kb of memory\n", memsize); */
exit(0);
}
--
Vikas Sontakke sontakke@helix.enet.dec.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Finding PagesSize and Physical Memory Installed on OSF/1 m/c?
1997-12-12 5:00 ` Vikas Sontakke
@ 1997-12-17 5:00 ` Jeremy Levine
0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Levine @ 1997-12-17 5:00 UTC (permalink / raw)
One more for the bunch "vmstat -P" the first line in Ph. mem
--
Jeremy Levine -- levine@amarex.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1997-12-17 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-11 5:00 Finding PagesSize and Physical Memory Installed on OSF/1 m/c? Michael Genovese
1997-12-11 5:00 ` Knut Vietze
1997-12-11 5:00 ` Tyler Hall
1997-12-12 5:00 ` Vikas Sontakke
1997-12-17 5:00 ` Jeremy Levine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox