Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1639503pxb; Wed, 9 Feb 2022 00:51:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg6qJsHyQ1TdTOsH9JOyYHgo2SyOADMQ1ZIOr75cHdGTqALjxty6j8a+rGd3xAKf6JSCSm X-Received: by 2002:a63:4743:: with SMTP id w3mr1073665pgk.207.1644396704799; Wed, 09 Feb 2022 00:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644396704; cv=none; d=google.com; s=arc-20160816; b=YUgQxcJTpb2kC8ENrfNu7GbdPFDBFk4tYhTLHxdiOlg/Yzw8MmNpP8vUhUuFos+wGh R2co9+9u33gJ8d0oH0qg24pCvHxnJWg/l4LMZCDDy7r5XNZqF4/V3OmTEOHC2LnQo/5T FHEzS68riq4lAcNrNUmDFZmcsNgCXeb9N01/uLIVRtcsPWRC+RPWUKxEpP0qsMr0LWsG ekG44Pq9+dud9OczumPS/f2bMUHaik8rJmGOKRHAZNAgvq0L9RA9UvD0KQcXm04K4eLF Dh5O2NJ1k7NP/6Yvv1GWrFNMpEqDBJz+8PwhuFfz0fdIieq0FkOuD/DxpvCWOnL6rBtg ipeQ== 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:dkim-signature; bh=X9DHk6APJIsHE1UI+ceCyZijDLQACCuReEtHVHktgAg=; b=0IaDkTqVzhiJ+cQtt1UEcKGvqaOlnWDHS0Z15I8fteW2r+hOehRA6nlvpDIMV8/+Db wcQi0c7wcqhprCDAZ4guE2LMyd+t/8XZ4m0QxEjC8AhZQzOmI9ldS+haD0gFiv72guzL hPmPD7bEdEzKSKtSNEzbT496BULmhDQIbxqwYoDpxnaixYRrYH0gXPCrVlrqjHi3C8L0 6Wb6KA0woUBWr4ntYFve9k3o6j6L9nJshBqgEFernq3gMoTOoCxBM+/T9MB47sUSB08u iFwU4gcUjvwKlRZCz0u8LChlKDVpw2xSragPbleTuUQJPwuaNWky83HeoWhBAgfrubOD xIXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AmXW1nf8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h132si15138595pgc.823.2022.02.09.00.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 00:51:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AmXW1nf8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD27DDF28AC8; Wed, 9 Feb 2022 00:44:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244952AbiBIDPS (ORCPT + 99 others); Tue, 8 Feb 2022 22:15:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232860AbiBIDOy (ORCPT ); Tue, 8 Feb 2022 22:14:54 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B91A3C0612C2 for ; Tue, 8 Feb 2022 19:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644376492; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=X9DHk6APJIsHE1UI+ceCyZijDLQACCuReEtHVHktgAg=; b=AmXW1nf8BYebvD8R3j31GEa5KmvmSbdZ8Ns7MmDTx3dX+hx4r17ufHkODYgbgPe3yqzioj QSZpLeJk+gmj5QQ5epZUGFtwOWvSMqub2zv5GImnSo8eoLfUvFt72+H/vivHS9EuaE4jtv G9GwL4oE4Wf3T6hPL57IPLgxWoHcTI0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-533-TMv76d40NiuumRdfoHQ9zA-1; Tue, 08 Feb 2022 22:14:49 -0500 X-MC-Unique: TMv76d40NiuumRdfoHQ9zA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E426E1091DA0; Wed, 9 Feb 2022 03:14:47 +0000 (UTC) Received: from T590 (ovpn-8-25.pek2.redhat.com [10.72.8.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A6EBD4D729; Wed, 9 Feb 2022 03:14:31 +0000 (UTC) Date: Wed, 9 Feb 2022 11:14:23 +0800 From: Ming Lei To: Yu Kuai Cc: tj@kernel.org, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220114093000.3323470-1-yukuai3@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Yu Kuai, On Fri, Jan 14, 2022 at 05:30:00PM +0800, Yu Kuai wrote: > RFC patch: https://lkml.org/lkml/2021/9/9/1432 > > There is a proformance problem in our environment: > > A host can provide a remote device to difierent client. If one client is > under high io pressure, other clients might be affected. Can you use the linux kernel storage term to describe the issue? Such as, I guess here host means target server(iscsi, nvme target?), client should be scsi initiator, or nvme host. If not, can you provide one actual example for your storage use case? With common term used, it becomes pretty easy for people to understand & solve the issue, and avoid any misunderstanding. > > Limit the overall iops/bps(io.max) from the client can fix the problem, Just be curious how each client can figure out perfect iops/bps limit? Given one client doesn't know how many clients are connected to the target server. It sounds like the throttle shouldn't be done in client side cgroup, given the throttle is nothing to do with tasks. Maybe it should be done in server side, since server has enough information to provide fair iops/bps allocation for each clients. Thanks, Ming