From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 160bfa,f074da1da856f4ce X-Google-Attributes: gid160bfa,public X-Google-Thread: fee84,f074da1da856f4ce X-Google-Attributes: gidfee84,public From: sontakke@hobby.nl (Vikas Sontakke) Subject: Re: Finding PagesSize and Physical Memory Installed on OSF/1 m/c? Date: 1997/12/12 Message-ID: <66rpgs$nvq$1@mrnews.mro.dec.com>#1/1 X-Deja-AN: 297663021 References: <348FE9EA.51D0@NOSPAMPLEASE.slpma8.ed.ray.com> <34907172.4287@alf.dec.com> Followup-To: comp.unix.osf.osf1,compu.unix.admin Organization: Digital Equipment Corporation - Marlboro, MA Newsgroups: comp.unix.osf.osf1,compu.unix.admin #include #include #include 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