Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4004224imw; Mon, 18 Jul 2022 19:41:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skM8iP9sBQ1cvmXk0ONBUmu2kG4KIUrK6mlZ+k1i7t1Nr7lEwmA8mbjxiCyJvJokKqaTcP X-Received: by 2002:a17:906:ef8c:b0:72e:dd32:4163 with SMTP id ze12-20020a170906ef8c00b0072edd324163mr22827950ejb.430.1658198471537; Mon, 18 Jul 2022 19:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658198471; cv=none; d=google.com; s=arc-20160816; b=W32IDUlrMeb/t/00/McTs7WbsaorDLv2w5Adcr9kaOeFkt2sZpApOerZeuwFOfQJkC HlDbfiB8SjPOv6TbjvWiSI14t+Tk2WlbnpDigelj3hqmzYCU0bmpsBqwmew9uY+D7ur3 qpb6RaVADEA+BR20F9kxujnr+9/aG731Y0EUmd9cDVHmKN9Wwcrcm1TH2mUTc51f95WC D9ZNCHrVaKlbIaLzK8QKNQAw3tsL8P2fBGUj13K021LYfPk+tom5qD1LX8ynVWWom81r RLLqIPWx6sgxK/ud2jLF7H0o0g4ME2wntcJz9Y5IjI0KXO/Qp979l0RbAxA/Iqmlfe2k DVKw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=cyKjSUAbf6aP85qdLzMpG+9cGQ3XPhloIG7GN5HqbOk=; b=LyVv66T0XjWKy1PJ6V1MYqUUll4gNZm3oogXK068/mueTFPerYUGldZQrBr8djIPub f5x9yCrYqHx2jh1VHrSY/jhw/v0UoZLTehq5EY0S7ZTMXMxuKpSef6HKtxSYkJjfHOgL DqR+JupcDZOSXVHkWoVqS31jv78AyFgBv1+0LeETSqOfQBouAfwFFXI2KMiXE/ZlWP3/ jlh8qsg5KBw4cowJTecIHqRC9n/L1Kj+h5cY3wWYCuRgCJ2JXFmQWJF1ht5fvivHVoyZ ejE4h7kjTOPDdZ8/5YuQwUBRuXnvRaCcFqwu5Ni3rXfaanlXa9l9KsagcvN0Q9dudrGT KtTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=PtvjjDev; 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 e9-20020a056402190900b0043a78b54d7dsi20472984edz.302.2022.07.18.19.40.47; Mon, 18 Jul 2022 19:41:11 -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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=PtvjjDev; 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 S236929AbiGSC31 (ORCPT + 99 others); Mon, 18 Jul 2022 22:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231645AbiGSC30 (ORCPT ); Mon, 18 Jul 2022 22:29:26 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CBC83AE74 for ; Mon, 18 Jul 2022 19:29:25 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id f11so10704394plr.4 for ; Mon, 18 Jul 2022 19:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=cyKjSUAbf6aP85qdLzMpG+9cGQ3XPhloIG7GN5HqbOk=; b=PtvjjDevADa6eY5pKioXcYnfJJSND/ijd1BdeH1tmUdp/23IMf/kiY4KS+ZhOStwud iybB4kMCiwSVMkA8YuXqfa3amnH2O4pcZIBoeVD0/FAcvtreTNAh78plnjqzNJG7B3PP EZDUOglKwDCYfYPnJoEAKUbd8QDFV2q4diM5h0oiE76qUXj5kNOqfk/G/43HcCbG9rL/ yhUwI+6blwiAeFb0iWtG155fY92T2rsU/HptjH4uUTnwecaoaokLy7Kjmm0mJGQs5PKM kdZScs/OmYfVex1lyjeV9QptalsbxXetYuO0fdqJRhNuLusSRtYPefx1+mEcC8tmNLbz eJbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=cyKjSUAbf6aP85qdLzMpG+9cGQ3XPhloIG7GN5HqbOk=; b=RM7iDS3VTG9CPyZiuNUV6uUkJUUtG+Sht1HeBOcuIsypBTlL5OIvLg/7WBnd4UQ/M8 WT6CVE4zI+BlY8FR1KDpty/1sDLzzc81aHmZQOo3JoqCjxsgtmxLYRpY058uK9A7Ryui qMx4C7Lc2D3aHzD3+mcm6hHW5LDUd1BKk/BSKc9XdTkJ7Se3L+y2jxWCGUbXCEdSJh53 0nyBO60aNQtXLDnjztFAQcWn7wiP4lkKYgC7sEaaF6maoysgKK7cGSKtrzT9w1rs9+ul /3/5xf5JpfQJC/w/bqrqa0qA/AE0108DL/fxArpw+25I86kV5rntzNc3XLG84uu1Ve/8 6Dig== X-Gm-Message-State: AJIora/TvOb86dakcOTQjatj1Z0TEB2EwrsmfczNb3xpqAqQtMFNc58d AY+oxisG6AFuS1p1LseLYuP3Vw== X-Received: by 2002:a17:90b:1bc7:b0:1f0:34e2:5c86 with SMTP id oa7-20020a17090b1bc700b001f034e25c86mr34944374pjb.136.1658197764422; Mon, 18 Jul 2022 19:29:24 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id m22-20020a170902bb9600b0016c5b2a16ffsm10189043pls.142.2022.07.18.19.29.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 19:29:23 -0700 (PDT) Message-ID: <74d1f308-de03-fd5e-b7f0-0e17980f988e@kernel.dk> Date: Mon, 18 Jul 2022 20:29:22 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [LKP] Re: [io_uring] 584b0180f0: phoronix-test-suite.fio.SequentialWrite.IO_uring.Yes.Yes.1MB.DefaultTestDirectory.mb_s -10.2% regression Content-Language: en-US To: Yin Fengwei , kernel test robot Cc: LKML , io-uring@vger.kernel.org, lkp@lists.01.org, lkp@intel.com References: <20220527092432.GE11731@xsang-OptiPlex-9020> <2085bfef-a91c-8adb-402b-242e8c5d5c55@kernel.dk> <0d60aa42-a519-12ad-3c69-72ed12398865@intel.com> <26d913ea-7aa0-467d-4caf-a93f8ca5b3ff@kernel.dk> <9df150bb-f4fd-7857-aea8-b2c7a06a8791@intel.com> <7146c853-0ff8-3c92-c872-ce6615baab40@kernel.dk> <81af5cdf-1a13-db2c-7b7b-cfd86f1271e6@intel.com> From: Jens Axboe In-Reply-To: <81af5cdf-1a13-db2c-7b7b-cfd86f1271e6@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 7/18/22 8:16 PM, Yin Fengwei wrote: > Hi Jens, > > On 7/19/2022 12:27 AM, Jens Axboe wrote: >> On 7/17/22 9:30 PM, Yin Fengwei wrote: >>> Hi Jens, >>> >>> On 7/15/2022 11:58 PM, Jens Axboe wrote: >>>> In terms of making this more obvious, does the below also fix it for >>>> you? >>> >>> The regression is still there after applied the change you posted. >> >> Still don't see the regression here, using ext4. I get about 1020-1045 >> IOPS with or without the patch you sent. >> >> This is running it in a vm, and the storage device is nvme. What is >> hosting your ext4 fs? > Just did more test with vm. The regression can't be reproduced with latest > code (I tried the tag v5.19-rc7) whatever the underneath storage is SATA > or NVME. > > But the regression and the debugging patch from me could be reproduced > on both SATA and NVME if use commit 584b0180f0f4d6 as base commit > (584b0180f0f4d6 vs 584b0180f0f4d6 with my debugging patch). > > > Here is the test result I got: > NVME as host storage: > 5.19.0-rc7: > write: IOPS=933, BW=937MiB/s (982MB/s)(18.3GiB/20020msec); 0 zone resets > write: IOPS=993, BW=996MiB/s (1045MB/s)(19.5GiB/20020msec); 0 zone resets > write: IOPS=1005, BW=1009MiB/s (1058MB/s)(19.7GiB/20020msec); 0 zone resets > write: IOPS=985, BW=989MiB/s (1037MB/s)(19.3GiB/20020msec); 0 zone resets > write: IOPS=1020, BW=1024MiB/s (1073MB/s)(20.0GiB/20020msec); 0 zone resets > > 5.19.0-rc7 with my debugging patch: > write: IOPS=988, BW=992MiB/s (1040MB/s)(19.7GiB/20384msec); 0 zone resets > write: IOPS=995, BW=998MiB/s (1047MB/s)(20.1GiB/20574msec); 0 zone resets > write: IOPS=996, BW=1000MiB/s (1048MB/s)(19.5GiB/20020msec); 0 zone resets > write: IOPS=995, BW=998MiB/s (1047MB/s)(19.5GiB/20020msec); 0 zone resets > write: IOPS=1006, BW=1009MiB/s (1058MB/s)(19.7GiB/20019msec); 0 zone resets These two basically look identical, which may be why I get the same with and without your patch. I don't think it makes a difference for this. Curious how it came about? > 584b0180f0: > write: IOPS=1004, BW=1008MiB/s (1057MB/s)(19.7GiB/20020msec); 0 zone resets > write: IOPS=968, BW=971MiB/s (1018MB/s)(19.4GiB/20468msec); 0 zone resets > write: IOPS=982, BW=986MiB/s (1033MB/s)(19.3GiB/20020msec); 0 zone resets > write: IOPS=1000, BW=1004MiB/s (1053MB/s)(20.1GiB/20461msec); 0 zone resets > write: IOPS=903, BW=906MiB/s (950MB/s)(18.1GiB/20419msec); 0 zone resets > > 584b0180f0 with my debugging the patch: > write: IOPS=1073, BW=1076MiB/s (1129MB/s)(21.1GiB/20036msec); 0 zone resets > write: IOPS=1131, BW=1135MiB/s (1190MB/s)(22.2GiB/20022msec); 0 zone resets > write: IOPS=1122, BW=1126MiB/s (1180MB/s)(22.1GiB/20071msec); 0 zone resets > write: IOPS=1071, BW=1075MiB/s (1127MB/s)(21.1GiB/20071msec); 0 zone resets > write: IOPS=1049, BW=1053MiB/s (1104MB/s)(21.1GiB/20482msec); 0 zone resets Last one looks like it may be faster indeed. I do wonder if this is something else, though. There's no reason why -rc7 with that same patch applied should be any different than 584b0180f0 with it. these resu > > > SATA disk as host storage: > 5.19.0-rc7: > write: IOPS=624, BW=627MiB/s (658MB/s)(12.3GiB/20023msec); 0 zone resets > write: IOPS=655, BW=658MiB/s (690MB/s)(12.9GiB/20021msec); 0 zone resets > write: IOPS=596, BW=600MiB/s (629MB/s)(12.1GiB/20586msec); 0 zone resets > write: IOPS=647, BW=650MiB/s (682MB/s)(12.7GiB/20020msec); 0 zone resets > write: IOPS=591, BW=594MiB/s (623MB/s)(12.1GiB/20787msec); 0 zone resets > > 5.19.0-rc7 with my debugging patch: > write: IOPS=633, BW=637MiB/s (668MB/s)(12.6GiB/20201msec); 0 zone resets > write: IOPS=614, BW=617MiB/s (647MB/s)(13.1GiB/21667msec); 0 zone resets > write: IOPS=653, BW=657MiB/s (689MB/s)(12.8GiB/20020msec); 0 zone resets > write: IOPS=618, BW=622MiB/s (652MB/s)(12.2GiB/20033msec); 0 zone resets > write: IOPS=604, BW=608MiB/s (638MB/s)(12.1GiB/20314msec); 0 zone resets These again are probably the same, within variance. > 584b0180f0: > write: IOPS=635, BW=638MiB/s (669MB/s)(12.5GiB/20020msec); 0 zone resets > write: IOPS=649, BW=652MiB/s (684MB/s)(12.8GiB/20066msec); 0 zone resets > write: IOPS=639, BW=642MiB/s (674MB/s)(13.1GiB/20818msec); 0 zone resets > > 584b0180f0 with my debugging patch: > write: IOPS=850, BW=853MiB/s (895MB/s)(17.1GiB/20474msec); 0 zone resets > write: IOPS=738, BW=742MiB/s (778MB/s)(15.1GiB/20787msec); 0 zone resets > write: IOPS=751, BW=755MiB/s (792MB/s)(15.1GiB/20432msec); 0 zone resets But this one looks like a clear difference. I'll poke at this tomorrow. -- Jens Axboe