[PATCH] Optimize off-node performance of zone reclaim
authorChristoph Lameter <clameter@engr.sgi.com>
Wed, 1 Feb 2006 11:05:25 +0000 (03:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:14 +0000 (08:53 -0800)
commit8928862398fef04a137e5673ac5fa9e797960c87
tree141f91c4dd56d323e6f5ce2d47cd1f1d22177aa7
parent537421be79b94bcf620467f50dd9e38b739c2a00
[PATCH] Optimize off-node performance of zone reclaim

Ensure that the performance of off node pages stays the same as before.
Off node pagefault tests showed an 18% drop in performance without this
patch.

- Increase the timeout to 30 seconds to reduce the overhead.

- Move all code possible out of the off node hot path for zone reclaim
  (Sorry Andrew, the struct initialization had to be sacrificed).
  The read_page_state() bit us there.

- Check first for the timeout before any other checks.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c