On 02/22/2010 08:00 PM, Andrea Arcangeli wrote:
On Mon, Feb 22, 2010 at 12:53:11PM -0500, Rik van Riel wrote:
Once Mel's defragmentation code is in, we can kick off
that code instead when a hugepage allocation fails.
That will be cool yes!! Then maybe we can turn on defrag by
default... (maybe because it'd still slowdown the allocation time)
I think at least for khugepaged invoking memory compaction code by
default is going to be good idea. And then I wonder if it makes sense
to allow the user to disable defrag in khugepaged, if yes then it'd
require a new sysfs file in the khugepaged directory.
If we detect hugepage pressure, we can run compaction in a separate
thread, so we can have low latency allocations.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>