From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fe8bc39b11ec10a9 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-27 17:49:12 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.mathworks.com!yeshua.marcam.com!charnel.ecst.csuchico.edu!olivea!decwrl!pa.dec.com!decuac.dec.com!usenet From: murphy@dco.dec.com (Rick Murphy) Newsgroups: comp.unix.osf.osf1 Subject: Re: How much memory? Date: 27 Oct 1994 17:41:59 GMT Organization: Digital Equipment Corporation, Landover MD Distribution: world Message-ID: <38oop7$dih@decuac.dec.com> References: <38oma6$s14@rlsaxp.bnsc.rl.ac.uk> Reply-To: murphy@dco.dec.com NNTP-Posting-Host: rhmosf.dco.dec.com X-Newsreader: mxrn 6.18-24 In article <38oma6$s14@rlsaxp.bnsc.rl.ac.uk>, djr@rlsaxp.bnsc.rl.ac.uk (David Rawlinson) writes: >Apologies if this is simple but I can't for the life of me figure out >how you find out "simply" how much memory there is on an OSF/1 system. > ... >Why haven't DEC provided the tool? getsysinfo GSI_PHYSMEM provides the hook. A little program that uses it is attached. -Rick #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 Kb of memory\n", memsize); exit(0); } -- Rick Murphy, WA1SPT/4 Washington Federal Programs Office Domain: murphy@dco.dec.com Technical Support Group Bang: decwrl!burfle.enet!murphy This posting expresses MY opinions only; Ding: 301-306-2040. I do not speak for Digital.