Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp447706rwb; Sat, 13 Aug 2022 01:17:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7rt8ISvJFWSELw4P7GqLRRs8dAjk31XQx89F8Owx6sPyBVQuUPr+sWCfubcpmCtnwDGJCq X-Received: by 2002:a05:6402:190d:b0:43d:f64f:9a0e with SMTP id e13-20020a056402190d00b0043df64f9a0emr6779233edz.346.1660378669274; Sat, 13 Aug 2022 01:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660378669; cv=none; d=google.com; s=arc-20160816; b=D3/X3U4syuuoSufs7aPoZsdfWBR3hyJaX/V73kDRRy31e4zyAq0SsC9oFhOcfgWBK/ IgkaBfIy0h0gC0lHBoer8xQLHPUrXyUpLb9ylq28t0vdElIBQRR+Oyhm26wYIzvPVThf lovFr/zeHoYGxOvN/vS8C472NOEDY6HgELqU83c5QeT1U8kDAAEcQs1E74Q4tRhLcK0O PhNkfHcKhAoMnCcYQYsKp1hR+y0hdEL1rppUFYuePTp/9NPg0lbCeBGgeFLyOa+R/ECQ DUYa/pn8pR9OBCs5q/R8X0Ue3qjJkmdm5Dzw/Bh/qaF4wG5xmiD8CMFKcRTf++juX/Ui dLOA== 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:subject:user-agent:mime-version:date:message-id; bh=I1SOaHopBBvTwKejGH+F3UcxMCFsb1T0Qf1hkPyv2Ug=; b=Zw2Qy8pkhpW8sNbgZjPN3Dj3gpNJEXC+ePAjU5VgBqZ5gB2Xe7fGjyxW5nJHUOv93B dU+V5Uk8uWkWjLXa6/AV1Q4LH8f17z6z7DDW2M7loG4GaBdubq71vFQUJG2Xdma3k/pd oRCWxZltLN5fuV/UjEts+7pQUHzHMLczoiWlqIBW/e6vcAkpQ+MrXD6Vu8lRhxz5lOAI LOodvxLIs8sPjqHDR4Angywj/YSb3p//846c9ViHcMVk+dZpgaByXKv7d5EfwzyakaKO 9n1MDTD2XH45YmGLT2JaGDl3JqafjYp7Lxjs4bE4rDtWpmY/mJm8Ekh/EWV0gj6wifVl /P4w== 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 sb35-20020a1709076da300b0072f190400f7si3760714ejc.1.2022.08.13.01.17.23; Sat, 13 Aug 2022 01:17:49 -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 S235340AbiHMHXp (ORCPT + 99 others); Sat, 13 Aug 2022 03:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233812AbiHMHXo (ORCPT ); Sat, 13 Aug 2022 03:23:44 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3E836FA11; Sat, 13 Aug 2022 00:23:39 -0700 (PDT) Received: from fraeml705-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4M4X350TN8z67TNp; Sat, 13 Aug 2022 15:18:57 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml705-chm.china.huawei.com (10.206.15.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Sat, 13 Aug 2022 09:23:37 +0200 Received: from [10.48.145.22] (10.48.145.22) 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; Sat, 13 Aug 2022 08:23:36 +0100 Message-ID: <2b900d3b-9b52-5bc3-4ba8-24249f3c2e42@huawei.com> Date: Sat, 13 Aug 2022 08:23:36 +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> <840a5f98-a53c-ce08-2833-f41d8c9a015b@opensource.wdc.com> From: John Garry In-Reply-To: <840a5f98-a53c-ce08-2833-f41d8c9a015b@opensource.wdc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.145.22] X-ClientProxiedBy: lhrpeml100001.china.huawei.com (7.191.160.183) 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 19:27, Damien Le Moal wrote: >> 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. > Yes, I was suspecting that we may be seeing a difference for anything that is > not AHCI, e.g. with other drivers. > > But that seems to be the correct thing to do, no ? Yes, this should be the correct thing to do. > How was this working before > without applying the swiotlb limit ? > Not sure. I would need to check the libata code for how it handles DMA mapping errors, which I assume would occur for when we exceed the swiotlb limit. Having said this, from limited testing, whenever I check megaraid sas or mpt3sas for performance, the length of request data never/rarely comes close to max sectors. That why I am surprised with the regression which Oliver reports. Thanks, John