Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1359449pxb; Wed, 30 Mar 2022 01:20:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlIg2iblAUHt8tbw1GNw2ZB7+oxhfKVqKU22M5zuc8WdD8u1jQLhuubEEqSRVS6HRa5D8i X-Received: by 2002:a17:903:2411:b0:151:8304:6936 with SMTP id e17-20020a170903241100b0015183046936mr33435934plo.134.1648628429003; Wed, 30 Mar 2022 01:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648628428; cv=none; d=google.com; s=arc-20160816; b=ImeEBpFAGAl4jIRiCLVyGuGsvi9AYWVNNV2GxgF0RV50tqTo+ty1ftxKlEtrT+Csts ZT7NlysZkUnyWB8Bh8cRIJ6qWn1CVXJdguJU4IAHsBjZPHwKVLNV2RrQVz9vveapuD2P 5KLevZCzmyA85I3RsZWj4gjcOJ4EZ16BGkbjWCzYLAzLEeJosCdZA6UKm6GgGymU9cq2 +7b9MbP8KrdszsC3aDfmvaTDoUbCd/Pf1UQ2tKy9MoTqHpRMqU1vhue+sP3AFrMh/83Y 81cfSq5sx1QeHkVVk1PT8BRAImuR0BaEuQkSZxoaF3TlsJVJvJYUAp+juOLM9rdsE78o ySeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=qtN2+ANytkUj35lpRb1upM66GDpTHxe1V+4P+DHf64M=; b=dcOTM0M+nwwJSjF0majcYIHHBd2NpfbLntbG49rEyTGjsg9n3E/o4/rf7kUJydkSvW bR9B9uJnVq8WhEpM39P+3g0Iwpszva3xOlZ8npqWHGzoLtfIYBjtRaQkurrS2ENl2hiC pKscU5wc1gQjCCqyq6hQyB/Qp0jU+WlTRMXume3RofW0NuR8s3OQx3/Q2Bz5UsvySfSF GEqfe78OVMaZfg25PEhLgOuhUOGT9seEHcBODWzqmKA/IGrN+hg56Ms86kzagTtByWpL 5Q650KIS6PZ1VL1k6A2CArhVQX1nsGexPvZhCm+dTpizhd2DpRIhRErLJhmwY0vM7St3 EI5A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a170902d5c600b00153b2d16474si18716459plh.124.2022.03.30.01.20.14; Wed, 30 Mar 2022 01:20:28 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241739AbiC3Bzw (ORCPT + 99 others); Tue, 29 Mar 2022 21:55:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbiC3Bzv (ORCPT ); Tue, 29 Mar 2022 21:55:51 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A314BD890; Tue, 29 Mar 2022 18:54:06 -0700 (PDT) Received: from kwepemi100021.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KSqF63yszzfYkQ; Wed, 30 Mar 2022 09:52:26 +0800 (CST) Received: from kwepemm600009.china.huawei.com (7.193.23.164) by kwepemi100021.china.huawei.com (7.221.188.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 30 Mar 2022 09:54:04 +0800 Received: from [10.174.176.73] (10.174.176.73) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 30 Mar 2022 09:54:04 +0800 Subject: Re: [PATCH -next RFC 2/6] block: refactor to split bio thoroughly To: Jens Axboe , Christoph Hellwig CC: , , , , , References: <20220329094048.2107094-1-yukuai3@huawei.com> <20220329094048.2107094-3-yukuai3@huawei.com> <338207c2-e3cd-abc1-6b8c-f08645ef144a@kernel.dk> From: "yukuai (C)" Message-ID: Date: Wed, 30 Mar 2022 09:54:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <338207c2-e3cd-abc1-6b8c-f08645ef144a@kernel.dk> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.176.73] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600009.china.huawei.com (7.193.23.164) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 2022/03/29 22:41, Jens Axboe wrote: > On 3/29/22 8:40 AM, Christoph Hellwig wrote: >> On Tue, Mar 29, 2022 at 08:35:29AM -0600, Jens Axboe wrote: >>>> But more importantly why does your use case even have splits that get >>>> submitted together? Is this a case of Linus' stupidly low default >>>> max_sectors when the hardware supports more, or is the hardware limited >>>> to a low number of sectors per request? Or do we hit another reason >>>> for the split? >>> >>> See the posted use case, it's running 512kb ios on a 128kb device. Hi, The problem was first found during kernel upgrade(v3.10 to v4.18), and we maintain a series of io performance test suites, and one of the test is fio random rw with large bs. In the environment, the 'max_sectors_kb' is 256kb, and fio bs is 1m. >> >> That is an awfully low limit these days. I'm really not sure we should >> optimize the block layer for that. > > That's exactly what my replies have been saying. I don't think this is > a relevant thing to optimize for. If the use case that large ios get submitted together is not a common issue(probably not since it's been a long time without complaining), I agree that we should not optimize the block layer for that. Thanks, Kuai > > Fixing fairness for wakeups seems useful, however. >