Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6FF4C64ED6 for ; Tue, 28 Feb 2023 05:01:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbjB1FBw (ORCPT ); Tue, 28 Feb 2023 00:01:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjB1FBt (ORCPT ); Tue, 28 Feb 2023 00:01:49 -0500 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D54D2940F for ; Mon, 27 Feb 2023 21:01:47 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VchTz00_1677560504; Received: from 30.97.48.254(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VchTz00_1677560504) by smtp.aliyun-inc.com; Tue, 28 Feb 2023 13:01:45 +0800 Message-ID: <1f926a20-6b45-137d-4e78-30025ba33574@linux.alibaba.com> Date: Tue, 28 Feb 2023 13:01:43 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v5] erofs: add per-cpu threads for decompression as an option To: Sandeep Dhavale Cc: linux-erofs@lists.ozlabs.org, LKML , Nathan Huckleberry , Yue Hu , kernel-team@android.com References: <20230208093322.75816-1-hsiangkao@linux.alibaba.com> <8e067230-ce1b-1c75-0c23-87b926357f96@linux.alibaba.com> From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sandeep, On 2023/2/28 12:47, Sandeep Dhavale via Linux-erofs wrote: > Hi all, > I completed the tests and the results are consistent with > our previous observation. We can see that removing WQ_UNBOUND > helps but the scheduling latency by using high priority per cpu > kthreads is even lower. Below is the table. > > |---------------------+-------+-------+------+-------| > | Table | avg | med | min | max | > |---------------------+-------+-------+------+-------| > | Default erofs | 19323 | 19758 | 3986 | 35051 | > |---------------------+-------+-------+------+-------| > | !WQ_UNBOUND | 11202 | 10798 | 3493 | 19822 | > |---------------------+-------+-------+------+-------| > | hipri pcpu kthreads | 7182 | 7017 | 2463 | 12300 | > |---------------------+-------+-------+------+-------| May I ask did it test with different setup since the test results in the original commit message are: +-------------------------+-----------+----------------+---------+ | | workqueue | kthread_worker | diff | +-------------------------+-----------+----------------+---------+ | Average (us) | 15253 | 2914 | -80.89% | | Median (us) | 14001 | 2912 | -79.20% | | Minimum (us) | 3117 | 1027 | -67.05% | | Maximum (us) | 30170 | 3805 | -87.39% | | Standard deviation (us) | 7166 | 359 | | +-------------------------+-----------+----------------+---------+ Otherwise it looks good to me for now, hopefully helpful to Android users. Thanks, Gao Xiang > > > Thanks, > Sandeep.