Messages in this thread | | | Date | Wed, 28 Apr 2004 17:01:06 -0700 | From | Andrew Morton <> | Subject | Re: ~500 megs cached yet 2.6.5 goes into swap hell |
| |
"Brett E." <brettspamacct@fastclick.com> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |