From: Rik van Riel Subject: Re: [PATCH 18/23] io-controller: blkio_cgroup patches from Ryo to track async bios. Date: Tue, 01 Sep 2009 10:53:42 -0400 Message-ID: <4A9D3576.70801@redhat.com> References: <4A9C09BE.4060404@redhat.com> <20090831185640.GF3758@redhat.com> <20090901.160004.226800357.ryov@valinux.co.jp> <20090901141142.GA13709@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090901141142.GA13709@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Vivek Goyal Cc: dhaval@linux.vnet.ibm.com, peterz@infradead.org, dm-devel@redhat.com, dpshah@google.com, jens.axboe@oracle.com, agk@redhat.com, balbir@linux.vnet.ibm.com, paolo.valente@unimore.it, jmarchan@redhat.com, guijianfeng@cn.fujitsu.com, fernando@oss.ntt.co.jp, mikew@google.com, jmoyer@redhat.com, nauman@google.com, mingo@elte.hu, m-ikeda@ds.jp.nec.com, lizf@cn.fujitsu.com, fchecconi@gmail.com, s-uchida@ap.jp.nec.com, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, righi.andrea@gmail.com, torvalds@linux-foundation.org List-Id: dm-devel.ids Vivek Goyal wrote: > On Tue, Sep 01, 2009 at 04:00:04PM +0900, Ryo Tsuruta wrote: >> I think that swap writeouts should be charged to the memory hogging >> process, because the process consumes more resources and it should get >> a penalty. > > A process requesting memory gets IO penalty? There is no easy answer here. On the one hand, you want to charge the process that uses the resources. On the other hand, if a lower resource use / higher priority process tries to free up some of those resources, it should not have its IO requests penalized (and get slowed down) because of something the first process did... -- All rights reversed.