Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6956724imm; Wed, 27 Jun 2018 16:59:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIc0sQ0Wz+UX0lK1e28+yb7j9L24yw9fcKGLqu038eblV3AH0LDJn9oW+o/x8PUVXDQ0NSd X-Received: by 2002:a17:902:bb8d:: with SMTP id m13-v6mr8020607pls.46.1530143952717; Wed, 27 Jun 2018 16:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530143952; cv=none; d=google.com; s=arc-20160816; b=lxDDo3MtgbHNEVRcWIpOUOphGYLt3y/d6oQVgZ1thnLmOedXjG2rrHe2ZkhNZaHEhr /M/5wS3kczENHKRISsCcpH2+VsczS2WDCZqdeaVfvJMhsBywWbN3xR5iRYPmJ0dsrwO4 nXV2ZRhSh5immw8HjzQ9qod/TvUu9kSwBl5noZiRBSTbR0hFci4ZatgdpVej2WimC5Hx kt/jMGzjA2Td61uC+t8sknNJfKt39wCTSVZAibSUaiQisxj9vwI9q2YIGy0VHX4bH/L/ 10hEiv57syOKzap3tgFjAlqB2optegCVxp8ob+qdGe53u5JCCNr8bsyAHXnK+q3G7Ar9 8vAA== 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=oMG3/n6/0KNf/mtHzcV5hXn/+e5Nb1KS54PZI1A4Z2Y=; b=uqU/tt19/Em0B1hTR3PI5rIpb2o8BqOKQZ6GFW8LeKcnCd5AbyNeiEVpGJ3bzGoXtB 6PEpOa8cSrrlDnmjMagQ2dSk4tay0HhPor1gq6lafecUFju+gUrpkVxeARh72Uy7RMXa 55C3QbTAfUKcgHf7PoTgJ/GaKaxkwQVoFuGDN06c7yip4nCanF9cJzna2IyHmMXpJYdn nusck3C+pLw5YPQJFBr1De4ZxQH2KFObGFfsWjrc/e5PePHJOgIlJizu/y5BJifDUUSK Pcs3CeIrA7F80x3an5rATJu4dWgwtHbHqPnjdMPzWXsY006rbmgmspnICW7GFGEptm4x MV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dxBg0h8k; 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 n68-v6si5241934pfb.152.2018.06.27.16.58.58; Wed, 27 Jun 2018 16:59:12 -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=bombadil.20170209 header.b=dxBg0h8k; 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 S1751505AbeF0Xx0 (ORCPT + 99 others); Wed, 27 Jun 2018 19:53:26 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46394 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeF0XxY (ORCPT ); Wed, 27 Jun 2018 19:53:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=oMG3/n6/0KNf/mtHzcV5hXn/+e5Nb1KS54PZI1A4Z2Y=; b=dxBg0h8k8GHltwinNK+z+58n6 hUW3vAn0+DOuJ6jATpS5a7Evlvy86MszddJu3mUSSwsWal0tNj+KnLoS9+YHx5qkDb1PgOlQAW1DP O1EHLi7pN3HaOvv78Uec7gTdFaa4vcVAPCiE6Sf3Y9FoTvxau6+Dw26xBIlMjeu13v7Xlmn4P5j0T 8ZSQw6L1WCPBqoy7wgJn/IFUiGd4OiGRKC8+13eGji+AX2VTL2GNPTPaaYHuJy0myN2d5flxAiDjd na5zbpDMZMp5Ir0X+NedVaDcLJPEyjD18tM/BBHkl60ppebjhk02/nwfSLuiDP/oVYoH43SlbkZ0x e+0gtvHzA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYKFX-0004yr-7F; Wed, 27 Jun 2018 23:53:23 +0000 Subject: Re: [PATCH 12/15] block: introduce blk-iolatency io controller To: Jens Axboe , linux-block@vger.kernel.org, kernel-team@fb.com, akpm@linux-foundation.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, tj@kernel.org, linux-fsdevel@vger.kernel.org Cc: Josef Bacik References: <20180625151243.2132-1-josef@toxicpanda.com> <8a8c7008-b64d-1cf0-4cad-bdb73d37b53e@kernel.dk> From: Randy Dunlap Message-ID: <46234c71-9e27-b2f5-63cf-c9727117af82@infradead.org> Date: Wed, 27 Jun 2018 16:53:22 -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: <8a8c7008-b64d-1cf0-4cad-bdb73d37b53e@kernel.dk> Content-Type: text/plain; charset=windows-1252 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 06/27/2018 12:06 PM, Jens Axboe wrote: > From: Josef Bacik > > Signed-off-by: Josef Bacik Hi, > --- > block/Kconfig | 12 + > block/Makefile | 1 + > block/blk-iolatency.c | 903 ++++++++++++++++++++++++++++++++++++++++++++++ > block/blk-sysfs.c | 2 + > block/blk.h | 6 + > include/linux/blk_types.h | 2 - > 6 files changed, 924 insertions(+), 2 deletions(-) > create mode 100644 block/blk-iolatency.c > > diff --git a/block/Kconfig b/block/Kconfig > index 28ec55752b68..c3205b2003a0 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" > + 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 IO please. > + 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