Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: sontakke@hobby.nl (Vikas Sontakke)
Subject: Re: Finding PagesSize and Physical Memory Installed on OSF/1 m/c?
Date: 1997/12/12	[thread overview]
Message-ID: <66rpgs$nvq$1@mrnews.mro.dec.com> (raw)
In-Reply-To: 34907172.4287@alf.dec.com


#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




  reply	other threads:[~1997-12-12  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-11  5:00 Finding PagesSize and Physical Memory Installed on OSF/1 m/c? Michael Genovese
1997-12-11  5:00 ` Tyler Hall
1997-12-12  5:00   ` Vikas Sontakke [this message]
1997-12-17  5:00     ` Jeremy Levine
1997-12-11  5:00 ` Knut Vietze
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