Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1087405ybp; Wed, 9 Oct 2019 08:37:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFRJ1qUmFTqjZhPKGhJcrMhLQDS0HnIiE3SwUko3sDiZZBRrgwcI+fFnWfcZ3M0A9K9ReQ X-Received: by 2002:a05:6402:1652:: with SMTP id s18mr3584694edx.241.1570635466848; Wed, 09 Oct 2019 08:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570635466; cv=none; d=google.com; s=arc-20160816; b=et+r32tnJjpS1jr+P6XKK4JMCt4k2ga/GUmh+GS3dku6yzImGZIEEuFJmNcrejdpxL yam1CaUjwimVI8ML17Llh8Zxtz+Uq+YUiKfqo2j/k5kUdovjGRtd6aID4t/Dft1RooPg 3+Mg4YQfGBP12CN3/3GVKosizGfxLM1J13exHOseKrTS4NYPjl6CU3KcKW9IThvGduF6 og9nSqZTLZrPbiPjurELzNoGH5PdE+sp3dzycSNrIwL2UZ03TdjCiH7J4xzr2olGsMYi wrxKib90TmZcbMfej0JWz/8f0G+prKfEL7t2Wq5Osh5jtvadUkjqpy6y2RXn6ylRpFbY bm3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=E+X0FDbv1R8QWk7FP58rWh3xzJqdfnwPCIC1wVv0z2U=; b=F+JWylrcmcC9jO8QIMOA2G9H9UmIMI4jyFym/i04/JWSibZFPYA5l9+x9hUlk+QrRZ FO3ebSu4PdQ1/8RB8sgY5za3Ee3b7WOjbKlhSnGnnZ5tQ69Yn3Hkj2INCr1aHohx5zVH 66SdbpkBYPWKKjpNSkyaOWQqK8IdX+iDu28ZNG54Efz+HLTgzLx5XOUZyYWglgVXmn+N ThlK6Os4IW4bk64rnluzXNoyIaZGOWreOwHTrKJSWYbL1i6+S16gQrv+wB9M6qP9iUwD D4qAgBF3DkBKIWeWKgxHnOcjH37kqscd+sgHWxp9jENiXlmO/VDbBdEnFY89ADxYEDwD 6Mrg== ARC-Authentication-Results: i=1; mx.google.com; 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 g30si1631433eda.2.2019.10.09.08.37.23; Wed, 09 Oct 2019 08:37:46 -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; 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 S1731423AbfJIPgh (ORCPT + 99 others); Wed, 9 Oct 2019 11:36:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:36374 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730503AbfJIPgg (ORCPT ); Wed, 9 Oct 2019 11:36:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CA13FAD49; Wed, 9 Oct 2019 15:36:33 +0000 (UTC) Date: Wed, 9 Oct 2019 17:36:29 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Tejun Heo Cc: hannes@cmpxchg.org, clm@fb.com, dennisz@fb.com, Josef Bacik , kernel-team@fb.com, newella@fb.com, lizefan@huawei.com, axboe@kernel.dk, Paolo Valente , Rik van Riel , josef@toxicpanda.com, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/10] blkcg: implement blk-iocost Message-ID: <20191009153629.GA5400@blackbody.suse.cz> References: <20190828220600.2527417-1-tj@kernel.org> <20190828220600.2527417-9-tj@kernel.org> <20190910125513.GA6399@blackbody.suse.cz> <20190910160855.GS2263813@devbig004.ftw2.facebook.com> <20191003145106.GC6678@blackbody.suse.cz> <20191003164552.GA3247445@devbig004.ftw2.facebook.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20191003164552.GA3247445@devbig004.ftw2.facebook.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 03, 2019 at 09:45:52AM -0700, Tejun Heo wrote: > [...] but the qos file gets weird because the content of the file is > more resource control policies than device properties. I see two facets on this -- the semantics of the QoS controls and storing controller parameters generally. Because I'm not fully convinced using the root cgroup for the latter is a good idea and I don't have a better one (what about /sys/kernel/cgroup/?), I'd like to question the former to potentially postpone finding the place for its parameters :-) On Wed, Aug 28, 2019 at 03:05:58PM -0700, Tejun Heo wrote: > [...] > Please see the top comment in blk-iocost.c and documentation for > more details. I admit I did't grasp the explanations in the cgroup-v2.rst, perhaps some of the explanations from blk-iocost.c would be useful there as well. IIUC, the controls are supposed to be abstracted and generic to express high-level ideas and be independent of particular details. Here a bunch of parameters is introduced whose tuning may become a complex optimization task. What is the metric that is the QoS controller striving to guarantee? How does it differ from the io.latency policy? > [...]=20 > + * 2-2. Vrate Adjustment > + * [...] When this delay becomes noticeable, it's a clear > + * indication that the device is saturated and we lower the vrate. This > + * saturation signal is fairly conservative as it only triggers when both > + * hardware and software queues are filled up, and is used as the default > + * busy signal. (The following paragraph is based only on na=EFve understanding of the block layer.) So the device's vrate is lowered, causing its vtime growing slower, i.e. postponing issuing an IO later for all cgroups accessing the device. But what's the purpose of this? If the queues fill up, wouldn't be all naturally pushed back by the longer queue time anyway? And wouldn't slowing down the device's vtime just cause queueing elsewhere? Thanks, Michal --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl2d/nUACgkQia1+riC5 qSgceA//QDkptfj5otDY4KHhLNVykDf/CbJN9RXtXKVybJ+GMFUF0hZqur090XJ/ OIy+rmh6WXf6HEislGKoc9UvRxko+6jxteR1ROd9b9S4tzQib1vJ8i2euw61uO8U PLhkmGGU7vXvMwdI07vrmfI7XnrCH7cC1gAVkZ25m7NPwDGTq55h0h9FZDhcyJWL PI66dmr5yJnfV6W+A/JmlzUV0s7D2h9KFiPm1wxtxQaCacsN5A54OyqMvgJ+W1WM 5+udGwMol41ukl9VeHQEhrsx0gRFwIzP6P/zS4tGiFmxyPEGkH6o+nXSUKdOAm6I 91Z7bCI6dFVZHAA4BXzpEpMQAQADk654H3OPhxxKrb9jtPMm+SoC7Ch87bbb0uc3 8WfjMl4DNaEroncGCFEI/i5YfA/8hh9yRktC0SZ3KKDMm/Ne4P0PPtK25JTjRynM 2T030Z2RGSs0EjBw4e/6mhsb4NpuQczoQ4bMKxFDj13gX2myWwxKuBz5BBfi8npl u/z6RDT1DVekTBHGE3tycDdwzFFZ7iXLgjJMQpQK+nyZIk3/dHqrSF0QDhz6dST4 rLUbzAzhATbDMGIswWvl57/CloudeL9oSev6HFCNGnhL4yMp2ue0RkGG1vTaNLgy 3VKYlosU7zWHM8sSj+3/dxLVZAaHT85veMWUjdv9l8x8jAD/snc= =JD5Q -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--