linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: zhong jiang <zhongjiang@huawei.com>
Cc: Miao Xie <miaoxie@huawei.com>,
	lizefan@huawei.com, dingxiang@huawei.com,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: A mainline question about cgroup writeback
Date: Wed, 20 Apr 2016 17:22:51 -0400	[thread overview]
Message-ID: <20160420212251.GF4775@htj.duckdns.org> (raw)
In-Reply-To: <5715DC1F.2020803@huawei.com>

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.

-- 
tejun

  parent reply	other threads:[~2016-04-20 21:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-19  7:19 A mainline question about cgroup writeback zhong jiang
2016-04-20  6:32 ` Alex Shi
2016-04-20 21:22 ` Tejun Heo [this message]
2016-04-21  8:40   ` zhong jiang
  -- strict thread matches above, loose matches on Subject: below --
2016-04-18 12:53 zhong jiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160420212251.GF4775@htj.duckdns.org \
    --to=tj@kernel.org \
    --cc=dingxiang@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizefan@huawei.com \
    --cc=miaoxie@huawei.com \
    --cc=zhongjiang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).