Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753733Ab0LMTnt (ORCPT ); Mon, 13 Dec 2010 14:43:49 -0500 Received: from mail-pw0-f66.google.com ([209.85.160.66]:53489 "EHLO mail-pw0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751227Ab0LMTns (ORCPT ); Mon, 13 Dec 2010 14:43:48 -0500 Date: Mon, 13 Dec 2010 12:43:41 -0700 From: Eric B Munson To: Mel Gorman Cc: Andrew Morton , Simon Kirby , KOSAKI Motohiro , Shaohua Li , Dave Hansen , Johannes Weiner , linux-mm , linux-kernel Subject: Re: [PATCH 6/6] mm: kswapd: Use the classzone idx that kswapd was using for sleeping_prematurely() Message-ID: <20101213194341.GH3401@mgebm.net> References: <1291995985-5913-1-git-send-email-mel@csn.ul.ie> <1291995985-5913-7-git-send-email-mel@csn.ul.ie> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zq44+AAfm4giZpo5" Content-Disposition: inline In-Reply-To: <1291995985-5913-7-git-send-email-mel@csn.ul.ie> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2077 Lines: 51 --zq44+AAfm4giZpo5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 10 Dec 2010, Mel Gorman wrote: > When kswapd is woken up for a high-order allocation, it takes account of > the highest usable zone by the caller (the classzone idx). During > allocation, this index is used to select the lowmem_reserve[] that > should be applied to the watermark calculation in zone_watermark_ok(). >=20 > When balancing a node, kswapd considers the highest unbalanced zone to be= the > classzone index. This will always be at least be the callers classzone_idx > and can be higher. However, sleeping_prematurely() always considers the > lowest zone (e.g. ZONE_DMA) to be the classzone index. This means that > sleeping_prematurely() can consider a zone to be balanced that is unusable > by the allocation request that originally woke kswapd. This patch changes > sleeping_prematurely() to use a classzone_idx matching the value it used > in balance_pgdat(). >=20 > Signed-off-by: Mel Gorman > Reviewed-by: Minchan Kim Reviewed-by: Eric B Munson --zq44+AAfm4giZpo5 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) iQEcBAEBAgAGBQJNBndtAAoJEH65iIruGRnNAR4IAJ0ppy0Hk9MvbVhCmaMHT07l DcwjFis/RFmu2Zpzrjn3pmfahkkCOesSBeplehiqGnzEW+E8hKeyQ3KgGtlscTDb CWyVgjgMihb4L7MWv5+lfrjL8/JBUQy0415m0Ea0bIoqwI9zDtl5mHVugVs6R+wL QwNMriEr0C0ov4N2t3OxvL9FmYLVmf8hdgAebMHoq0pICtPHRx2zcIyXmREc42ow DOC1QZgeGu5B0DXK9eBeEpf53NHynUHYN74o9FIhnnyBDxrtvD7QksJJRGc2DtkC KYrHfrHuqhLEX/cZBh0VPGemHPpIBs06ejt6DhjpPdpsGgkNZ04qmkTyPUQtvLk= =ieDW -----END PGP SIGNATURE----- --zq44+AAfm4giZpo5-- -- 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/