From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCF65C4338F for ; Fri, 6 Aug 2021 01:57:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C32760C51 for ; Fri, 6 Aug 2021 01:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231239AbhHFB5z (ORCPT ); Thu, 5 Aug 2021 21:57:55 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:12458 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230012AbhHFB5z (ORCPT ); Thu, 5 Aug 2021 21:57:55 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GgpRv3x3TzcgKC; Fri, 6 Aug 2021 09:54:03 +0800 (CST) Received: from dggema762-chm.china.huawei.com (10.1.198.204) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 6 Aug 2021 09:57:38 +0800 Received: from huawei.com (10.175.127.227) by dggema762-chm.china.huawei.com (10.1.198.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 6 Aug 2021 09:57:38 +0800 From: Yu Kuai To: , CC: , , , Subject: [PATCH v2 0/4] optimize the bfq queue idle judgment Date: Fri, 6 Aug 2021 10:08:22 +0800 Message-ID: <20210806020826.1407257-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggema762-chm.china.huawei.com (10.1.198.204) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Chagnes in V2: - as suggested by Paolo, add support to track if root_group have any pending requests, and use that to handle the situation when only one group is activated while root group doesn't have any pending requests. - modify commit message in patch 2 Yu Kuai (4): block, bfq: add support to track if root_group have any pending requests block, bfq: do not idle if only one cgroup is activated block, bfq: add support to record request size information block, bfq: consider request size in bfq_asymmetric_scenario() block/bfq-iosched.c | 69 ++++++++++++++++++++++++++++++++++++++------- block/bfq-iosched.h | 29 +++++++++++++++++-- block/bfq-wf2q.c | 37 +++++++++++++++--------- 3 files changed, 110 insertions(+), 25 deletions(-) -- 2.31.1