Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752583AbdLDRNJ (ORCPT ); Mon, 4 Dec 2017 12:13:09 -0500 Received: from kanga.kvack.org ([205.233.56.17]:58467 "EHLO kanga.kvack.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752025AbdLDRNH (ORCPT ); Mon, 4 Dec 2017 12:13:07 -0500 X-Greylist: delayed 1251 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Dec 2017 12:13:07 EST Date: Mon, 4 Dec 2017 11:52:13 -0500 From: Benjamin LaHaise To: Kirill Tkhai Cc: axboe@kernel.dk, viro@zeniv.linux.org.uk, tj@kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aio@kvack.org, oleg@redhat.com Subject: Re: [PATCH 0/5] blkcg: Limit maximum number of aio requests available for cgroup Message-ID: <20171204165213.GF11494@kvack.org> References: <151240305010.10164.15584502480037205018.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151240305010.10164.15584502480037205018.stgit@localhost.localdomain> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1561 Lines: 47 Hi Kirill, On Mon, Dec 04, 2017 at 07:12:51PM +0300, Kirill Tkhai wrote: > Hi, > > this patch set introduces accounting aio_nr and aio_max_nr per blkio cgroup. > It may be used to limit number of aio requests, which are available for > a cgroup, and could be useful for containers. > > The accounting is hierarchical, and aio contexts, allocated in child cgroup, > are accounted in parent cgroups too. > > Also, new cgroup file "io.aio_nr" is introduced. It's used to set cgroup > aio requests limit, to show current limit and number of currenly occupied > requests. Where are your test cases to check this functionality in the libaio test suite? -ben > Patches 1-3 are refactoring. > Patch 4 is the place where the accounting actually introduced. > Patch 5 adds "io.aio_nr" file. > > --- > > Kirill Tkhai (5): > aio: Move aio_nr increment to separate function > aio: Export aio_nr_lock and aio_max_nr initial value to include/linux/aio.h > blkcg: Add blkcg::blkg_aio_nr and blkcg::blkg_aio_max_nr > blkcg: Charge aio requests in blkio cgroup hierarchy > blkcg: Add cgroup file to configure blkcg::blkg_aio_max_nr > > > block/blk-cgroup.c | 88 +++++++++++++++++++++++++- > fs/aio.c | 151 ++++++++++++++++++++++++++++++++++++++++---- > include/linux/aio.h | 21 ++++++ > include/linux/blk-cgroup.h | 4 + > 4 files changed, 247 insertions(+), 17 deletions(-) > > -- > Signed-off-by: Kirill Tkhai > -- "Thought is the essence of where you are now."