From mboxrd@z Thu Jan 1 00:00:00 1970 From: KOSAKI Motohiro Subject: Re: [PATCH 12/14] vmscan: Do not writeback pages in direct reclaim Date: Tue, 6 Jul 2010 15:02:31 +0900 (JST) Message-ID: <20100706150030.CCFA.A69D9226@jp.fujitsu.com> References: <20100706093529.CCD1.A69D9226@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 To: Minchan Kim Return-path: In-Reply-To: Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org > 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 exampl= e, 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? >=20 > bool is_swap_on_file(struct page *page) > { > struct swap_info_struct *p; > swp_entry_entry entry; > entry.val =3D page_private(page); > p =3D swap_info_get(entry); > return !(p->flags & SWP_BLKDEV) > } Well, do you suggested we traverse all pages in lru _before_ starting vmscan? -- 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