Messages in this thread | | | Date | Thu, 11 Jan 2007 08:45:02 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: O_DIRECT question |
| |
On Thu, 11 Jan 2007, Roy Huang wrote: > > On a embedded systerm, limiting page cache can relieve memory > fragmentation. There is a patch against 2.6.19, which limit every > opened file page cache and total pagecache. When the limit reach, it > will release the page cache overrun the limit.
I do think that something like this is probably a good idea, even on non-embedded setups. We historically couldn't do this, because mapped pages were too damn hard to remove, but that's obviously not much of a problem any more.
However, the page-cache limit should NOT be some compile-time constant. It should work the same way the "dirty page" limit works, and probably just default to "feel free to use 90% of memory for page cache".
Linus - 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/
| |