Re: ~500 megs cached yet 2.6.5 goes into swap hell

From: Andrew Morton
Date: Wed Apr 28 2004 - 18:59:44 EST


"Brett E." <brettspamacct@xxxxxxxxxxxxx> wrote:
>
> I attached sar, slabinfo and /proc/meminfo data on the 2.6.5 machine. I
> reproduce this behavior by simply untarring a 260meg file on a
> production server, the machine becomes sluggish as it swaps to disk.

I see no swapout from the info which you sent.

A `vmstat 1' trace would be more useful.

> Is there a way to limit the cache so this machine, which has 1 gigabyte of
> memory, doesn't dip into swap?

Decrease /proc/sys/vm/swappiness?

Swapout is good. It frees up unused memory. I run my desktop machines at
swappiness=100.

-
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/