From patchwork Thu Dec 8 10:43:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Valente X-Patchwork-Id: 2770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp122487wrr; Thu, 8 Dec 2022 02:50:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lpKb35ASyuXv+RLNXuJD7MfWZnDaCnl6rb7kNdvmf/jHiPv/5nwJBiNb8GCYgvKx/8fQm X-Received: by 2002:aa7:8686:0:b0:576:1b68:2b59 with SMTP id d6-20020aa78686000000b005761b682b59mr33682068pfo.72.1670496627621; Thu, 08 Dec 2022 02:50:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670496627; cv=none; d=google.com; s=arc-20160816; b=xwuQstOb83Xpq3QlCbe3do990ICQZUtjfIlHQ6UvWG/Ax9bI1EUyiXv8TBV00iS+6Q EmcxYmbiTRpxv7dzcfEyFNTbdVAcNq7IvW0pYhzWoKy26GPu+H+pN/thVgjjpyB05nOO GVn3/uSYgjHWe4/iHKcD4wcRyHTJrkS/BRVAfDvvQTVtk4jVqdmhqjMbXHsp9XGjeO3Z YgOv8F+QZTGnM8wI0cTjmI/A5FADT/+wsDnUlGPd9zfcJn0oaEjVcMxiqOzdGsRFwLZn XF8GnGQnLCjdveWQ1ptglsfAzpfkdpTFjJXFGjAhGg0WmCuw8M1JVRtrVTriuV5ScSi9 CiGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ayq2uzYmxur5KO3TBD7Tr7qziqy3xJrvwA2myfA8G2M=; b=Kx80NvEK0xcb4eQ5LhM601OWIgk8zRbxjYH4kwT/iG0Sdj+0BiHQY3jcgYxbzprmbR pr0XZqKimarPySfh7BvDZv3qSvjrHbdFKJ/mqMdadUUAK/M0D39wtIAeUTtewd0oRxWo DYCn8995xKsLtbMUysjhq8Ub8DCMACHTCf4bvyXHvBUmJTB0YrwFJh08gDSH3FM/JYPP vf+OL64vSzXbhhj3bqcezJ2QwdDm4wda6MeRfDCkifqCsdzuTp6ZELFYQBufq5/M9iuJ IIDAABoiqRA/fBRQ/JwJnTb7ovpDZ2myboMVIizS/HI9SbMZ+2TfCZGVQxostAH8+XXn rP6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zeWPkoCZ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a170902ce8e00b001899e936c2csi25457033plg.531.2022.12.08.02.50.14; Thu, 08 Dec 2022 02:50:27 -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=zeWPkoCZ; 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 S229850AbiLHKtv (ORCPT + 99 others); Thu, 8 Dec 2022 05:49:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbiLHKss (ORCPT ); Thu, 8 Dec 2022 05:48:48 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96C738AAE3 for ; Thu, 8 Dec 2022 02:43:59 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id t17so2918144eju.1 for ; Thu, 08 Dec 2022 02:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ayq2uzYmxur5KO3TBD7Tr7qziqy3xJrvwA2myfA8G2M=; b=zeWPkoCZb1FlV7oMvzbYNU2TqdCH2PecBvv9BOPMv1x/pbetJ/0zzxlW9aLYpXI+Uj rLpDGjKActCDbELjrkfq5YHMz/duulYHGsoVZe1eGCogKHRZDN0WicmHTwb52JJsDGv7 mx+FomyfQPKw7Wi6EvBj6WfFjGpqVGOeQeWnR7x46B3oCKm+skdTsNqIVPbTfGcbhmur zRxWNz8W5DCd/WtodpRe2sna/Mxulse9tkACWGy4TzT8oSoD8SYSzB7K8DOuaZn5rdq5 /3msWgsvHEatA0Np63ffbStzLoLqEw9hj4DJVvbJ86HmdRsK0dhaaRIO/bYSn9Nj7MvP EXVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ayq2uzYmxur5KO3TBD7Tr7qziqy3xJrvwA2myfA8G2M=; b=usvMnSJ9uXilP8VMGEd182aksRzQGwDR4obt2OgM73+ikdYCpi6NoGbJZ2W++gLLSo TGUHt76AbhvYfDS9nkE7++F2CsMuGKukxgvFbp95f5XSuzNWYk2l2HBsNw5tLhHJPyIH OiIJ8nURoFBHqp6serEI+pneoBxev/M2xCNJ3zMgqqvn3No7rYkzlKqEtgTFD0UEIADN OjZn+jwZGJY7SbmPLo7LGhOHDg+ptYDjDWCfodMR7pRyzEvZdU+Zvf+Qu57QAsZGAnRm uKXCJOJ3feO/hx9A3vG4LeDEa45IA41xQyIr8ogHAHjs9ZPqcspvMGXxCytQm93gOy+l spPQ== X-Gm-Message-State: ANoB5pldZDLrm4XO/k0Naoska0p3PtJciaeNJK+5E88YWGbpn4WMvxiX 3fZuz9PH0VB4rWBBIhg0KAcU8A== X-Received: by 2002:a17:906:4351:b0:78d:513d:f447 with SMTP id z17-20020a170906435100b0078d513df447mr68192785ejm.708.1670496238174; Thu, 08 Dec 2022 02:43:58 -0800 (PST) Received: from MBP-di-Paolo.station (net-2-35-55-161.cust.vodafonedsl.it. [2.35.55.161]) by smtp.gmail.com with ESMTPSA id fe17-20020a1709072a5100b0077a8fa8ba55sm9544193ejc.210.2022.12.08.02.43.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Dec 2022 02:43:57 -0800 (PST) From: Paolo Valente To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, arie.vanderhoeven@seagate.com, rory.c.chen@seagate.com, glen.valante@linaro.org, Paolo Valente Subject: [PATCH V9 0/8] block, bfq: extend bfq to support multi-actuator drives Date: Thu, 8 Dec 2022 11:43:43 +0100 Message-Id: <20221208104351.35038-1-paolo.valente@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751642671648158038?= X-GMAIL-MSGID: =?utf-8?q?1751642671648158038?= Hi, here is the V9, it differs from V8 in that it applies the recommendation by Damien in [2]. 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’s 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. 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. 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. Thanks, Paolo [1] https://www.linaro.org/blog/budget-fair-queueing-bfq-linux-io-scheduler-optimizations-for-multi-actuator-sata-hard-drives/ [2] https://lore.kernel.org/lkml/20221103162623.10286-5-paolo.valente@linaro.org/T/#mdb87dc01b2ac165056ee3c7a1386754dea42a006 Davide Zini (3): block, bfq: split also async bfq_queues on a per-actuator basis block, bfq: inject I/O to underutilized actuators block, bfq: balance I/O injection among underutilized actuators Federico Gavioli (1): block, bfq: retrieve independent access ranges from request queue Paolo Valente (4): block, bfq: split sync bfq_queues on a per-actuator basis block, bfq: forbid stable merging of queues associated with different actuators block, bfq: move io_cq-persistent bfqq data into a dedicated struct block, bfq: turn bfqq_data into an array in bfq_io_cq block/bfq-cgroup.c | 94 +++---- block/bfq-iosched.c | 580 ++++++++++++++++++++++++++++++-------------- block/bfq-iosched.h | 142 ++++++++--- block/bfq-wf2q.c | 2 +- 4 files changed, 565 insertions(+), 253 deletions(-) --- 2.20.1