Re: Over used cache memory?

From: Jose Luis Domingo Lopez
Date: Thu Nov 06 2003 - 14:07:54 EST


On Thursday, 06 November 2003, at 17:15:33 +0800,
Wee Teck Neo wrote:

> procs memory swap io system
> cpu
> r b w swpd free buff cache si so bi bo in cs us sy id
> 1 0 0 92744 9640 20240 801644 0 0 3 10 17 0 25 2 10
>
> The system is having 1GB ram and currently using 92MB as swap. Why does the
> system use the slower swap when there are still memory available (as
> cache). Anyway to "force" the system to use more ram instead of putting
> into swap memory?
>
The obvious solution is to disable swap memory completely if those
90 MiB worth of idle and unused memory pages on disk bother you.

If this "vmstat" output shows your box usual load, with 80% of RAM used
in caches, I think you will never really need swap at all.

--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.0-test9-mm1)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/