From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754446Ab0HRV0V (ORCPT ); Wed, 18 Aug 2010 17:26:21 -0400 Received: from mga14.intel.com ([143.182.124.37]:1709 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754414Ab0HRV0T (ORCPT ); Wed, 18 Aug 2010 17:26:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.56,229,1280732400"; d="scan'208";a="314212700" Date: Thu, 19 Aug 2010 05:26:13 +0800 From: Wu Fengguang To: Johannes Weiner Cc: Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Li Shaohua , Rik van Riel Subject: Re: [TESTCASE] Clean pages clogging the VM Message-ID: <20100818212613.GA7366@localhost> References: <20100809133000.GB6981@wil.cx> <20100817195001.GA18817@linux.intel.com> <20100818141308.GD1779@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100818141308.GD1779@cmpxchg.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Mapped file pages get two rounds on the LRU list, so once the VM > starts scanning, it has to go through all of them twice and can only > reclaim them on the second encounter. This can be fixed gracefully based on Rik's refault-distance patch :) With the distance info we can safely drop the use-once mapped file pages. Thanks, Fengguang From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with SMTP id 4C9526B01F2 for ; Wed, 18 Aug 2010 17:26:19 -0400 (EDT) Date: Thu, 19 Aug 2010 05:26:13 +0800 From: Wu Fengguang Subject: Re: [TESTCASE] Clean pages clogging the VM Message-ID: <20100818212613.GA7366@localhost> References: <20100809133000.GB6981@wil.cx> <20100817195001.GA18817@linux.intel.com> <20100818141308.GD1779@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100818141308.GD1779@cmpxchg.org> Sender: owner-linux-mm@kvack.org To: Johannes Weiner Cc: Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Li Shaohua , Rik van Riel List-ID: > Mapped file pages get two rounds on the LRU list, so once the VM > starts scanning, it has to go through all of them twice and can only > reclaim them on the second encounter. This can be fixed gracefully based on Rik's refault-distance patch :) With the distance info we can safely drop the use-once mapped file pages. Thanks, Fengguang -- 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