From patchwork Sun Oct 30 10:02:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Valente X-Patchwork-Id: 885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1726313wru; Sun, 30 Oct 2022 03:05:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM59oEFUxVgKMIkJghwibuUBqc/jypoyvmyRhoSPybJ9kdWrcN9TWE1te2LNNgpjkGg399wM X-Received: by 2002:a05:6a00:21cc:b0:56c:ba99:795d with SMTP id t12-20020a056a0021cc00b0056cba99795dmr8399890pfj.84.1667124325070; Sun, 30 Oct 2022 03:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667124325; cv=none; d=google.com; s=arc-20160816; b=hYaSAf0rBw8V0HdsBrrEtxkuf8t4DwVC/h/E+WRpGQ7DTzDWbelk1/EA9slVCF+Goe o7TqjKHED5KvCXeXd9GWxKdoTM3hjPxX5zoZMXimJ8jIdXz8nVA/qZozACVrNtz1tiHD D7GKSHlPyPz6Q2vBA5WiofPu+WO4G7nKqQYi4/N6kgkMCLP4TCIKQsj9fyC1stQ2nxzN jndMiCSsz91AuDHDx8ubdG47vcILHe1AenmaJxUNyolHryHk6X2ZJkhJOcY/1f/8/PF3 0g/fVqwfzk71JuM/1BqrG8nWjeonoE0BcMlwFNthYjs/Tmm6g53FmTd+WttOp7obxD5P TWFA== 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=6oLL2KhAmaTN+LmZKCQYKzyB0xny0EVS0BMlbWPigno=; b=1Fott/uaTNRIDWaxRpU/NY071yAkaufwiWYASokUTE7kMzP2U76O2ZW/QYxiHlX0MX M5Ve2AAMRQSo48oA8ROSy1xKpER5S0lSur2uJ6U8mELYfOL99CYY7X/UvWHVA/bn+75N tWSLDDhZW5eknPRLZpSQA9u9VxJU0vi46GAlN+6KxsN58aOvTVQus9WYaqA7ZInbI4uT TR2fHufpfyfoxcTJR2cX1A+abxeB0AGiZxag0NgUc4/M7Gd/94ND8fbi16dAQ0UjIbf2 pIRNXW93RT8I6Sz9oQYAUetn+/tHN9pMmRIUhiGTydJyc4SNG5iL81uPds4APtJUWHb+ IPXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z8aCgFvn; 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 z2-20020a170902708200b00186827cc5e9si4096881plk.562.2022.10.30.03.05.11; Sun, 30 Oct 2022 03:05:25 -0700 (PDT) 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=Z8aCgFvn; 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 S230036AbiJ3KDk (ORCPT + 99 others); Sun, 30 Oct 2022 06:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbiJ3KDi (ORCPT ); Sun, 30 Oct 2022 06:03:38 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8617A1A0 for ; Sun, 30 Oct 2022 03:03:35 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id u24so4463729edd.13 for ; Sun, 30 Oct 2022 03:03:35 -0700 (PDT) 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=6oLL2KhAmaTN+LmZKCQYKzyB0xny0EVS0BMlbWPigno=; b=Z8aCgFvndZHScKg0yg7p+vmvlZojjuQ3gTjx57OTRDzCrpIS1ECKqqDRmP/ktDzXO9 AdBnNRgN7iix63GTuS+IeuZdn6q6ja/cgaf8UmYRAKSPQQ9ULWUC8YK/8lgToqHuNNjR 9uHJRi3g9Ri8e/l38iHi7+49fzTU+M4q84DahlsMwOtl6yDxiS6Nnev71RWSxukyDTyP dDNXah/lN6+wfvBOu+viZpBRv3cPqy/ZaYoDf0xxi+ktTE4e4mjnjwxYPcIAVeEKReNC 1J1lxVNIZBBAvaezlKFxzGocKVsFZujrzNZ07vT7JhwtQHKXWittADL+VNJ0mRvxPGTs 5D8g== 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=6oLL2KhAmaTN+LmZKCQYKzyB0xny0EVS0BMlbWPigno=; b=ReUd3TnR/raKZcXfcGhHyO5mbLH0dPS6t79RLEr1C5fGbv4KJ6TQCARl+DlT7fAiKi 1Hj7wJ2oBtxXP/IXm9V2tNLR0nvOoLR5IJ+M6Fs4con5Vk7xISJHZumKULfTKB78lncs btcAI7XOTs8an7mxR3yKG/42I6qSA4PwQWdCowadbYLM6Wg27elafNmoyH2/QJ+UFXqC AfkDTNbSpGJVksTOSo3OeWMdeSkn6+F0LkmwmHaUgOt+1v6/yove3kXPOmu2TLeDX8x4 VqRqYhC6RsqLsDOmSL05GdNqttKtkZxA/sFn8byw8EGVea6WV+d5lJBGI5+AYHRC2Zir nPeQ== X-Gm-Message-State: ACrzQf0BIY3olR7CW0y01XRTsY6dwCBJMVHLERVMmRvo8AuOfS+g6VlO 7yj4G+VqAIuIBcg6YxQ5+yNoYQ== X-Received: by 2002:aa7:de0a:0:b0:462:d2a0:93a with SMTP id h10-20020aa7de0a000000b00462d2a0093amr7745022edv.275.1667124213832; Sun, 30 Oct 2022 03:03:33 -0700 (PDT) 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 d27-20020a170906305b00b0073d71792c8dsm1666088ejd.180.2022.10.30.03.03.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Oct 2022 03:03:33 -0700 (PDT) From: Paolo Valente To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Valente Subject: [PATCH V5 0/8] block, bfq: extend bfq to support multi-actuator drives Date: Sun, 30 Oct 2022 11:02:52 +0100 Message-Id: <20221030100300.3085-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748106556391190612?= X-GMAIL-MSGID: =?utf-8?q?1748106556391190612?= Hi, this V5 differs from V4 in that it addresses the issues reported in [2] and [3]. 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/202210212014.ynAHDVJU-lkp@intel.com/t/#mda5d00db9eb78ea698e7d0269b78ac57d134181e [3] https://lore.kernel.org/lkml/202210212014.ynAHDVJU-lkp@intel.com/t/#m31c1d2403d0ae584b8a99733b29233d350cd9628 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 | 97 ++++---- block/bfq-iosched.c | 533 ++++++++++++++++++++++++++++++-------------- block/bfq-iosched.h | 141 +++++++++--- block/bfq-wf2q.c | 2 +- 4 files changed, 539 insertions(+), 234 deletions(-) --- 2.20.1