Messages in this thread | | | Date | Wed, 24 Jan 2007 13:47:44 +0800 | From | "Aubrey Li" <> | Subject | Re: [RFC] Limit the size of the pagecache |
| |
Christoph's patch is better than mine. The only thing I think is that zone->max_pagecache_pages should be checked never less than zone->pages_low.
The good part of the patch is using the existing reclaimer. But the problem in my opinion of the idea is the existing reclaimer too. Think of when vfs cache limit is hit, reclaimer doesn't reclaim all of the reclaimable pages, it just give few out. So next time vfs pagecache request, it is quite possible reclaimer is triggered again. That means after limit is hit, reclaim will be implemented every time fs ops allocating memory. That's the point in my mind impacting the performance of the applications.
-Aubrey - 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/
| |