Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1375655imi; Sat, 23 Jul 2022 04:05:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDEjEzbicIgOoJrtQkQyR5xw2NfZIebE6CTm8G9NSpdHXtxJnQ4E4Y9larkfZDcHtAR31c X-Received: by 2002:a17:90a:9a91:b0:1f2:34eb:6f8c with SMTP id e17-20020a17090a9a9100b001f234eb6f8cmr13277796pjp.91.1658574357809; Sat, 23 Jul 2022 04:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658574357; cv=none; d=google.com; s=arc-20160816; b=fyUq8Z3H08vGJfuYhy9QUbYKaimlYOOnPFLE1P6YzCNHbO58WS9jJp4bicxYYpWQ7l 80ZYh/OCTeAgmjcEwMb2YkjQ+kqoF8pya0Y2uqkeqfuSI3reOaf8yPSwcielvbzduRoB ymFUuYHKpgg2U+2OD40ltZd4E//MLoc9OPXS/T+wXRASB7++pWeRcpBHE43kwpEdg2fL 1T6WnQD9iZV8KCdHv8t1M09xLcx/VVSkmOockXNQOpD5M4EPZTVh24tFTF/Rs50TIkKX 0D2wqE4hkBsixCMgoc7fhrxY7nfmu1U+eFJbuLAaAFcgm3Z2weYeuPgNkT4N4RhJSorX 3hKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=h8/JUiqwpTP9LliO1fsZc3GLmnX1lhZN2PNrDm7m7fQ=; b=kGQ65dEhq25mrxuarBnxAtyKYHK4MNjwyckQzvMCSI3SEiAv9Y/XaLVKRIbqyrrFM3 uG4Z3vCb+8EAinXyVRrl59t10yqiaxNKR+78egwc52h92G64dhudKwz74EmB5mT2Ti8H +iFiOPMZ7IhzFwHnssbKMCrKvx6j3Vsi4oFBMIgzLcSDZJ8FarlhUZBKXUZ9l3AS/yYI U27sKumq+I6BxbmLzxoLBSV15QDPRCTdZVCTWsKHAda8NVNksupCGkzqu3320tMEJWeW wCJwe1VHIJBkuRIsL0RqyCEXMdckG5NnIHe+33p+3xvDJ9Rvez01twWqMIFk8Ozk0b4g 043w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay8-20020a1709028b8800b0016c192735f1si7481312plb.220.2022.07.23.04.05.41; Sat, 23 Jul 2022 04:05:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239362AbiGWK7h (ORCPT + 99 others); Sat, 23 Jul 2022 06:59:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbiGWK7e (ORCPT ); Sat, 23 Jul 2022 06:59:34 -0400 Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FCF11CFC0 for ; Sat, 23 Jul 2022 03:59:31 -0700 (PDT) X-QQ-mid: bizesmtp79t1658573961tz10fe20 Received: from eureka.localdomain ( [123.124.208.226]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 23 Jul 2022 18:59:09 +0800 (CST) X-QQ-SSF: 01400000002000B0D000B00A0000020 X-QQ-FEAT: 4rCmCcmdMHfwis57XlYAPZfJdHJIxkKNcwfR4eFB0vZN/Pzx6uJfciJh7n054 lVJvDLJ+negW15WQMWccV6GExZ/LlNYWlxKKf3+qMYqLuvwQ/D3boqidj+aiShvFxaZgme2 4kn+D+afWkNCf4eoZPf0ziVTYWv7hWET0Yvt2Ypv5hgwvsO36g3TVzxjNcG/JBs/J/DZPma NVGfCJ5EGrrdM+4QVPMm9RqPhirigUk8UMqTNj1fG2hzu7QrbDcxKjzLjsI9gfNVLAr4zHl N4hNDAprzRHmzRT5Zu4eserDeuXbo4jvk+McsmlEcBwHsCr9sP+38bmR2U5PdLUZmqSdWcI rErMgv8rUAwPaH4Tc3oYAlBjZDZ6QWxHb3v77Zk+qVEbcKMT9dWpS1b4KBR3Ff0DE3t7Vic X-QQ-GoodBg: 2 From: Wang You To: bvanassche@acm.org Cc: axboe@kernel.dk, fio@vger.kernel.org, hch@lst.de, jaegeuk@kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ming.lei@redhat.com, wangxiaohua@uniontech.com, wangyoua@uniontech.com Subject: Re: [PATCH v2 2/2] block/mq-deadline: Prioritize first request Date: Sat, 23 Jul 2022 18:59:09 +0800 Message-Id: <20220723105909.440050-1-wangyoua@uniontech.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign3 X-QQ-Bgrelay: 1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,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 > What is MG04ACA400N? It is a Toshiba 7200 RPM hard drive. > The above results are low enough such that these could come from a hard > disk. However, the test results are hard to interpret since the I/O > pattern is neither perfectly sequential nor perfectly random (32 > sequential jobs). Please provide separate measurements for sequential > and random I/O. > The above results show that this patch makes reading from a hard disk > slower. Isn't the primary use case of mq-deadline to make reading from > hard disks faster? So why should these two patches be applied if these > slow down reading from a hard disk? The data of MG04ACA400N on the raid controller is obviously different from the single disk, especially the reading data, I did not expect this situation, the data on the raid controller made me mistakenly think that the same applies to HDD. I will re-analyze the impact of this patch on the HDD later, please ignore it for now. Also, can I ask? If using fio or other tools, how should testing be done to get more accurate and convincing data? Such as the perfectly sequential and random I/O performance you mentioned above (fio's multi-threaded test does result in neither perfectly sequential nor perfectly random, but single thread dispatch is too slow, and cannot play the merge and sorting ability of elv). Thanks, Wang.