From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: Bug 12309 - Large I/O operations result in poor interactive performance and high iowait times Date: Tue, 3 Aug 2010 08:45:11 +0800 Message-ID: <20100803004511.GB5198@localhost> References: <20100802003616.5b31ed8b@digital-domain.net> <20100802081253.GA27492@localhost> <20100802171954.4F95.A69D9226@jp.fujitsu.com> <20100802115748.GA5308@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: KOSAKI Motohiro , Andrew Clayton , Andrew Morton , Mel Gorman , "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 , Jens Axboe , Christoph Hellwig , KAMEZAWA Hiroyuki , Andrea Arcangeli , "pvz@pvz.pp.se" , "bgamari@gmail.com" , "larppaxyz@gmail.com" , "seanj@xyke.com" , "kernel-bugs.dev1world@spamgourmet.com" Return-path: Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org > > What in my mind is (without any throttling) > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0if (PageSwapcache(page)) { > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (bdi_write_= congested(bdi)) >=20 > You mentioned following as. >=20 > "However !bdi_write_congested(bdi) is now unconditionally true for the > swapper_space, which means any process can do swap out to a congested > queue and block there." >=20 > But you used bdi_write_congested in here. > Which is right? Ah sorry, I was also cheated by the name.. bdi_write_congested() won't work for swap_backing_dev_info. Anyway you may take it as "pseudo" code :) 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