From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756663Ab0HaCbK (ORCPT ); Mon, 30 Aug 2010 22:31:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56903 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756585Ab0HaCbJ (ORCPT ); Mon, 30 Aug 2010 22:31:09 -0400 Message-ID: <4C7C6959.3030801@redhat.com> Date: Mon, 30 Aug 2010 22:30:49 -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: KOSAKI Motohiro , Ying Han , Andrew Morton , linux-mm , LKML , Venkatesh Pallipadi , Johannes Weiner Subject: Re: [PATCH] vmscan: prevent background aging of anon page in no swap system References: <20100831095140.87C7.A69D9226@jp.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/30/2010 09:23 PM, Minchan Kim wrote: > Ying's one and mine both has a same effect. > Only difference happens swap is full. My version maintains old > behavior but Ying's one changes the behavior. I admit swap full is > rare event but I hoped not changed old behavior if we doesn't find any > problem. > If kswapd does aging when swap full happens, is it a problem? It may be a good thing, since swap will often be freed again (when something is swapped in, or exits). Having some more anonymous pages sit on the inactive list gives them a chance to get used again, potentially giving us a better chance of preserving the working set when swap is full or near full a lot of the time. -- All rights reversed From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 94B376B01F0 for ; Mon, 30 Aug 2010 22:31:02 -0400 (EDT) Message-ID: <4C7C6959.3030801@redhat.com> Date: Mon, 30 Aug 2010 22:30:49 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH] vmscan: prevent background aging of anon page in no swap system References: <20100831095140.87C7.A69D9226@jp.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Minchan Kim Cc: KOSAKI Motohiro , Ying Han , Andrew Morton , linux-mm , LKML , Venkatesh Pallipadi , Johannes Weiner List-ID: On 08/30/2010 09:23 PM, Minchan Kim wrote: > Ying's one and mine both has a same effect. > Only difference happens swap is full. My version maintains old > behavior but Ying's one changes the behavior. I admit swap full is > rare event but I hoped not changed old behavior if we doesn't find any > problem. > If kswapd does aging when swap full happens, is it a problem? It may be a good thing, since swap will often be freed again (when something is swapped in, or exits). Having some more anonymous pages sit on the inactive list gives them a chance to get used again, potentially giving us a better chance of preserving the working set when swap is full or near full a lot of the time. -- All rights reversed -- 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/ . Don't email: email@kvack.org