Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3647995rwb; Mon, 16 Jan 2023 10:48:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXvkIv+jexICb1QCkscFfuZBlYlgNgTr98kQUkN69YzMCCQxr41we9dlu+Er5gjOqZkfCQMv X-Received: by 2002:a05:6402:1764:b0:499:8849:5faf with SMTP id da4-20020a056402176400b0049988495fafmr264329edb.26.1673894906670; Mon, 16 Jan 2023 10:48:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673894906; cv=none; d=google.com; s=arc-20160816; b=nec72CkDk1pzeE+14L9JNFXkIH78sDe2kemFUGRS+Qhb+Lf6E30ddUT89pOZDqW1jr phVsZfTrYEqtoVpgaTTroh4g0RUOojDxYKRkJ5jCSbtXzCUnUYxuvtrzh+ROct3Ibgs0 AxnzHYZLSVAX8nJ0xqx5xxMPg6oEkMRxwa0sN8DVj8QplR9YPSxM0orWjdPfARpoC65j GClXnLdtDykXnIsPF9ykDj33+3oqp20+htHHRgEJlZs2F0Uei/HmW33zJnD9nAWPdOig bT+gDpEP+sRoLt5kh8e6ndxax2OEwjpHM8B67x3W3jHAkRmgzBFxbQyWSY2L6aNghsnk LTnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=SMh+ag8vr1xnoV0VXFDBTyfjJzh0NwEeniwxIxd/A40=; b=pM+1wklwUVfiWCZQW5pEldmj4YeuVVYZw1CAm1Q/tTY+WKt3rCnpjLo4d+aWXDFTqP z8XS4nPu8E9yCCLYOve12+DwMWACe1rpFGJfuKn1BtqXMZ0LdI/TsFWqLuUyUD9SI/GZ 4p6uFId1u53gsHhPfFsa2eIufkwPSVPq4lp1A6knfc+VhF0V5mEQ1YFWTPchgy1HR8mS WCY0h4bpiBZZWjqDTpYBl4vB0F897dJem2B6fNJ5WNSzcfARp1yBZOAYR/YfSz96pbOP +2YR4hGNZHkSM9otI7xLLVsjxhv4iyuDQjrjfqfxWRg/B+hhs/ttj0J9te8qqbwRaRix xbgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2Sm3nuF; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ee38-20020a056402292600b004591f959c3bsi26461477edb.427.2023.01.16.10.48.14; Mon, 16 Jan 2023 10:48:26 -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=@linaro.org header.s=google header.b=R2Sm3nuF; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233470AbjAPSWu (ORCPT + 50 others); Mon, 16 Jan 2023 13:22:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbjAPSW0 (ORCPT ); Mon, 16 Jan 2023 13:22:26 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4020B3A59D for ; Mon, 16 Jan 2023 10:09:26 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id tz11so5534024ejc.0 for ; Mon, 16 Jan 2023 10:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SMh+ag8vr1xnoV0VXFDBTyfjJzh0NwEeniwxIxd/A40=; b=R2Sm3nuFTkPJut01DoV2RheH9x3+eGtgZbLkhTbP9rKrq7UTNNK+pmh26R+NZ9Soq4 6MuYLCjPvFOx/eg2M4Gv5hDgUATKdZT55J/aTFGPkNVQo8buVIw/z7jApHS/dPvNnSht mLrP2fsQDvZT/mGcvpotcOybR68VwxbIUxu3JymdNt2xKt7KpFTpX7nm5sjLmsphu5q3 1lemg3DpTGw/NUCUDdLmjO+mVurQJXCzzmtGlGNjq1M7mVkBMopTK+GHsqMwmOBu/guO BLapKsEatLAdqu/hgDFeeziIbEZV5pcGh96gYvlMPTZ/F6Jkqan7ZUKZ4Kk8G1mwqSK0 YImA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SMh+ag8vr1xnoV0VXFDBTyfjJzh0NwEeniwxIxd/A40=; b=xgXnCOCw8Tht1uGXieyEG1geUwEwKyjjyKTV94fxwxpkwi1n4c32jYFWMVSUrFU7jE Bhz3PgaWj20V1qB7Di/qYqYkDk/l63UnhDMhUY+uFk6Z4HVGQItGoqqRpm0RXWjYE/6X XY1Wn8GSzvts0HcpfcfLvxF87BOOFCXnDenX8I6aciSYyG/Kkqp6wKeEubaRpjO1XkRr X2yhm6f2NsjfXDCNMi0MgBi76tq/yKvzLk9NRbJgpnuDlemLjrQ02wI45I5WVdhySKZ+ lJgTD3uf2boI5KODUYUCpuo2iBJST/AhYViWyZkZ0/CtY+KwrY/jiQmzurlBJSmTpzne fZIA== X-Gm-Message-State: AFqh2koI/WMEmnz0KTyenInXnVE+PtqIVp/pmCsYTweRCdnvCy3yNsko 6/ujrOY0XgS0l+2rWshWbGl/6w== X-Received: by 2002:a17:906:264f:b0:86f:b99c:ac8d with SMTP id i15-20020a170906264f00b0086fb99cac8dmr6110224ejc.44.1673892564713; Mon, 16 Jan 2023 10:09:24 -0800 (PST) Received: from mbp-di-paolo.station (net-93-70-85-0.cust.vodafonedsl.it. [93.70.85.0]) by smtp.gmail.com with ESMTPSA id ky6-20020a170907778600b0086b0d53cde2sm4028360ejc.201.2023.01.16.10.09.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2023 10:09:24 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH V13 REBASED 0/8] block, bfq: extend bfq to support multi-actuator drives From: Paolo Valente In-Reply-To: <20230116130341.lci7hixndnxvjuhz@quack3> Date: Mon, 16 Jan 2023 19:09:23 +0100 Cc: Jens Axboe , linux-block , linux-kernel , Arie van der Hoeven , Rory Chen , glen.valante@linaro.org, damien.lemoal@opensource.wdc.com Content-Transfer-Encoding: quoted-printable Message-Id: <2D3BE66C-8E36-4D32-BEF3-B500133CA66B@linaro.org> References: <20230103145503.71712-1-paolo.valente@linaro.org> <20230116130341.lci7hixndnxvjuhz@quack3> To: Jan Kara X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 > Il giorno 16 gen 2023, alle ore 14:03, Jan Kara ha = scritto: >=20 > Hi Paolo! >=20 > On Tue 03-01-23 15:54:55, Paolo Valente wrote: >> Here is the whole description of this patch series again. This >> extension addresses the following issue. Single-LUN multi-actuator >> SCSI drives, as well as all multi-actuator SATA drives appear as a >> single device to the I/O subsystem [1]. Yet they address commands to >> different actuators internally, as a function of Logical Block >> Addressing (LBAs). A given sector is reachable by only one of the >> actuators. For example, Seagate=E2=80=99s Serial Advanced Technology >> Attachment (SATA) version contains two actuators and maps the lower >> half of the SATA LBA space to the lower actuator and the upper half = to >> the upper actuator. >>=20 >> Evidently, to fully utilize actuators, no actuator must be left idle >> or underutilized while there is pending I/O for it. To reach this >> goal, the block layer must somehow control the load of each actuator >> individually. This series enriches BFQ with such a per-actuator >> control, as a first step. Then it also adds a simple mechanism for >> guaranteeing that actuators with pending I/O are never left idle. >>=20 >> See [1] for a more detailed overview of the problem and of the >> solutions implemented in this patch series. There you will also find >> some preliminary performance results. >=20 > Sorry, I didn't find time to look into this earlier. I've just had a > high-level look into the patches and I have one question: Did you = consider > a solution where you'd basically duplicate all of the scheduling for = each > actuator (thus making them effectively independent devices from the = point > of view of BFQ)? Yep, I did. > =46rom the first look it would look like somewhat simpler > solution than splitting all the BFQ queues and implementing special > injection mechanism for other actuators and perhaps lead to better > utilization of the actuators. OTOH the latecy and QoS for tasks using > multiple actuators would be probably worse because it would be = basically > determined by the busiest of the actuators. Exactly, that's why I had to keep all queues in the same bucket. Thanks for both asking and answering! :) Jokes apart, thank you a lot for having a look at this contribution, Paolo > So I'm asking mostly out of > curiosity :) >=20 > Honza >=20 > --=20 > Jan Kara > SUSE Labs, CR