lkml.org 
[lkml]   [2005]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH]: gets a new online cpu to use percpu_pagelist_fraction
If percpu_pagelist_fraction tunable is set then this patch allows a newly
brought online cpu to use new settings for high and batch values in its
per cpu pagelists.

Signed-off-by: Rohit Seth <rohit.seth@intel.com>


--- c/mm/page_alloc.c 2005-12-09 03:43:22.000000000 -0800
+++ linux-2.6.15-rc5-mm1/mm/page_alloc.c 2005-12-09 03:45:28.000000000 -0800
@@ -1977,6 +1977,10 @@
goto bad;

setup_pageset(zone->pageset[cpu], zone_batchsize(zone));
+
+ if (percpu_pagelist_fraction)
+ setup_pagelist_highmark(zone_pcp(zone, cpu),
+ (zone->present_pages / percpu_pagelist_fraction));
}

return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-12-09 20:50    [W:0.024 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site