From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbcDUIkT (ORCPT ); Thu, 21 Apr 2016 04:40:19 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:5645 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbcDUIkR (ORCPT ); Thu, 21 Apr 2016 04:40:17 -0400 Message-ID: <571891E0.60703@huawei.com> Date: Thu, 21 Apr 2016 16:40:00 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tejun Heo CC: Miao Xie , , , LKML Subject: Re: A mainline question about cgroup writeback References: <5715DC1F.2020803@huawei.com> <20160420212251.GF4775@htj.duckdns.org> In-Reply-To: <20160420212251.GF4775@htj.duckdns.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0203.571891EC.01FE,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 33f45daa3c2d4d56e5f6703762bda5b9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/4/21 5:22, Tejun Heo wrote: > On Tue, Apr 19, 2016 at 03:19:59PM +0800, zhong jiang wrote: >> cgroup writeback support the filesystem both ext4 and ext2. >> but, it appears to be not work when I test the function in the ext4. >> The example is as follows: >> echo "8:0 1048576" > blkio.throttle.write_bps_device >> echo $$ > cgroup.procs >> dd if=/dev/zero of=/test.c bs=1M count=10240 >> 10240+0 records in >> 10240+0 records out >> 10737418240 bytes (11 GB) copied, 49.8796 s, 215 MB/s > How much memory does the cgroup have available to it? It's buffered > write. It might not get throttled if there are enough pages to dirty. > > Thanks. > Maybe it's my fault. I just limit two fields in dirty_background_bytes and dirty_bytes , and I don't consider about the available memory in the cgroup. Thanks zhongjiang