Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Alex Shi Newsgroups: linux.kernel Subject: Re: A mainline question about cgroup writeback Date: Wed, 20 Apr 2016 08:40:01 +0200 Message-ID: References: X-Original-To: zhong jiang Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=UAsubQjR89TN7koi+SvGNm3qsCLYC2C2RKnuOHQQ8Z4=; b=KvHTQfmL2fkcROB7DqrSs1Ob3brIOv3UiWMJ9gKt30OEjgGNtHZZ9Vz8XBAjFe5W6R e16e+f1Rv/dMVvnJAXHCxs63cSul1twGrTGzf3iGQe0SwVLqdu95ezzeY/nIJpgol25Z 4MDfmexZLmWUq/4kIIv9Pa2IQDdsERbXNZvbpUMZYkmYxRSwOeSaTh2VYFQiean+MX0n F1mQXeqC58VSerVEnes3ByYGETtvBVoegPMgYcI05fXQw6oApgYbjXH0g50kMAZh21lx XzWIoj2KJQ9W+GCxjJvX432P6NY2uqlphmIEkD+pyMhAQ5KLqFJAsd0kMJoa8LPVdc4s 6coQ== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=UAsubQjR89TN7koi+SvGNm3qsCLYC2C2RKnuOHQQ8Z4=; b=K+yTIVDKoP38AMhwUGhESVJZPBDxY/g6GUvecTnADwjKG9uDYa3v9J/ARzSuCzanbH FRRAEsdxJ1tvt8e+Sr7ixt5JEZt6iolTdzbS0pQT7dQPqP5BDFNQosOWtFAYjB+YcAtU hySmTpoZ9EMkWaE9T++4bmhHB+h/JOS8rYHY6OQ74f8BZfZ1rOaHnvLNoAYge8Co7Gip nJYfjJMCHsC2AKVATqSABVu8z6nVfsNbAYYtHg3jlcAYTsDoGfv2c1CWaD5n9+TUsG+B NxCpmpFW+FNFiqH5RZ61L3MLwDM6KuttHPpukP15dHvI2lHWzMhqPVKZ2K5xD9wy9Ri/ iAPQ== X-Gm-Message-State: AOPr4FV8MiS08u61ucg3oNt4NbS+3dk4gslbDhkie+cYqEjQRMFE9D7uMmv+L0lNGOyHMcEJMfkeaB3hfGaSnw== MIME-Version: 1.0 X-Received: by 10.202.93.133 with SMTP id r127mr2977789oib.100.1461133975585; Tue, 19 Apr 2016 23:32:55 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 27 Organization: linux.* mail to news gateway X-Original-Cc: Tejun Heo , Miao Xie , lizefan@huawei.com, dingxiang@huawei.com, LKML X-Original-Date: Wed, 20 Apr 2016 14:32:55 +0800 X-Original-Message-ID: X-Original-References: <5715DC1F.2020803@huawei.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1383075 It looks like a bug on cgroup writeback. Is this a regression or consistent issue? If it's a regression, you may could do bisect to find out the buggy commit. On Tue, Apr 19, 2016 at 3:19 PM, 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 > > 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. > > The kernel version is 4.6 I have tested, And the corresponding files > in the attachment -- Thanks Alex