From mboxrd@z Thu Jan 1 00:00:00 1970 From: KOSAKI Motohiro Subject: Re: [PATCH] vmscan: Stop kswapd waiting on congestion when the min watermark is not being met Date: Sat, 14 Nov 2009 03:33:16 +0900 Message-ID: <2f11576a0911131033w4a9e6042k3349f0be290a167e@mail.gmail.com> References: <20091113142608.33B9.A69D9226@jp.fujitsu.com> <20091113135443.GF29804@csn.ul.ie> <20091114023138.3DA5.A69D9226@jp.fujitsu.com> <20091113181557.GM29804@csn.ul.ie> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=GLeqpe+5VW1j+0V2JdYWZwP1Dw5WDFPYLYjXjK5dp4o=; b=Z5wsS1GWprrOIcyT7O0xnb+8aKOrdECTRDvCPiO0fqbUG74xSBvQ6O2y9RMdycitfN ZQwR5+NrQc2qP2YLN7T0nQrIdajdNgWYwC33SzLxR878hr3YrNaFioYU8PXlHdCQJaFf 5zLBaxD0Pcz2MTkLtH7Zy/I0IR9YTv2tVabfk= In-Reply-To: <20091113181557.GM29804-wPRd99KPJ+uzQB+pC5nmwQ@public.gmane.org> Sender: kernel-testers-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Mel Gorman Cc: Andrew Morton , Frans Pop , Jiri Kosina , Sven Geggus , Karol Lewandowski , Tobias Oetiker , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org" , Pekka Enberg , Rik van Riel , Christoph Lameter , Stephan von Krawczynski , "Rafael J. Wysocki" , Kernel Testers List > @@ -2092,8 +2102,12 @@ loop_again: > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 * OK, kswapd is getting into trouble.= =A0Take a nap, then take > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 * another pass across the zones. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 */ > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (total_scanned && priority < DEF_PRI= ORITY - 2) > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 congestion_wait(BLK_RW_= ASYNC, HZ/10); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (total_scanned && (priority < DEF_PR= IORITY - 2)) { > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (!has_under_min_wate= rmark_zone) if I am correct, we must to remove "!". > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 count_v= m_event(KSWAPD_NO_CONGESTION_WAIT); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 else > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 congest= ion_wait(BLK_RW_ASYNC, HZ/10); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 }