From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,630e7c9211e092fd X-Google-Attributes: gidfee84,public From: haymanr@icefog.alaska.edu (Randy M. Hayman) Subject: Re: Way to show RAM size from shell? Date: 1996/08/12 Message-ID: <4uo0lp$g3s@news.alaska.edu>#1/1 X-Deja-AN: 173753813 distribution: world references: <320A6D0D.41C6@panbio.com> organization: University of Alaska reply-to: haymanr@icefog.alaska.edu newsgroups: comp.unix.osf.osf1 Daniel Hillman (danielh@panbio.com) wrote: |> I am trying to find a way to display the amount of RAM on a |> DEC 3000 without resorting to the boot prom monitor. |> |> Anyone know of a shell-available |> system command that will display amount of |> RAM on board? |> take the following, compile it (cc -o physmem physmem.c), and place the executable in your path: #include #include int status, *int_buff; main() { if( -1 == (status = getsysinfo(GSI_PHYSMEM,&int_buff,sizeof(int_buff),0,0))) fprintf(stdout, "error %d getting GSI_PHYSMEM\n", status); else fprintf(stdout, "Physical memory: %d KB\n", (int)int_buff); } -- Randy M. Hayman haymanr@icefog.alaska.edu "Ethernet works in practice but not in theory" -- Bob Metcalfe