Received: by 10.213.65.68 with SMTP id h4csp877368imn; Fri, 6 Apr 2018 10:24:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/qa0/Pa6V+0aNf/2OqGqURN0gbFQqtCXwyO+lWwfYXWUO6f7u9mP6wGu4qVl1Mu9v0Yjjj X-Received: by 2002:a17:902:9a03:: with SMTP id v3-v6mr20830447plp.162.1523035453497; Fri, 06 Apr 2018 10:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523035453; cv=none; d=google.com; s=arc-20160816; b=obB0D9CbNnQzYEqj4J22Pys/cWIj0fsIrZjIGMaLUUsREfAkE6koK+rlpX87mCgY/M vPhLzWxpXdWAGFZcqD9cqScu0sL3YDlU/GFE4eLak92RWxVGF+xc8sX7QkDEMi3bgNFG D1NE4+DBBL0jQdnFP15CiyrNFl6+ho4zIY5U25QeVfraKnFpAgO/oYG9+32ynmqoUCmi C3Eqab+cV/m9A53bMLHf9dMPlQ6xVaP5f81y1gHyXT7RFl4dmU4H3VJbu4WWrN+up4Ga TdDJX0v5ltUCfkTCNOqCiaM8IwnADgnpWPx3i0gqDfZuR99NkGU6cnmQSHBA2o7tA9eR Olvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature:arc-authentication-results; bh=COf8OFdfbWX2ft1CF9IOWHoLnlxw4LP1zVJCC6KaPh8=; b=UVNi+taP3uM90WYXqi7ql59FLZ1qhMxImpvGYYg8520OnmMKiSKROp5npr1nerRM/0 dHNZ1skeNGy6S3hky4jfrRDrW5bNowAkXOJvG6OGiEJoKTtUFXHRW9X2m3RO8EIefahG JpQeNoNGxtC1tezsvG9Y7duyVTfQvirNB7B5jPvKzG2y+xNhszMx4A84QAH/n0rh+EdP OKIv3SSuAQ3rQiGJm7ng/Rr7Voo96hhB32pSwrtd2Onh7v5ozJ+WEmTWX0SMe0scKVLA zjxGr5GCD2VT4wcSNOjAdwFqM0jeD6FWQ5Z8+8tnLYn8nqRHJabFIolWSbWjkcKyro2K 7mIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=dAw5J9y/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si7459224pgr.603.2018.04.06.10.23.35; Fri, 06 Apr 2018 10:24:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=dAw5J9y/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751530AbeDFRVB (ORCPT + 99 others); Fri, 6 Apr 2018 13:21:01 -0400 Received: from mail-by2nam03on0056.outbound.protection.outlook.com ([104.47.42.56]:44496 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751312AbeDFRU7 (ORCPT ); Fri, 6 Apr 2018 13:20:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=COf8OFdfbWX2ft1CF9IOWHoLnlxw4LP1zVJCC6KaPh8=; b=dAw5J9y/EGCRsuJGxm18jI/y84/KJzVTVuxY6dCmbQrQxTlBdz5vhRaKYNV8mkIbYBlsXLeWV3XhgbDeSnHsXHH8s9pBitSdvpvIigsTMu7rKfsURIsBtVLJ//rh9ImJXr/CguzitDYtr+hHuLWI8hXdNAO1QhG7pFExeX62LoI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; Received: from [IPv6:2a02:908:1257:4460:1ab8:55c1:a639:6740] (2a02:908:1257:4460:1ab8:55c1:a639:6740) by DM5PR12MB1721.namprd12.prod.outlook.com (2603:10b6:3:10f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Fri, 6 Apr 2018 17:20:55 +0000 Subject: Re: AMD graphics performance regression in 4.15 and later To: Jean-Marc Valin , airlied@linux.ie, alexander.deucher@amd.com, Felix.Kuehling@amd.com, labbott@redhat.com, akpm@linux-foundation.org, michel.daenzer@amd.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <9ca940f1-7f21-c420-de45-13d72e783ab6@amd.com> <6cebabff-908f-5ebe-4252-760773c4cd6f@amd.com> <312ed341-7052-a61e-331f-d1e8fd5b477e@mozilla.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Fri, 6 Apr 2018 19:20:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <312ed341-7052-a61e-331f-d1e8fd5b477e@mozilla.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [2a02:908:1257:4460:1ab8:55c1:a639:6740] X-ClientProxiedBy: AM5PR0102CA0033.eurprd01.prod.exchangelabs.com (2603:10a6:206::46) To DM5PR12MB1721.namprd12.prod.outlook.com (2603:10b6:3:10f::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 031cd338-45c0-4c25-c2a0-08d59be2c2cb X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM5PR12MB1721; X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1721;3:cX5LJ+cR/7SOBa8E5IOixRYOGn/hT8WpIbdx7N9/IeCKw3SE7uXYfVwdaZNrhmmXIY9s3dipf+k+u2VeYjGVBGCjeMzGV8zjE5+CjBRR1NDloqI3D0tPBZ6QHKnI0bJrNDJkQLSDyNfCVVD/y5f3N7I17gAd06wPyt/IvhXFjjQGeRfdjGhALb6BhCdSpYb/McN4HFQ/uYJioi8/3skF2VeFBfTCp5vWxSTbnUrbBtQ+eQmPyfUhzf9jJhYvfPxG;25:/wzcP3hRgPBXpFOfT2b1uQZ47aeJsxjlsX6XjhW7C71uTSHzHzYAdiAFiGNE48GQwLSiaqc4oD5tpGjzEpsn1iWLQDErvI2FHlLkaUWD36byLvDGRrdY2wV5coJOZrQgstEepDWUsEXNY9FcsFZ3VYZ9jG5OgJKGco8x6fQKDIwVfmqT8Ff1tLG4RK9xZgH6nhQ3lbk/msWeTkJY6LytyH8gsT9M0tbb8YqE/UWZz+XKO7v1XNf8bAD6YQPIu/vObEX+E5gc931/EQcnhcw0isPmtZsSKk+EZ/NefxfZA6fPIYMqoYMtZZMFtKk5z/bbPig+athkdJSICJE0afgSBA==;31:qrFLc+Vkj3zCvi8IT3Mi8CVaR2lD/vJ7FymnfoPDRMgkyGXmOY/Y9lBrjCTZZt3ro3GRfWBKv6Mh+XiY83iGVt/Ute2afFXClt9Y1H9H2eJroX4FgkDjfZZOiJpYkXsspd/20+ChzyjDmYBqR+3c+OKmG8L9ZwQeIbpVSjNJl2zxSV4IDCjHrjTPCKzUJB3XI/ZFvjobAAMI6MyQZtVOPXLzjaioTMkzvxhfpilwbpU= X-MS-TrafficTypeDiagnostic: DM5PR12MB1721: X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1721;20:HzlHUCW36NrmAGMdP3MVTH85qwCj+Yr6fXarvjgHzvkUFSiYrlk5hv8OgAq87Fmqh5bivpRbTWo3F3vzEaoDJ4Lt86E06z8vy5gNcK81yk6wq7U0T9CaqzDvtKl3RQ3eOESRC/Km4y90QYJJmxpW6FTCAtzDDYKnZPzizBz2ekvgT5rVe16ttcQrqTZO1nbSE2Hs4HTVsTYSdxr6WgAMzV/OeeJa+AQX4D6qAa3/RkZNgBNH+2Hom5ex2qvreHfrcagyBqvE8STjxtdMIuKCZK6yPpyEHplJguFw3xR3SB7y4GretGJWLWzP79XCretinQlE/Hsl68HGMNoYdptaNxm6Qgs7WTE4bMs/xm9u1GlYjJnMXrZQAxckeX3oh8FhpkU9pwDiKqaKRtTkv6Sjm8Sl8s2MmCWZ0dQ/79rjhvODErFUZyfAhA5na4lj+HduFGaXfqNBpdd/+JHqz+2Q5PNymaGVvQHQ1empqmhl0Aw5nqu+aC1zaw9y6D8kVmED;4:8ncQDlv50PNzhaIEInTo5f1PpY7FjG7hRPikWYcYiMHEWNGLSrnM6dgrKAKSeOxoB3j4d93WwCFrRyXFBlB/UKL5AEHtiupZHW5qenel/LlI5S4sthuyu1Z/RlFHadkwU3VrXMzmWRRkmLsziMopPdoZHrl+MU2Cww0Pt0clCs95gyFYEYGKQCM7ga+hKRQt36ZHMzN8jsByfggzNsl/xK8LbWYTjT1Hzv86M6G4OFwq5K+RjCAqeZdRcKsy/hhcPLTwlAuqBfizclmmUSAZdA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011);SRVR:DM5PR12MB1721;BCL:0;PCL:0;RULEID:;SRVR:DM5PR12MB1721; X-Forefront-PRVS: 0634F37BFF X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(366004)(39380400002)(39860400002)(346002)(396003)(52314003)(199004)(189003)(966005)(6666003)(36756003)(52146003)(23676004)(72206003)(64126003)(2486003)(52396003)(52116002)(386003)(67846002)(53546011)(76176011)(229853002)(5660300001)(53936002)(6306002)(6486002)(105586002)(65826007)(68736007)(31686004)(305945005)(2870700001)(2906002)(47776003)(478600001)(8936002)(8676002)(97736004)(7736002)(65806001)(50466002)(1706002)(6246003)(6116002)(58126008)(65956001)(81156014)(86362001)(476003)(93886005)(106356001)(446003)(11346002)(186003)(2616005)(46003)(16526019)(31696002)(81166006)(316002)(25786009)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1721;H:[IPv6:2a02:908:1257:4460:1ab8:55c1:a639:6740];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxNzIxOzIzOklNQkNUOTNCUGpIMENZaXNzSWFmTmZPYWJs?= =?utf-8?B?bTk2UDBUSzhZSVBvaFlQKzF4cWhjaE90dktLM0FaL24wKzR4NFcrSWNGSWcr?= =?utf-8?B?ZjR1bDZuQ0F1Tm9QZkp2ZU13VkdTV01VQlFvQlNHN3F5aCs2cm1salRjZDBy?= =?utf-8?B?UWNUWndxbDNaOWt0a1BzWTVqNFNHUWtVT3NTdzZCY3BhS0hZcGczQkdodkxG?= =?utf-8?B?Q25hcTR5SXIyR3R3RkFVNXY0UTMyTUIwbkpFYlJTRER1bFNOVHVkbkk1V1FD?= =?utf-8?B?NUNyVVJoaVYrd21RVHNZVFdVTGRXNFFqNEQ1bVZLM0ZRcUZKalBocVI1L2Vn?= =?utf-8?B?Q0tERUpwNEVrOUJmSkRzbzdBa3ZwNH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a9UqxtDrXk;20:sFdBTotZHr9XTOjG9+ZmqbYUWlmkI63/VkPLhswSWeJmPca/pam27VEy5hwc3cq2SaEe68BofW0P10YSh6/JtuFUx9KWeCU+jG4A5weDEfYIqFDtZP+4tZyK0zgoHsa2eQzvD7h/QgTyl9v2NSuJtDVdYIasrF2Ua3nEH5q6ziYS09aZ3mY1atzyaQzb4Tv6OJcQpYGM35AB3UVPBIT9CZZkfitJMJs/dS6C4Oa79GfC12+PRgg+lV9TSf0PpOR4 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2018 17:20:55.8497 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 031cd338-45c0-4c25-c2a0-08d59be2c2cb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1721 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 06.04.2018 um 18:42 schrieb Jean-Marc Valin: > Hi Christian, > > On 04/09/2018 07:48 AM, Christian König wrote: >> Am 06.04.2018 um 17:30 schrieb Jean-Marc Valin: >>> Hi Christian, >>> >>> Is there a way to turn off these huge pages at boot-time/run-time? >> Only at compile time by not setting CONFIG_TRANSPARENT_HUGEPAGE. > Any reason why > echo never > /sys/kernel/mm/transparent_hugepage/enabled > doesn't solve the problem? Because we unfortunately try to allocate huge pages anyway, we unfortunately just fail in 100% of all cases. That basically gives you both, the extra allocation overhead and the still bad throughput. > Also, I assume that disabling CONFIG_TRANSPARENT_HUGEPAGE will disable > them for everything and not just what your patch added, right? Correct, that's why I wrote that disabling SWIOTLBs might be better. >>> I'm not sure what you mean by "We mitigated the problem by avoiding the >>> slow coherent DMA code path on almost all platforms on newer kernels". I >>> tested up to 4.16 and the performance regression is just as bad as it is >>> for 4.15. >> Indeed 4.16 still doesn't have that. You could use the >> amd-staging-drm-next branch or wait for 4.17. > Is there a way to pull just that change or is there too much > interactions with other changes? It adds a new detection if memory allocation needs to be coherent or not, that is not something you can easily pull into older versions. >> That isn't related to the GFX hardware, but to your CPU/motherboard and >> whatever else you have in the system. > Well, I have an nvidia GPU in the same system (normally only used for > CUDA) and if I use it instead of my RX 560 then I'm not seeing any > performance issue with 4.15. That's because you are probably using the Nvidia binary driver which has a completely separate code base. >> Some part of your system needs SWIOTLB and that makes allocating memory >> much slower. > What would that part be? FTR, I have a complete description of my system > at https://jmvalin.dreamwidth.org/15583.html > > I don't know if it's related, but I can maybe see one thing in common > between my machine and the Core 2 Quad from the other bug report and > that's the "NUMA part". I have a dual-socket Xeon and (AFAIK) the Core 2 > Quad is made of two two-core CPUs glued together with little > communication between them. Yeah, that is probably the reason. >> Intel doesn't use TTM because they don't have dedicated VRAM, but the >> open source nvidia driver should be affected as well. > I'm using the proprietary nvidia driver (because CUDA). Is that supposed > to be affected as well? No. >> We already mitigated that problem and I don't see any solution which >> will arrive faster than 4.17. > Is that supposed to make the slowdown unnoticeable or just slightly better? It completely goes away. The issue with the coherent path is that it tries to always allocate the lowest possible memory to make sure that it fits into the DMA constrains of all devices in the system. But since AMD GPU can handle 40bits of addresses you would need at least 1TB of memory in the system to trigger that (or a NUMA where some system is low and some in a high area). Christian. >> The only quick workaround I can see is to avoid firefox, chrome for >> example is reported to work perfectly fine. > Or use an unaffected GPU/driver ;-) > > Cheers, > > Jean-Marc >