lkml.org 
[lkml]   [2012]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kswapd0: excessive CPU usage
On 10/30/2012 03:18 PM, Mel Gorman wrote:

> restart:
> - wake_all_kswapd(order, zonelist, high_zoneidx,
> + /*
> + * kswapd is woken except when this is a THP request and compaction
> + * is deferred. If we are backing off reclaim/compaction then kswapd
> + * should not be awake aggressively reclaiming with no consumers of
> + * the freed pages
> + */
> + if (!(is_thp_alloc(gfp_mask, order) &&
> + compaction_deferred(preferred_zone, order)))
> + wake_all_kswapd(order, zonelist, high_zoneidx,
> zone_idx(preferred_zone));

What is special about thp allocations here?

Surely other large allocations that keep failing
should get the same treatment, of not waking up
kswapd if compaction is deferred?



\
 
 \ /
  Last update: 2012-11-04 18:21    [W:0.093 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site