Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3846297imm; Tue, 29 May 2018 15:07:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIo67T9cl7jOIp0d0+vRL7S9FRfaKGB9T8ituA8/GvmVcAacrVqUVu3DHGiGFjad4BXuPGq X-Received: by 2002:a17:902:868b:: with SMTP id g11-v6mr168745plo.305.1527631671572; Tue, 29 May 2018 15:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527631671; cv=none; d=google.com; s=arc-20160816; b=SJCJcav8EAA67/RgH6uQLGrLu624ynG2n+14g+VtVeK3d3UaKZuOEbpjQ9ud6Xa/0j twjz1lfTmVy0oerqrXBXVD/dXAg2oMyDJD/nXdnyJnR9Ucy3XHm5tHKjQ5lF8CEzlBH2 LB+ZE81vQaIp5arMRIL6vBAsppAKZKrA0lRiEggTMSpoP1wzxNrqch5sPZmoNqikkGEY ezJOVvHtuLn4owGAIG7Fw0aZLJqF2k9fI3lOvPePzqwbeWoo5TLGpH0FQJ6ENZMGqBkI HyvNsvWSciu6OBs+cWoGoE+oFf6lnIB+lZgWkEaIOzDQdMZqprCrkru61zdEQT/p8Wk9 izOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=GtCkl5z6/F4BLKCpP/q3Nyj6wa59NyQQji3kjMR2EXY=; b=Z9beDtZJAjbVu3xdv2yB8FkM7eedOhV72WoBwhYsJ6x9eXH0TcgsiHfu5Uqw5nDfUx H8qd0VRbqKcKYNxE2USnQKZtozlVgm8NxzSgGsyP+ODwgXzoKdGfV6EvRGI8IXFHr55a ySD7X+0qB+xyiPNx23kPAtrTprRczqncMePhAfpEIJCNPhZnEEjGooQs6FMwNYeujOvV kc3kTawYv2PrjZP/EyA0zMj3JsF9ocdjUNjiTMval2Eani/UEeSLXGDHKpAuXAoU0qFH uHNoqfmwg9BBz6BqvqZDSPhHscEs3VGvgqoNbr3N8XIm0S24oDYZMOKws7IWRda9a/iv 4TlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=pgbY8KIE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9-v6si34330463plg.124.2018.05.29.15.07.37; Tue, 29 May 2018 15:07:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=pgbY8KIE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967533AbeE2WHM (ORCPT + 99 others); Tue, 29 May 2018 18:07:12 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60374 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966957AbeE2WHJ (ORCPT ); Tue, 29 May 2018 18:07:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GtCkl5z6/F4BLKCpP/q3Nyj6wa59NyQQji3kjMR2EXY=; b=pgbY8KIEJPNYnPbL0YJUuMmms8 1AqzsntKEOuRSfIznwuP4ff5ujCxjsmEjfzjokpyVfOBf8weX0PwHkQP7E9DIJappmckfgbFyM38z vP01gfqPtyvajzDQdyJq53WD5yRr5birpw1SOo+py9EiItr/c6Ty5yCob6UnZkxY4GRoLB4ohzKbI DEMVwOvRGCXrxbumPL7Xw+fhXYZfecgHi3cTkOW9ygAq1XPYyXpxj/uZ4yC560NB4sV0MgPrIVZJB UdYSSjpeZlXfaGHPWigMstFPgMFUIIC6Zf/JJ1Cdjv4fGbScHjRV3wNOD0OT+ULU09lrSJuvfTKp9 GeiMoc+g==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fNmlk-0001zb-Ql; Tue, 29 May 2018 22:07:05 +0000 Subject: Re: [PATCH 12/13] block: introduce blk-iolatency io controller To: Josef Bacik , axboe@kernel.dk, kernel-team@fb.com, linux-block@vger.kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, tj@kernel.org, linux-fsdevel@vger.kernel.org Cc: Josef Bacik References: <20180529211724.4531-1-josef@toxicpanda.com> <20180529211724.4531-13-josef@toxicpanda.com> From: Randy Dunlap Message-ID: <99a187c9-668b-d27c-3d71-bc799b853791@infradead.org> Date: Tue, 29 May 2018 15:07:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180529211724.4531-13-josef@toxicpanda.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/29/2018 02:17 PM, Josef Bacik wrote: > From: Josef Bacik > > Signed-off-by: Josef Bacik > --- > block/Kconfig | 12 + > block/Makefile | 1 + > block/blk-iolatency.c | 844 ++++++++++++++++++++++++++++++++++++++++++++++ > block/blk-sysfs.c | 2 + > block/blk.h | 6 + > include/linux/blk_types.h | 2 - > 6 files changed, 865 insertions(+), 2 deletions(-) > create mode 100644 block/blk-iolatency.c > > diff --git a/block/Kconfig b/block/Kconfig > index 28ec55752b68..a4e800f57688 100644 > --- a/block/Kconfig > +++ b/block/Kconfig > @@ -149,6 +149,18 @@ config BLK_WBT > dynamically on an algorithm loosely based on CoDel, factoring in > the realtime performance of the disk. > > +config BLK_CGROUP_IOLATENCY > + bool "Enable support for latency based cgroup io protection" IO protection" There are currently no occurrences of "io" (standalone) in block/Kconfig and it would be a bad precedent to add one, so please use that shift key. :) > + depends on BLK_CGROUP=y > + default n > + ---help--- > + Enabling this option enables the .latency interface for io throttling. > + The io controller will attempt to maintain average io latencies below > + the configured latency target, throttling anybody with a higher latency > + target than the victimized group. > + > + Note, this is an experimental interface and could be changed someday. > + > config BLK_WBT_SQ > bool "Single queue writeback throttling" > default n -- ~Randy