Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383753 > unrolled thread

Re: A mainline question about cgroup writeback

Started byTejun Heo <tj@kernel.org>
First post2016-04-20 23:30 +0200
Last post2016-04-21 10:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: A mainline question about cgroup writeback Tejun Heo <tj@kernel.org> - 2016-04-20 23:30 +0200
    Re: A mainline question about cgroup writeback zhong jiang <zhongjiang@huawei.com> - 2016-04-21 10:50 +0200

#1383753 — Re: A mainline question about cgroup writeback

FromTejun Heo <tj@kernel.org>
Date2016-04-20 23:30 +0200
SubjectRe: A mainline question about cgroup writeback
Message-ID<rq7R9-6eA-7@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1383937

Fromzhong jiang <zhongjiang@huawei.com>
Date2016-04-21 10:50 +0200
Message-ID<rqitb-6j1-5@gated-at.bofh.it>
In reply to#1383753
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web