From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ED85C00140 for ; Fri, 12 Aug 2022 17:17:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4D9A8E0003; Fri, 12 Aug 2022 13:17:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9FCFF8E0001; Fri, 12 Aug 2022 13:17:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 89D498E0003; Fri, 12 Aug 2022 13:17:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 787A48E0001 for ; Fri, 12 Aug 2022 13:17:46 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 4BF17161C3D for ; Fri, 12 Aug 2022 17:17:46 +0000 (UTC) X-FDA: 79791597732.22.7537D62 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by imf11.hostedemail.com (Postfix) with ESMTP id 86BD1401AF for ; Fri, 12 Aug 2022 17:17:44 +0000 (UTC) Received: from fraeml707-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4M49H26jFGz67Mkv; Sat, 13 Aug 2022 01:13:02 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml707-chm.china.huawei.com (10.206.15.35) 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 19:17:41 +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 18:17:40 +0100 Message-ID: Date: Fri, 12 Aug 2022 18:17:39 +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 To: Damien Le Moal , Oliver Sang 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> <4642848c-a386-d6a0-6255-8b16800e0548@opensource.wdc.com> From: John Garry In-Reply-To: <4642848c-a386-d6a0-6255-8b16800e0548@opensource.wdc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.157.254] X-ClientProxiedBy: lhrpeml100002.china.huawei.com (7.191.160.241) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of john.garry@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=john.garry@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660324665; a=rsa-sha256; cv=none; b=doC9b4EgvBXW1Yr88H10btNLk7Xla68KNqTYJJ1BGqr4IqHl3QsnYa6MFl+rnCL3BI6Kzs 8/URZFNZrC9JPCbg6O1LgKeWwvcoNkTkl7mRiG1CSpwclx7Uh6K+IRWArmM4inBcWJW7F8 xUDM/pA0ARpc0M6b6CYBOxGO36DJ1YA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660324665; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EdwpxnBsK6Z83ffVyYh6JTp1m2xufeyE5MmqbBrQGb0=; b=zgZhR1S5sIvoyIMYlHzkg2JTs2JM3IPDimZRWmnvM7NtEhyOj8YKBxABoiBlqVpBLag8Fx XMosP535/HyIViAZkjuu/+y7/WYVpvJRP4R0A17nGkK/zlv2o+dvzKr9luCFEWyFzC+OfM oFoK42mn9s46G+eNk3Fh03znL5HIvQc= Authentication-Results: imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of john.garry@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=john.garry@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 86BD1401AF X-Stat-Signature: k4xnryc63ap6q6ib4jijss8uhbsa841y X-Rspam-User: X-HE-Tag: 1660324664-80644 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 12/08/2022 16:41, Damien Le Moal wrote: >>> 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. > I had a look yesterday with my test rig. I did not see any difference in the > default max_sectors_kb values for various drives between 5.18 and 5.19 (current > linus tree). The test machine has 2 AHCI adapters: Intel and Marvell. Both use > the regular AHCI driver. I have another rig with different ATA adapters but it > is powered down and I am traveling... So cannot test that right now. > FWIW, on QEMU I get a difference for IDE disk for ata_piix host. Interestingly ata dev max_sectors kb also gets capped from 32MB (LBA48) -> 256KB due to swiotlb max mapping size. (It would be capped by shost default max sectors 512KB without that swiotlb limit). I assume capping due to swiotlb limit is not occuring on Oliver's machine. thanks, John [ 1.497233] ata7: found unknown device (class 0) [ 1.498341] ata7.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100 [ 1.499030] ata7.00: 209716 sectors, multi 16: LBA48 [ 1.623795] ata2: SATA link down (SStatus 0 SControl 300) [ 1.624633] ata1: SATA link down (SStatus 0 SControl 300) [ 1.633395] ata6: SATA link down (SStatus 0 SControl 300) [ 1.634200] ata5: SATA link down (SStatus 0 SControl 300) [ 1.635094] ata4: SATA link down (SStatus 0 SControl 300) [ 1.635887] ata3: SATA link down (SStatus 0 SControl 300) [ 1.636748] scsi 6:0:0:0: Direct-Access ATA QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 1.641298] sd 6:0:0:0: [sda] 209716 512-byte logical blocks: (107 MB/102 MiB) [ 1.642188] sd 6:0:0:0: [sda] Write Protect is off [ 1.642770] sd 6:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 1.642783] sd 6:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.644149] sd 6:0:0:0: [sda] Preferred minimum I/O size 512 bytes [ 1.645142] sd 6:0:0:0: Attached scsi generic sg0 type 0 [ 1.655145] sd 6:0:0:0: [sda] Attached SCSI disk