From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759852Ab1FAVIi (ORCPT ); Wed, 1 Jun 2011 17:08:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31885 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758921Ab1FAVIg (ORCPT ); Wed, 1 Jun 2011 17:08:36 -0400 Message-ID: <4DE6AA49.4090907@redhat.com> Date: Wed, 01 Jun 2011 17:08:25 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Thunderbird/3.1.1 MIME-Version: 1.0 To: Minchan Kim CC: Andrew Morton , linux-mm , LKML , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Mel Gorman , Andrea Arcangeli , Johannes Weiner Subject: Re: [PATCH v2 07/10] In order putback lru core References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/29/2011 02:13 PM, Minchan Kim wrote: > This patch defines new APIs to put back the page into previous position of LRU. > The idea I suggested in LSF/MM is simple. > > When we try to put back the page into lru list and if friends(prev, next) of the page > still is nearest neighbor, we can insert isolated page into prev's next instead of > head of LRU list. So it keeps LRU history without losing the LRU information. > Cc: KAMEZAWA Hiroyuki > Cc: KOSAKI Motohiro > Cc: Mel Gorman > Cc: Rik van Riel > Cc: Andrea Arcangeli > Signed-off-by: Minchan Kim Looks reasonable. Acked-by: Rik van Riel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id 2FEA86B004A for ; Wed, 1 Jun 2011 17:08:33 -0400 (EDT) Message-ID: <4DE6AA49.4090907@redhat.com> Date: Wed, 01 Jun 2011 17:08:25 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH v2 07/10] In order putback lru core References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Andrew Morton , linux-mm , LKML , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Mel Gorman , Andrea Arcangeli , Johannes Weiner On 05/29/2011 02:13 PM, Minchan Kim wrote: > This patch defines new APIs to put back the page into previous position of LRU. > The idea I suggested in LSF/MM is simple. > > When we try to put back the page into lru list and if friends(prev, next) of the page > still is nearest neighbor, we can insert isolated page into prev's next instead of > head of LRU list. So it keeps LRU history without losing the LRU information. > Cc: KAMEZAWA Hiroyuki > Cc: KOSAKI Motohiro > Cc: Mel Gorman > Cc: Rik van Riel > Cc: Andrea Arcangeli > Signed-off-by: Minchan Kim Looks reasonable. Acked-by: Rik van Riel -- 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