Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1881608rwb; Fri, 12 Aug 2022 08:15:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR6T9z7CrTmt5+F0m8+LVUZyP4F9e8844Pn4jK1iUb69/h9wCxJUsrt5XwfAM4I4ei4vH32w X-Received: by 2002:a17:907:a047:b0:730:e4e7:5127 with SMTP id gz7-20020a170907a04700b00730e4e75127mr3054573ejc.707.1660317359740; Fri, 12 Aug 2022 08:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660317359; cv=none; d=google.com; s=arc-20160816; b=BfCa1Y5kN9yZRxWDbd1Vkwk3t0fJQPfY8/gL3Ss2JoSnjYnmGPvmsM2p9OsCpp4qGt whrfnN28x8ycJ1JXDnL+c22KDyGxofnZgYmWl4dZhwDAYBNyweEQF/aLqV/dwuAms6EZ 1aLr4Sm0mgNwMXCxVFNjjV3IiuafF0yTdQuNNY4U/2sIppHXlYWRhkTizOHRRXbbsGDX d1Flbk6k99Ddi+KGME7tSq9ZWhZJLBPU8NJcf5nNgzg+KW94EWmDYgi3A75kti02NffN hCVKmUouX+mVfw+Iapj2wg2DHQNLku2/krkzX3LuT0cVn2KkneF2YTjLkiwtZHs3vB/i gktw== 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:references :cc:to:from:subject:user-agent:mime-version:date:message-id; bh=P3Quls04TiPKkT7fZn5kiqYaxRuJWzW9vopZmJ7BCQ8=; b=YzXcAI0WMXbzLkTJalIMiHrmrsUbP0VcXZmUMrpIfEHIy71cygNxYmsSrjOFzuSB7b ZhA0/U5ihzld1Haf8aNNHFg63Hr1e4ToE6NueUK+pqMvsZJvLVP8pp4meCwxAGJePO2p Q18BmEsgfwySQJmmkMFqiAlQhqqD9DHQN500WVgIDAwhlAChfmd9j6/mJrjmdglthCq3 OJAAVILrNRwY/hvh7sMwtx/AYPSKm4JJnJrO9yEVo0Nqe9nGc/4eub+YWa3TVhRGYkSh gFErFdRpyrBbic/xY+ztpEJ5Z+X/sOi10mynVFDBOo12Ymf0i7FWQ7Jr9ACK1vpyU0VC p3YA== 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 q16-20020a056402519000b0044089d29057si2647759edd.455.2022.08.12.08.15.33; Fri, 12 Aug 2022 08:15:59 -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 S238139AbiHLO6W (ORCPT + 99 others); Fri, 12 Aug 2022 10:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232085AbiHLO6U (ORCPT ); Fri, 12 Aug 2022 10:58:20 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB331A7229; Fri, 12 Aug 2022 07:58:18 -0700 (PDT) Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4M46HP5vnJz685Yk; Fri, 12 Aug 2022 22:58:09 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 12 Aug 2022 16:58:16 +0200 Received: from [10.48.157.254] (10.48.157.254) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 12 Aug 2022 15:58:15 +0100 Message-ID: Date: Fri, 12 Aug 2022 15:58:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [ata] 0568e61225: stress-ng.copy-file.ops_per_sec -15.0% regression From: John Garry To: Oliver Sang , Damien Le Moal CC: Christoph Hellwig , "Martin K. Petersen" , LKML , "Linux Memory Management List" , , , , , , , References: <1f498d4a-f93f-ceb4-b713-753196e5e08d@opensource.wdc.com> <3451fa5a-6229-073f-ae18-0c232cd48ed5@huawei.com> <2e9cf5a6-c043-5ccf-e363-097c6c941891@huawei.com> In-Reply-To: <2e9cf5a6-c043-5ccf-e363-097c6c941891@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.48.157.254] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500003.china.huawei.com (7.191.162.67) 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_H2,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 12/08/2022 12:13, John Garry wrote: >> On Tue, Aug 09, 2022 at 07:55:53AM -0700, Damien Le Moal wrote: >>> On 2022/08/09 2:58, John Garry wrote: >>>> On 08/08/2022 15:52, Damien Le Moal wrote: >>>>> On 2022/08/05 1:05, kernel test robot wrote: >>>>>> >>>>>> >>>>>> Greeting, >>>>>> >>>>>> FYI, we noticed a -15.0% regression of >>>>>> stress-ng.copy-file.ops_per_sec due to commit: >>>>>> >>>>>> >>>>>> commit: 0568e6122574dcc1aded2979cd0245038efe22b6 ("ata: >>>>>> libata-scsi: cap ata_device->max_sectors according to >>>>>> shost->max_sectors") >>>>>> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git >>>>>> master >>>>>> >>>>>> in testcase: stress-ng >>>>>> on test machine: 96 threads 2 sockets Ice Lake with 256G memory >>>>>> with following parameters: >>>>>> >>>>>>     nr_threads: 10% >>>>>>     disk: 1HDD >>>>>>     testtime: 60s >>>>>>     fs: f2fs >>>>>>     class: filesystem >>>>>>     test: copy-file >>>>>>     cpufreq_governor: performance >>>>>>     ucode: 0xb000280 >>>>> >>>>> Without knowing what the device adapter is, hard to say where the >>>>> problem is. I >>>>> suspect that with the patch applied, we may be ending up with a >>>>> small default >>>>> max_sectors value, causing overhead due to more commands than >>>>> necessary. >>>>> >>>>> Will check what I see with my test rig. >>>> >>>> As far as I can see, this patch should not make a difference unless the >>>> ATA shost driver is setting the max_sectors value unnecessarily low. >>> >>> That is my hunch too, hence my question about which host driver is >>> being used >>> for this test... That is not apparent from the problem report. >> >> we noticed the commit is already in mainline now, and in our tests, >> there is >> still similar regression and also on other platforms. >> could you guide us how to check "which host driver is being used for this >> test"? hope to supply some useful information. >> > > For me, a complete kernel log may help. and since only 1HDD, the output of the following would be helpful: /sys/block/sda/queue/max_sectors_kb /sys/block/sda/queue/max_hw_sectors_kb And for 5.19, if possible. Thanks! > >>> >>>>