Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7121121rdb; Wed, 3 Jan 2024 05:28:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG/DWadJ/TnLIYNT+cVKq5q5nkZreKVIyV2d/k/oQirbkMG9FjH8fn4F8uJYTyv/3PEKJE X-Received: by 2002:a05:6358:5f01:b0:175:1f1b:3fe with SMTP id y1-20020a0563585f0100b001751f1b03femr2261214rwn.61.1704288527456; Wed, 03 Jan 2024 05:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704288527; cv=none; d=google.com; s=arc-20160816; b=0rRcLskSuEIMHUZ8n9ihol+zybA0xLA9djGt9d4QR6qF+KJ8lMTplKXUjlA9GB9gAb kgISgqjnaDPJAk157udCBVRXMxNBEemzdwhY1fq7BhwYeBG2DvY7UEmW00owifLISCKr X+S2FL4+6CuTEe3ItjME/SOjmVKLAL905R1LOCDENfz2+S7QCMW0ctfLzQjLCL3RSAVV /qKxn7E2hHYGJqNIlTItkLpLgVGOYCq9ARYvr2lYUhWtJ42rCgt21gB7wHm2IrR4l+sS cZX20Lri8ACkim342xXYDv7WHq6UQmUZIJ1GtbIHvmbkTnrDB94dB1DjY8iqvdmpOUaa d4KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=iB1ue+mxnnUm8na6nnzaXlm4lvafbrP3tuKU1PDKMRI=; fh=pBFMyOY+HpXlujpH+A3+aPVJFcVtQk45wZMU0P5VPqc=; b=ahXBv8X15MaSU9fbtnaa9LheU4UbmnNJXQ+GEkoEIxUBhvUqFK2h6Yr/+Y3jYPbYmY rmcdT5vs6F+viul2iLtHqmci8VGgIDKJgnIWToo2zdIhCiRyr1yU8iGE5whxOVmM+57U 9hLgnD96URNY/ICvIVcuIC3MxjpbZsC9evIpI0VYfembmbU8AEMbsnpn1WAkm/hujQlI n937QFV3zMpRQT/NPWy0epbLAYfsS7I1wVnqzRsxY6lLlnN+eBN5y8xBLxHAMGfrAbDf tURJmrcq0IxEA+ghCAUaugzpM1fQP7lPU/W9s+stlDdhosPQBf4OzlzGYBPlFG2HPm9G iuKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jc38-20020a056a006ca600b006d9b04b4825si17108935pfb.15.2024.01.03.05.28.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:28:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 119E1285598 for ; Wed, 3 Jan 2024 13:28:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50796199B6; Wed, 3 Jan 2024 13:28:41 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5C35199B2; Wed, 3 Jan 2024 13:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4T4rBt4xr0zZgRh; Wed, 3 Jan 2024 21:28:22 +0800 (CST) Received: from canpemm500005.china.huawei.com (unknown [7.192.104.229]) by mail.maildlp.com (Postfix) with ESMTPS id 406BA1404F8; Wed, 3 Jan 2024 21:28:36 +0800 (CST) Received: from [10.174.176.34] (10.174.176.34) by canpemm500005.china.huawei.com (7.192.104.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 3 Jan 2024 21:28:35 +0800 Subject: Re: [linus:master] [jbd2] 6a3afb6ac6: fileio.latency_95th_ms 92.5% regression To: Jan Kara CC: kernel test robot , , , , Theodore Ts'o , , , , , References: <202401021525.a27b9444-oliver.sang@intel.com> <20240103094907.iupboelwjxi243h3@quack3> From: Zhang Yi Message-ID: <5fb892c2-a532-84bf-fbe2-148b32079fa4@huawei.com> Date: Wed, 3 Jan 2024 21:28:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240103094907.iupboelwjxi243h3@quack3> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500005.china.huawei.com (7.192.104.229) On 2024/1/3 17:49, Jan Kara wrote: > Hello! > > On Wed 03-01-24 11:31:39, Zhang Yi wrote: >> On 2024/1/2 15:31, kernel test robot wrote: >>> >>> >>> Hello, >>> >>> kernel test robot noticed a 92.5% regression of fileio.latency_95th_ms on: >> >> This seems a little weird, the tests doesn't use blk-cgroup, and the patch >> increase IO priority in WBT, so there shouldn't be any negative influence in >> theory. > > I don't have a great explanation either but there could be some impact e.g. > due to a different request merging of IO done by JBD2 vs the flush worker or > something like that. Note that the throughput reduction is only 5.7% so it > is not huge. Yeah, make sense, this should be one explanation that can be thought of at the moment. > >> I've tested sysbench on my machine with Intel Xeon Gold 6240 CPU, >> 400GB memory with HDD disk, and couldn't reproduce this regression. >> >> == >> Without 6a3afb6ac6 ("jbd2: increase the journal IO's priority") >> == >> >> $ sysbench fileio --events=0 --threads=128 --time=600 --file-test-mode=seqwr --file-total-size=68719476736 --file-io-mode=sync --file-num=1024 run >> >> sysbench 1.1.0-df89d34 (using bundled LuaJIT 2.1.0-beta3) >> >> Running the test with following options: >> Number of threads: 128 >> Initializing random number generator from current time >> >> >> Extra file open flags: (none) >> 1024 files, 64MiB each >> 64GiB total file size >> Block size 16KiB >> Periodic FSYNC enabled, calling fsync() each 100 requests. >> Calling fsync() at the end of test, Enabled. >> Using synchronous I/O mode >> Doing sequential write (creation) test >> Initializing worker threads... >> >> Threads started! >> >> >> Throughput: >> read: IOPS=0.00 0.00 MiB/s (0.00 MB/s) >> write: IOPS=31961.19 499.39 MiB/s (523.65 MB/s) >> fsync: IOPS=327500.24 > > Well, your setup seems to be very different from what LKP was using. You > are achieving ~500 MB/s (likely because all the files fit into the cache > and more or less even within the dirty limit of the page cache) while LKP > run achieves only ~54 MB/s (i.e., we are pretty much bound by the rather > slow disk). I'd try running with something like 32GB of RAM to really see > the disk speed impact... > I'm afraid I missed the vmstat.io.bo changes, I will limit the dirty ratio and test it again tomorrow. Thanks, Yi.