Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757331AbZDWIGm (ORCPT ); Thu, 23 Apr 2009 04:06:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759933AbZDWHyZ (ORCPT ); Thu, 23 Apr 2009 03:54:25 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:59407 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756794AbZDWHyY (ORCPT ); Thu, 23 Apr 2009 03:54:24 -0400 Message-ID: <49F01E8F.80807@cn.fujitsu.com> Date: Thu, 23 Apr 2009 15:53:51 +0800 From: Gui Jianfeng User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: Andrea Righi CC: Paul Menage , Balbir Singh , KAMEZAWA Hiroyuki , agk@sourceware.org, akpm@linux-foundation.org, axboe@kernel.dk, baramsori72@gmail.com, Carl Henrik Lunde , dave@linux.vnet.ibm.com, Divyesh Shah , eric.rannaud@gmail.com, fernando@oss.ntt.co.jp, Hirokazu Takahashi , Li Zefan , matt@bluehost.com, dradford@bluehost.com, ngupta@google.com, randy.dunlap@oracle.com, roberto@unbit.it, Ryo Tsuruta , Satoshi UCHIDA , subrata@linux.vnet.ibm.com, yoshikawa.takuya@oss.ntt.co.jp, Nauman Rafique , fchecconi@gmail.com, paolo.valente@unimore.it, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] kiothrottled: throttle buffered (writeback) IO References: <1240090712-1058-1-git-send-email-righi.andrea@gmail.com> <1240090712-1058-6-git-send-email-righi.andrea@gmail.com> In-Reply-To: <1240090712-1058-6-git-send-email-righi.andrea@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1123 Lines: 29 Andrea Righi wrote: > Together with cgroup_io_throttle() the kiothrottled kernel thread > represents the core of the io-throttle subsystem. > > All the writeback IO requests that need to be throttled are not > dispatched immediately in submit_bio(). Instead, they are added into an > rbtree by iothrottle_make_request() and processed asynchronously by > kiothrottled. > > A deadline is associated to each request depending on the bandwidth > usage of the cgroup it belongs. When a request is inserted into the > rbtree kiothrottled is awakened. This thread selects all the requests > with an expired deadline and submit the bunch of selected requests to > the underlying block devices using generic_make_request(). Hi Andrea, What if an user issues "sync", will the bios still be buffered in the rb-tree? Do we need to flush the whole tree? -- Regards Gui Jianfeng -- 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/