From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754338Ab3FDPYl (ORCPT ); Tue, 4 Jun 2013 11:24:41 -0400 Received: from www.sr71.net ([198.145.64.142]:39831 "EHLO blackbird.sr71.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173Ab3FDPYj (ORCPT ); Tue, 4 Jun 2013 11:24:39 -0400 Message-ID: <51AE06B6.3030009@sr71.net> Date: Tue, 04 Jun 2013 08:24:38 -0700 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Minchan Kim CC: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, mgorman@suse.de, tim.c.chen@linux.intel.com Subject: Re: [v5][PATCH 6/6] mm: vmscan: drain batch list during long operations References: <20130603200202.7F5FDE07@viggo.jf.intel.com> <20130603200210.259954C3@viggo.jf.intel.com> <20130604060553.GF14719@blaptop> In-Reply-To: <20130604060553.GF14719@blaptop> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/03/2013 11:05 PM, Minchan Kim wrote: >> > This ensures that we drain the batch if we are about to perform a >> > pageout() or congestion_wait(), either of which will take some >> > time. We expect this to help mitigate the worst of the latency >> > increase that the batching could cause. > Nice idea but I could see drain before pageout but congestion_wait? That comment managed to bitrot a bit :( The first version of these had the drain before pageout() only. Then, Mel added a congestion_wait() call, and I modified the series to also drain there. But, some other patches took the congestion_wait() back out, so I took that drain back out. I _believe_ the only congestion_wait() left in there is a cgroup-related one that we didn't think would cause very much harm.