From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752116AbcDRM5q (ORCPT ); Mon, 18 Apr 2016 08:57:46 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:27609 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbcDRM5p (ORCPT ); Mon, 18 Apr 2016 08:57:45 -0400 Message-ID: <5714D8E1.2000004@huawei.com> Date: Mon, 18 Apr 2016 20:53:53 +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: CC: , , , LKML Subject: A mainline question about cgroup writeback Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Furthering test find that the ratelimit will be limited if it write data to disk directly. Additionly, The read ratelimit is limited whther it go through the page cache or not.