Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2757076rwl; Fri, 6 Jan 2023 10:27:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXvNrCr0dFJv4C9j/JszhnDG93Rl/imec73R8YQtDNhzQFBwedBfn3JlE3CxTKjT0vYWpsnL X-Received: by 2002:a05:6a20:d044:b0:b0:32f0:6237 with SMTP id hv4-20020a056a20d04400b000b032f06237mr69064903pzb.18.1673029667744; Fri, 06 Jan 2023 10:27:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673029667; cv=none; d=google.com; s=arc-20160816; b=t9InW3XrkwhbdregDCCdh3FSqjdB0l5FdhmwwyqohAUT7m88X9T+DabOYB39eWDXEE vqufJ+Omr5Caz5I7KAHOG2djBi38npwVFQMFvDcNLsaNG/kUuhd62KAUgbW7t8STKADS 4sa9iAkVxsGeHMHoAg5xdJebYQcCdbjvgOU1Blr/dob87arbjnoQOSkIF7bCscjj4BZW xkctJztLhWB7vB/9CfxEhdAgvJP+Tav9hL60OCnaW98zDvcqlDbMxg6IVvVhzLCCYcKo /7UpjzsIMS85Rz+cRUtmWlMnKCbpx28O7mdCPiLxCKUpJeN/an2RFIIVxKnVOWLvJwS7 j/lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=tFVy3Y9MVCWte671WOFf60PfUPv+ycHx3SxmfV5kFG8=; b=pSKqCxu3rUlWCODBGWZK8VXgeP+avhOTQVm6eMLCBqCDE1LYSpUh4Hr9u23bVnq44S Ido2Fwa3fMRe1Sf3Q5dDTm4Yrz1oxwif7apvAl4fSArQIkXEiY3EekKYAO1rYmk7ygPw fLG+BTtY72hCaAjq84dKxJot7kzBlxTm9TVCImMB1OSAxDKK+F+JoPM5M75Gt1UsFA2T 6c3ozhf7raE9xvTKtg3s23u7X7qOaIREtYr71zPW94MkYKG9s+2HHPp5TeQ/GQzyOJoi POzR3gmcVoJyrdPVj1dA/eUgi5vIXLWny00o0AGXh4ETp0zlCFyc3jLWsgLnKYb1gs48 wB4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lbibIMuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a63530c000000b00477dc113782si1925408pgb.600.2023.01.06.10.27.38; Fri, 06 Jan 2023 10:27:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lbibIMuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234648AbjAFSQK (ORCPT + 56 others); Fri, 6 Jan 2023 13:16:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbjAFSQH (ORCPT ); Fri, 6 Jan 2023 13:16:07 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E232DD66; Fri, 6 Jan 2023 10:16:02 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id z7so1615200pfq.13; Fri, 06 Jan 2023 10:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=tFVy3Y9MVCWte671WOFf60PfUPv+ycHx3SxmfV5kFG8=; b=lbibIMuJyMXbJ2f2OyL1viffjumwMgpmMNynEDue06Z/2mLcY1PturmpBQ0tKz+++O zcR2ZA6fIwexsqo2cb8HATM3qQbVR1vIJDfjMrJwfXDravZuN2XGnn211EJY2m4Pekrz ZVat6RYBgxyrhjNjFOy4L1ereNBKykwwzQU/zYEZPSqFIHwOjbamjqY2NijUtQK8BrJo 2nW31/OdZsXqJn/cfjY7+T6dm/lg933yEtQaz4xDtodbAm6qvYILdifMMTBT0N3KQvvv 2aIxeB9W2cozL3Gk8bbaJX5HG9/ThseB+GM55mLOAURBKE3rgYfSMlL4/rdL1Nq/cJVC GLiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tFVy3Y9MVCWte671WOFf60PfUPv+ycHx3SxmfV5kFG8=; b=PPL41cYIKZFsAhrkDGoTYxIa7nQOKjrQam58Tz+V7lL0yroZT3DvQJsta/b2h8oH9X L/+0r2weIRrrPxgQPdlhd6scDbBxwDebugEFZdyydOVQzHOJquHbGs1Ep9ZWktA9KLMI xGhLWOUOlm280yNizy+ymhIvNc3GfnHlB4nEi8kEi4OWbVaTYSd+aqwmf4fOmHx9s2es uNQgFyBaaXrnaOaVDViLOG+sPB7qXP4EEig1mCHg68l84WuxgEHHHBsI1yoP3RGpatdO iCapoXTEEvgywTaFPq4YcRcOInS+TbmAGZkxFX6BWawgjiavbadEFzdBNvXQAf8iKtg/ CtfQ== X-Gm-Message-State: AFqh2koWGvvnXUVDCIbK3WQdX/YljISfP7+1cQCyTS1Jh1cXSVhaazje 2Ir6k5DjhZircEHvC1RcPY4PugVhyaw= X-Received: by 2002:a05:6a00:d52:b0:585:64d2:54a0 with SMTP id n18-20020a056a000d5200b0058564d254a0mr1659785pfv.24.1673028962204; Fri, 06 Jan 2023 10:16:02 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id w2-20020aa79542000000b0056be4dbd4besm1406580pfq.111.2023.01.06.10.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 10:16:01 -0800 (PST) Sender: Tejun Heo Date: Fri, 6 Jan 2023 08:15:59 -1000 From: Tejun Heo To: hanjinke Cc: Jan Kara , Michal =?iso-8859-1?Q?Koutn=FD?= , josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yinxin.x@bytedance.com Subject: Re: [External] Re: [PATCH v3] blk-throtl: Introduce sync and async queues for blk-throtl Message-ID: References: <20221226130505.7186-1-hanjinke.666@bytedance.com> <20230105161854.GA1259@blackbody.suse.cz> <20230106153813.4ttyuikzaagkk2sc@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Sat, Jan 07, 2023 at 02:07:38AM +0800, hanjinke wrote: > In our internal scenario, iocost has been deployed as the main io isolation > method and is gradually spreading。 Ah, glad to hear. If you don't mind sharing, how are you configuring iocost currently? How do you derive the parameters? > But for some specific scenarios with old kernel versions, blk-throtl > is alose needed. The scenario described in my email is in the early stage of Yeah, I think we use blk-throttle in very limited cases currently but might need to deploy hard limits more in the future. > research and extensive testing for it. During this period,some priority > inversion issues amoug cgroups or within one cgroup have been observed. So I > send this patch to try to fix or mitigate some of these issues. blk-throttle has a lot of issues which may be difficult to address. Even the way it's configured is pretty difficult to scale across different hardware / application combinations and we've neglected its control performance and behavior (like handling of shared IOs) for quite a while. While iocost's work-conserving control does address a lot of the use cases we see today, it's likely that we'll need hard limits more in the future too. I've been thinking about implementing io.max on top of iocost. There are some challenges around dynamic vrate adj semantics but it's kinda attractive because iocost already has the concept of total device capacity. Thanks. -- tejun