On Mon, 12 Feb 2001, Hidong Kim wrote:

> Hi,
>
> I often see on my system that it's using a lot of swap, but not all of
> its ram.  Here's a free:
>
>              total       used       free     shared    buffers
> cached
> Mem:        387272     236548     150724      32244       8448
> 59760
> -/+ buffers/cache:     168340     218932
> Swap:       819072      63972     755100
>
>
> Why does the system use swap when there's available ram?  Thanks,
>
>
>
> Hidong
>
>
This may happen if the system needs memory and swaps code that isn't
being used out to disk, and then later, when memory usage drops, if hte
code still isn't needed, it leaves them swapped out untill they are
needed.  One way this can happen is if you have daemons waiting for a
connection.  The code is not going to be run untill someone connects, so
why swap it back into memory untill needed.  That way, the memory can be
used for something, rather then sitting unused, or having to swap the
same code back out to disk if memory usage increases.

Running X and Netscape is a good way to cause code to be swapped!

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to