From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,fb28fd8bb1625057 X-Google-Attributes: gid111c93,public From: Daniel Barker Subject: Re: Not enough memory? Date: 1998/09/30 Message-ID: #1/1 X-Deja-AN: 396224649 References: <360A3995.B3AC3453@zutt.ch> To: Thomas Kuhn Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: usenet@scotsman.ed.ac.uk X-Trace: scotsman.ed.ac.uk 907121150 23437 129.215.38.17 (30 Sep 1998 02:05:50 GMT) Organization: Edinburgh University Mime-Version: 1.0 NNTP-Posting-Date: 30 Sep 1998 02:05:50 GMT Newsgroups: comp.os.linux.alpha On Thu, 24 Sep 1998, Thomas Kuhn wrote: > When I start up my Alpha, everything seems to be normal (~ 20 MB are > used) - when I then compile large packages (e.g. KDE), free memory goes > down to 2-8 MB. What makes me really wondering is that after compiling I > have not got much more free mem than during the compilation process. Is > that normal? Is this perhaps a cause of the installation of RedHat 5.1 > or do I just have not enough ram (128 MB are installed, which should be, > shouldn't it?). Just one thing to check before worrying. Sometimes unused memory is left for buffers and cache, and doesn't always SEEM free. e.g., % free total used free shared buffers cached Mem: 78284 60816 17468 14324 12292 36372 -/+ buffers/cache: 12152 66132 Swap: 50956 0 50956 As I understand it, memory "really" free is 66132 K rather than 17468 K, and memory "really" used is 12152 K. The system can quickly reclaim memory from buffers and cache if necessary. It's just left allocated as buffers and cache because this might be useful. The relative amounts recorded as "free", "buffers" and "cache" move in mysterious ways. This doesn't seem to matter. When the amount of swap space used is more than 0, then RAM really has been used up at some stage since the last re-boot. The "swap used" figure seems to only decrease gradually after this, until the next re-boot. So it does not necessarily mean RAM is in short supply NOW. Look at the command "vmstat" to see what's happening at any time. This is from a SPARC with 80M of RAM. But I think similar applies to all Linux systems. Daniel Barker, Institute of Cell and Molecular Biology, Swann Building, King's Buildings, Mayfield Road, Edinburgh EH9 3JR UK