]> Git Repo - linux.git/commit
mm: stop kswapd's infinite loop at high order allocation
authorKOSAKI Motohiro <[email protected]>
Tue, 6 Jan 2009 22:40:33 +0000 (14:40 -0800)
committerLinus Torvalds <[email protected]>
Tue, 6 Jan 2009 23:59:10 +0000 (15:59 -0800)
commit73ce02e96fe34a983199a9855b2ae738f960a6ee
tree06dbbc2c38d55f8eacab09c55a68c736156b9540
parent594fe1a044325bb0a1a49ca7d086e3df4f1df59a
mm: stop kswapd's infinite loop at high order allocation

Wassim Dagash reported following kswapd infinite loop problem.

  kswapd runs in some infinite loop trying to swap until order 10 of zone
  highmem is OK.... kswapd will continue to try to balance order 10 of zone
  highmem forever (or until someone release a very large chunk of highmem).

For non order-0 allocations, the system may never be balanced due to
fragmentation but kswapd should not infinitely loop as a result.

Instead, recheck all watermarks at order-0 as they are the most important.
If watermarks are ok, kswapd will go back to sleep.

[[email protected]: fix comment]
Reported-by: wassim dagash <[email protected]>
Signed-off-by: KOSAKI Motohiro <[email protected]>
Reviewed-by: Nick Piggin <[email protected]>
Signed-off-by: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c
This page took 0.076786 seconds and 4 git commands to generate.