Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp54841pxb; Fri, 17 Sep 2021 18:37:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyp76UrTcZpMVBhCJMVd8+ywexMjXEU7iyVJHXSDcEZWhe8sxQuv2PdoVx2Q2EGacM60e6 X-Received: by 2002:a17:906:6403:: with SMTP id d3mr15154301ejm.37.1631929026521; Fri, 17 Sep 2021 18:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631929026; cv=none; d=google.com; s=arc-20160816; b=sXYGccfqBzed7IW1IesDnC4a9UsiXsSLk/gKsP51BtcprLC8WfiAfBUeBSUn32uGgl PyLQIQkXcRrjUcTTB7q0rcQcZyVA+YaGqVkthzNyeTZQIOPVuG5jLO22r+AyNVuPwLOH Ftd1/JA2yfRcF/udwxpSZmdOA4J4HNxpFHocNrntks1xA9aHZnmtKz3my52kAbexInUJ VshaKdhI8QO4LAkGsZm6nstKhP/wc1yDxK/1SpKp8X2iFfP2U96cjvIdjQXWu+aWi21R zZhm9/f6zuPZ9f1EeYiQG/ON6cObPoNDR5aI7FGncLYFKkEoNoz8hczVdapQzR8xDlm2 BiXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yGdnRQChmmfug9TJwp/GqG9nQH+or3zg5tguY5oo+D4=; b=gfrbo5518sRo/ugO1aCHP3453vjN6rreM1Uj+TFTJJ7drQFaMzSHE7wWNvKrW8gcrR eeg1mWffjMO//AnAIgAaNts0zdJFAt+y0AVSowaj7UbmwSxx0nDnaatcPDmcvOI/TYAe iXgtFBNplshOYl0FJyexVmdlihEsamojTmfD0ulcgxXK8Lsz+BQGVsr6bcHXvIpV4ACx Z6AilhLsE4aLrgtPvESHvst95FJC154qfBCI7cm6qWhYhz5A4KO242XAGxEV8rHeuKDP VLjpIwtP1UrczoWBsilCpgFgwZQ9o+1zw8nmc2xXoN8Lc/HjXdqY+5Q3fKCLHcSQdHXv slzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=cMHI6XJF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si8199127edd.393.2021.09.17.18.36.42; Fri, 17 Sep 2021 18:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=cMHI6XJF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238531AbhIQRme (ORCPT + 99 others); Fri, 17 Sep 2021 13:42:34 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:48676 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233099AbhIQRm1 (ORCPT ); Fri, 17 Sep 2021 13:42:27 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 60A3021A8D; Fri, 17 Sep 2021 17:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1631900464; h=from:from:reply-to: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=yGdnRQChmmfug9TJwp/GqG9nQH+or3zg5tguY5oo+D4=; b=cMHI6XJFM9M0KRsFulwCJSBaxKY+SGgZU1ShmWu4BBWJgJXWUslymcRIbNBgnGVyfc2xZF I+qnQnhzLxFMwiYPjH9sGL51bd1pzspozV/uMy7gb8qemsd7KaVa5X8ON5xYzK50nwQLcg jTtHsbjzv3skwLtVW2LjumGvwEwlHcY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 44CF613B0C; Fri, 17 Sep 2021 17:41:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id dVM0EDDTRGHBbwAAMHmgww (envelope-from ); Fri, 17 Sep 2021 17:41:04 +0000 Date: Fri, 17 Sep 2021 19:41:03 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= 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: [RFC PATCH] blk-throttle: enable io throttle for root in cgroup v2 Message-ID: <20210917174103.GC13346@blackbody.suse.cz> References: <20210909140815.2600858-1-yukuai3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210909140815.2600858-1-yukuai3@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Yu. On Thu, Sep 09, 2021 at 10:08:15PM +0800, Yu Kuai wrote: > I'm not sure why this feature is disabled in the first place, is > there any problem or design constraint? The idea for v2 is that in the root cgroup remain only kernel threads that provide "global" services and any user workload that should be constrained is put into non-root cgroups. Additionally, if kernel threads carry out work associated with a cgroup they can charge it to the respective cgroup. [snip] > We want to limit the overall iops/bps of the device in cgroup v2, Cui bono? (I mean what is the reason for throttling on the global level when there's no other entity utiliting the residual? Your drives are too fast?) Michal