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: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Way to show RAM size from shell? Date: 1996/08/15 Message-ID: <4uvnkm$boa@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 174453945 distribution: world references: <320A6D0D.41C6@panbio.com> <4uo0lp$g3s@news.alaska.edu> <4usk56$e22@rc1.vub.ac.be> organization: Digital Equipment Corporation reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article <4usk56$e22@rc1.vub.ac.be>, xchi@ulb.ac.be (Chi Xiaochen) writes: >> [ No way I'll keep the atributions straight, but summary is that someone asked how to find out how much memory is on a system. There is no distributed command to find out easily, but the getsysinfo(2) system call has a code to get the information. Just a small matter of programming... ] >The physical memory reported by this program is really total physical memory >installed in a machine, or the memory available to the operating system, that >is physical memory minus the space occupied by the kernel? It is really total physical memory. Early systems stole 2 MB for their PAL code, but recent systems may manage to give some of that back once the OS is booted. It really doesn't matter since the systems support virtual memory and the size of the kernel is very fluid. The kernel memory allocator will wire down paged memory as needed, the buffer cache can consume most of free memory given the chance and will thrash against programs if the conditions are just wrong enough and many drivers are dynamically loadable and will take away memory when loaded. > -- Alan Rollow alan@nabeth.cxo.dec.com