Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754473AbZDUOHv (ORCPT ); Tue, 21 Apr 2009 10:07:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751956AbZDUOHj (ORCPT ); Tue, 21 Apr 2009 10:07:39 -0400 Received: from THUNK.ORG ([69.25.196.29]:48085 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750842AbZDUOHh (ORCPT ); Tue, 21 Apr 2009 10:07:37 -0400 Date: Tue, 21 Apr 2009 10:06:31 -0400 From: Theodore Tso To: Andrea Righi Cc: Jens Axboe , Paul Menage , Balbir Singh , Gui Jianfeng , KAMEZAWA Hiroyuki , agk@sourceware.org, akpm@linux-foundation.org, 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, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 9/9] ext3: do not throttle metadata and journal IO Message-ID: <20090421140631.GF19186@mit.edu> Mail-Followup-To: Theodore Tso , Andrea Righi , Jens Axboe , Paul Menage , Balbir Singh , Gui Jianfeng , KAMEZAWA Hiroyuki , agk@sourceware.org, akpm@linux-foundation.org, 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, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <1239740480-28125-1-git-send-email-righi.andrea@gmail.com> <1239740480-28125-10-git-send-email-righi.andrea@gmail.com> <20090417123805.GC7117@mit.edu> <20090417125004.GY4593@kernel.dk> <20090417143903.GA30365@linux> <20090421001822.GB19186@mit.edu> <20090421083001.GA8441@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090421083001.GA8441@linux> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@mit.edu X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1052 Lines: 22 On Tue, Apr 21, 2009 at 10:30:02AM +0200, Andrea Righi wrote: > > We're trying to address also this issue, setting max dirty pages limit > per cgroup, and force a direct writeback when these limits are exceeded. > > In this case dirty ratio throttling should happen automatically because > the process will be throttled by the IO controller when it tries to > writeback the dirty pages and submit IO requests. The challenge here will be the accounting; consider that you may have a file that had some of its pages in its page cache dirtied by a process in cgroup A. Now another process in cgroup B dirties some more pages. This could happen either via a mmap'ed file or via the standard read/write system calls. How do you track which dirty pages should be charged against which cgroup? - Ted -- 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/