From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with SMTP id 503326B0093 for ; Mon, 13 Dec 2010 14:37:31 -0500 (EST) Received: by pzk3 with SMTP id 3so616755pzk.2 for ; Mon, 13 Dec 2010 11:37:29 -0800 (PST) Date: Mon, 13 Dec 2010 12:37:22 -0700 From: Eric B Munson Subject: Re: [PATCH 2/6] mm: kswapd: Keep kswapd awake for high-order allocations until a percentage of the node is balanced Message-ID: <20101213193722.GD3401@mgebm.net> References: <1291995985-5913-1-git-send-email-mel@csn.ul.ie> <1291995985-5913-3-git-send-email-mel@csn.ul.ie> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+B+y8wtTXqdUj1xM" Content-Disposition: inline In-Reply-To: <1291995985-5913-3-git-send-email-mel@csn.ul.ie> Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: Andrew Morton , Simon Kirby , KOSAKI Motohiro , Shaohua Li , Dave Hansen , Johannes Weiner , linux-mm , linux-kernel List-ID: --+B+y8wtTXqdUj1xM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 10 Dec 2010, Mel Gorman wrote: > When reclaiming for high-orders, kswapd is responsible for balancing a > node but it should not reclaim excessively. It avoids excessive reclaim by > considering if any zone in a node is balanced then the node is balanced. = In > the cases where there are imbalanced zone sizes (e.g. ZONE_DMA with both > ZONE_DMA32 and ZONE_NORMAL), kswapd can go to sleep prematurely as just > one small zone was balanced. >=20 > This alters the sleep logic of kswapd slightly. It counts the number of p= ages > that make up the balanced zones. If the total number of balanced pages is > more than a quarter of the zone, kswapd will go back to sleep. This should > keep a node balanced without reclaiming an excessive number of pages. >=20 > Signed-off-by: Mel Gorman > Reviewed-by: Minchan Kim Reviewed-by: Eric B Munson --+B+y8wtTXqdUj1xM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJNBnXyAAoJEH65iIruGRnNtC0H/2UJny4+pkLGMhHc4ukwJNf7 N0JhCeV5qEfs0nFgcRpgeQEQxDGmYle7M5X/x4yRU3QnNKwuqux4sVEOxuIWLlaE r99Ek+Ia/waV6tX31LYTsbdakIHuqTpzJwssg6+6TIqqhcEaB9yHlWMzN1itgfCa 2L4W9WDac0Xd4lg/m5MXgSCxH4LiLSXcr9VzRNncESBq6AsDQnueW9oDX7M6Y0+T Q9PJECL9YI125dsAOAK3rhOS4xQGnlrDSKVwohxAEYI8Ssd+MLrOCJfAnPlbQsQI +rfHZifHmeyGnGHerXMXcZs24k9jsSoQNP8klvW2FBw5L8pCDKmFRSJqWuvE0jY= =z+ui -----END PGP SIGNATURE----- --+B+y8wtTXqdUj1xM-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org