From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with ESMTP id 6E32B900138 for ; Fri, 12 Aug 2011 09:10:46 -0400 (EDT) Date: Fri, 12 Aug 2011 15:10:42 +0200 From: Michal Hocko Subject: Re: [patch 1/2] mm: vmscan: fix force-scanning small targets without swap Message-ID: <20110812131042.GB32335@tiehlicka.suse.cz> References: <1313094715-31187-1-git-send-email-jweiner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1313094715-31187-1-git-send-email-jweiner@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, KAMEZAWA Hiroyuki , Ying Han , Balbir Singh , KOSAKI Motohiro , Daisuke Nishimura , Mel Gorman On Thu 11-08-11 22:31:54, Johannes Weiner wrote: > Without swap, anonymous pages are not scanned. As such, they should > not count when considering force-scanning a small target if there is > no swap. > > Otherwise, targets are not force-scanned even when their effective > scan number is zero and the other conditions--kswapd/memcg--apply. > > Signed-off-by: Johannes Weiner We are calculating nr_force_scan even if it is not needed but this shouldn't hurt. Reviewed-by: Michal Hocko -- Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic -- 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 internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org