Files
twx-linux/include/linux
Andrea Arcangeli 1a0a10e49a mm: compaction: prevent kswapd compacting memory to reduce CPU usage
commit d527caf22e upstream.

This patch reverts 5a03b051 ("thp: use compaction in kswapd for GFP_ATOMIC
order > 0") due to reports stating that kswapd CPU usage was higher and
IRQs were being disabled more frequently.  This was reported at
http://www.spinics.net/linux/fedora/alsa-user/msg09885.html.

Without this patch applied, CPU usage by kswapd hovers around the 20% mark
according to the tester (Arthur Marsh:
http://www.spinics.net/linux/fedora/alsa-user/msg09899.html).  With this
patch applied, it's around 2%.

The problem is not related to THP which specifies __GFP_NO_KSWAPD but is
triggered by high-order allocations hitting the low watermark for their
order and waking kswapd on kernels with CONFIG_COMPACTION set.  The most
common trigger for this is network cards configured for jumbo frames but
it's also possible it'll be triggered by fork-heavy workloads (order-1)
and some wireless cards which depend on order-1 allocations.

The symptoms for the user will be high CPU usage by kswapd in low-memory
situations which could be confused with another writeback problem.  While
a patch like 5a03b051 may be reintroduced in the future, this patch plays
it safe for now and reverts it.

[mel@csn.ul.ie: Beefed up the changelog]
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reported-by: Arthur Marsh <arthur.marsh@internode.on.net>
Tested-by: Arthur Marsh <arthur.marsh@internode.on.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-03-27 11:35:45 -07:00
..
…
2011-03-04 12:24:31 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-20 18:30:17 -08:00
2011-01-20 18:30:17 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-15 20:07:45 -05:00
…
…
…
…
…
…
…
…
2011-01-13 08:03:12 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-12 20:16:43 -05:00
…
…
…
…
…
…
2011-01-17 03:26:26 -05:00
…
…
…
…
…
…
…
…
…
2011-03-04 17:53:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-21 11:55:31 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 17:32:31 -08:00
2011-02-01 08:23:22 +10:00
…
…
…
…
…
2011-01-13 17:32:47 -08:00
2011-02-13 16:54:24 -08:00
2011-01-24 14:45:11 +10:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-14 13:12:45 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 17:32:41 -08:00
…
…
…
2011-01-13 17:32:46 -08:00
2011-01-13 17:32:43 -08:00
2011-01-16 13:47:07 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 17:32:43 -08:00
…
…
…
…
2011-01-16 13:47:07 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 08:03:21 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-14 02:36:43 +00:00
…
…
…
…
…
…
…
…
2011-01-13 08:03:18 -08:00
2011-01-13 17:32:42 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 08:03:19 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 17:32:42 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2011-02-28 18:00:31 -08:00
…
…
…
…
…
…
2011-01-13 08:03:20 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-24 14:45:11 +10:30
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 08:03:24 -08:00
…
…
…
…
…