[PATCH] drain_node_pages: interrupt latency reduction / optimization
authorChristoph Lameter <clameter@sgi.com>
Wed, 22 Mar 2006 08:09:08 +0000 (00:09 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:06 +0000 (07:54 -0800)
commit879336c3930ae9273ea1c45214cb8adae0ce494a
tree24fbb8aff19f6747b6cc40cb05cbe9f4c21f85e3
parentb18e7e654d7af741d2bf34a90dc34128d0217fea
[PATCH] drain_node_pages: interrupt latency reduction / optimization

1. Only disable interrupts if there is actually something to free

2. Only dirty the pcp cacheline if we actually freed something.

3. Disable interrupts for each single pcp and not for cleaning
  all the pcps in all zones of a node.

drain_node_pages is called every 2 seconds from cache_reap. This
fix should avoid most disabling of interrupts.

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/page_alloc.c