Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755199Ab1D1IpR (ORCPT ); Thu, 28 Apr 2011 04:45:17 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:54822 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754783Ab1D1IpO (ORCPT ); Thu, 28 Apr 2011 04:45:14 -0400 Date: Thu, 28 Apr 2011 10:45:00 +0200 From: Johannes Weiner To: Minchan Kim Cc: KAMEZAWA Hiroyuki , Andrew Morton , linux-mm , LKML , Christoph Lameter , Johannes Weiner , KOSAKI Motohiro , Mel Gorman , Rik van Riel , Andrea Arcangeli Subject: Re: [RFC 4/8] Make clear description of putback_lru_page Message-ID: <20110428084500.GG12437@cmpxchg.org> References: <20110427171157.3751528f.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1448 Lines: 36 On Thu, Apr 28, 2011 at 08:20:32AM +0900, Minchan Kim wrote: > On Wed, Apr 27, 2011 at 5:11 PM, KAMEZAWA Hiroyuki > wrote: > > On Wed, 27 Apr 2011 01:25:21 +0900 > > Minchan Kim wrote: > > > >> Commonly, putback_lru_page is used with isolated_lru_page. > >> The isolated_lru_page picks the page in middle of LRU and > >> putback_lru_page insert the lru in head of LRU. > >> It means it could make LRU churning so we have to be very careful. > >> Let's clear description of putback_lru_page. > >> > >> Cc: KOSAKI Motohiro > >> Cc: Mel Gorman > >> Cc: Rik van Riel > >> Cc: Andrea Arcangeli > >> Signed-off-by: Minchan Kim > > > > seems good... > > Reviewed-by: KAMEZAWA Hiroyuki > > > > But is there consensus which side of LRU is tail? head? > > I don't know. I used to think it's head. > If other guys raise a concern as well, let's talk about it. :) > Thanks I suppose we add new pages to the head of the LRU and reclaim old pages from the tail. Acked-by: Johannes Weiner -- 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/