Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1701634pxb; Wed, 2 Feb 2022 10:32:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLVKHK1i1lXvEZ7UmwATj/GcuQlJh9jPJWTRFj/gvjFMo4P/IfTfyF0r84wvhLdRrChobM X-Received: by 2002:a62:7c42:: with SMTP id x63mr30853398pfc.31.1643826758518; Wed, 02 Feb 2022 10:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643826758; cv=none; d=google.com; s=arc-20160816; b=du1o1GBEuGMJHM2G06rtsjK05VM7VEXj8b/RDe1tM6rksoAj6CufCr7A0vlG/R9bBZ sC6tLiI5hxETrhyyKaA3zczirXsgSDYn1z0vkqr6JKJ1veuVpcm+ICdXCILXfw7CQnH7 Bn308oZbRxlgkkQjUnj3mt4cDlmfNiBQM2imYVkY0HniQqEl+/fx55vgcGq8jpJ8ELof F+Hxm1vQ333/Y5aKbwvhJvqFzA81j7D1j9QqFK0I8GWQIFm6F2/MhuPZg1IBhMnwuXQL nEtcBfJM7oKo6vOHU5qRquxOYQKNOtZk+f/Lygcguku68oyGavAXjMdFxlHNDeSAP9gd +vbw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=P/OM7TjxmbJXWO65CCc5u6gW1j1hf5TT48SuvRQUGM4=; b=HZ5MNAMbybVlbQBeKxPvrQnX1nva77AaXfPh5xGjNF25iElO4sIbj5QdQFGCM2EQYE hhF2peLmJSz3pHLv1he29QcWmgr8oojXjoSevMMu2TFYl8qElUBPNtPcSI0tfbZ/7bU/ sf4j6WF4F9+1u0Qh4/F/7PQpOg+RxJxjVKWxTZTWXl+oZ/y7RL5rYZHZz69ZgRkZqw+R PKST51deCACqguIkzXOROM64NzoD3Y81pCF0l0N3S1qjvXVwculnW4vRooQ0WG8OjwB0 /ozx/+ahURYEfOK4PMwGtY+wsWUG9pBZwvcBH5d9Ll/Iby52sLEmKUjVtjKlRXW4PknD R6tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Th2pE7Id; 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 f11si20479897pfe.328.2022.02.02.10.32.25; Wed, 02 Feb 2022 10:32:38 -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=Th2pE7Id; 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 S241449AbiBARUj (ORCPT + 99 others); Tue, 1 Feb 2022 12:20:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbiBARUg (ORCPT ); Tue, 1 Feb 2022 12:20:36 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2CB1C061714; Tue, 1 Feb 2022 09:20:35 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id j16so15924431plx.4; Tue, 01 Feb 2022 09:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P/OM7TjxmbJXWO65CCc5u6gW1j1hf5TT48SuvRQUGM4=; b=Th2pE7IdvVAvL27K0Qf/WfMwKXepCYHz0caGuE/hHj2a/Cnls+2LvQk4pd0hPSsVmc /P6uhuhZiLl+17CpwiopYhBR/qCtJBVssgTbQdYnIISNQERS2GZ14qq/Hg7eUUCaN674 VCwtBPI4DwClaYXcyxJN+XKveP7T7CfMg5ljyW3+GK7dyKLOmA8hFBXrPEcKThr76/Z1 McM98ys2DJwA4II8akyGsTpeN9bHmMtE68PaVABB+oTwu+4yN2ONkyGt3QHviGejnNXf 7GgXGq04oayAGMEjV9a1B4yP0UFh2KbtUdz2IDGrTo7ZtGrKniUuXyFMvj/ITBpXNTId pHiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=P/OM7TjxmbJXWO65CCc5u6gW1j1hf5TT48SuvRQUGM4=; b=nuphlPTDXdkwSDnUWH6Ss4nCdRdRM01kQ/PnJVhFMY2drww3RLAKnddClVatJzm4ju G+AB6hS2MZulCp70yX3pqVTkVScVvjBg8fDV0DJ26PJYkZD4eu0EAmMjbaWxiP1RB49A +JMPrhUwcXVUFYgEyE+Ip3tLosSnBbwqddRu03TW0yLJkx+10lHPm3afWK3cDdSr76lk YIQgQlIBbENFCkt5wP6KKbbGFaYlm/UPtclylwqpuhJvQ3bnMIvZJTajVd6VErs2qPOj FlvfytpnS7AW+hgBrSGK8qymxDykqjyutbBblDGgSt/e/yyWm8RbygMx4WZjFRvu+Oax Cmbg== X-Gm-Message-State: AOAM530FgnFIe+8gwqdIiSh7X5EdtGuXGy9n309ybF87mfrXei6StaOc s1oZSYfjysQvzR0DjwUgsjQ= X-Received: by 2002:a17:90b:3144:: with SMTP id ip4mr3488407pjb.23.1643736035151; Tue, 01 Feb 2022 09:20:35 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id a1sm31598385pgg.18.2022.02.01.09.20.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 09:20:34 -0800 (PST) Sender: Tejun Heo Date: Tue, 1 Feb 2022 07:20:32 -1000 From: Tejun Heo To: "yukuai (C)" Cc: axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH -next] blk-throttle: enable io throttle for root in cgroup v2 Message-ID: References: <20220114093000.3323470-1-yukuai3@huawei.com> <235b0757-d322-2b6e-3ab6-ecc8c82f8f1e@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <235b0757-d322-2b6e-3ab6-ecc8c82f8f1e@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, Jan 27, 2022 at 10:36:38AM +0800, yukuai (C) wrote: > In our case, the disk is provided by server, and such disk can be shared > by multipul clients. Thus for the client side, the server is a higher > level parent. > > Theoretically, limit the io from server for each client is feasible, > however, the main reason we don't want to do this is the following > shortcoming: > > client can still send io to server unlimited, we can just limit the > amount of io that can complete from server, which might cause too much > pressure on the server side. I don't quite follow the "send io to server unlimited" part. Doesn't that get limited by available number of requests? ie. if the server throttles, the in-flight requests will take longer to complete which exhausts the available requests and thus slows down the client. That's how it's supposed to work on the local machine too. Thanks. -- tejun