Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752852Ab0GFGCk (ORCPT ); Tue, 6 Jul 2010 02:02:40 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:46982 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751094Ab0GFGCi (ORCPT ); Tue, 6 Jul 2010 02:02:38 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Minchan Kim Subject: Re: [PATCH 12/14] vmscan: Do not writeback pages in direct reclaim Cc: kosaki.motohiro@jp.fujitsu.com, Mel Gorman , Andrew Morton , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Chris Mason , Nick Piggin , Rik van Riel , Johannes Weiner , Christoph Hellwig , KAMEZAWA Hiroyuki , Andrea Arcangeli In-Reply-To: References: <20100706093529.CCD1.A69D9226@jp.fujitsu.com> Message-Id: <20100706150030.CCFA.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Tue, 6 Jul 2010 15:02:31 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 916 Lines: 29 > On Tue, Jul 6, 2010 at 9:36 AM, KOSAKI Motohiro > wrote: > > Hello, > > > >> Ok, that's reasonable as I'm still working on that patch. For example, the > >> patch disabled anonymous page writeback which is unnecessary as the stack > >> usage for anon writeback is less than file writeback. > > > > How do we examine swap-on-file? > > bool is_swap_on_file(struct page *page) > { > struct swap_info_struct *p; > swp_entry_entry entry; > entry.val = page_private(page); > p = swap_info_get(entry); > return !(p->flags & SWP_BLKDEV) > } Well, do you suggested we traverse all pages in lru _before_ starting vmscan? -- 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/