Subject: Re: large files seem to fill up ram
To: David Wetzel <dave@turbocat.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 12/12/2002 09:21:44
On Thu, Dec 12, 2002 at 12:25:40AM +0100, David Wetzel wrote:
> Manuel Bouyer wrote:
> 
> > This is normal. As long as there is free ram, it will be used as cache.
> > This space should be reclaimed as soon as something else needs the RAM.
> 
> why is the swap used here: ?
> 
> CPU states:  0.5% user,  0.0% nice,  0.0% system,  0.0% interrupt, 99.5% idle
> Memory: 221M Act, 113M Inact, 236K Wired, 9460K Exec, 288M File, 6480K Free
> Swap: 499M Total, 51M Used, 449M Free

Maybe because something used a lot of RAM in the past causing a few things
to get swapped out, which have not been needed since then.
Maybe because the number of data page is highter than the min limit for this
type of memory.

> 
> It should be faster to use RAM for memory than to waste it as cache und use swap as mem?!

You also need some RAM to to cache files. A system without filesystem cache
would be awfully slow.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 23 ans d'experience feront toujours la difference
--