Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1664336imm; Thu, 14 Jun 2018 01:37:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJd+1nNmH/TPd7h9FY1efBmAxcJLwYLvWiXau7Ov7WdC/n4fP4yRVN8DjaQvDRFDYOJJG+H X-Received: by 2002:a65:6252:: with SMTP id q18-v6mr1534278pgv.106.1528965462290; Thu, 14 Jun 2018 01:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528965462; cv=none; d=google.com; s=arc-20160816; b=lVMjc7OHjA8vFYCNHDT1gVYh5jCdUFh/oHhZMiDzxdEyH7VyyyuZkyA89AwowOSg9H m4jLbgQ9EdZaHACvcv1979tYJIYXhz7IglBnwTMm+faA8FWkc8IqSI7sRcd/hTK7m/vh aOrQK1Du1A5fnivYIZBfTU6BbpN2LnjsvgHlNIS52cZcl0FLQgOv+NUypyPAgm4o3s95 JUh9lF3NWozZhzyTSPbhdJdv4nn/RwJrb48FjPLNxGELxxoR0j+MVlEJDj0tceTsrO6K EqyKZkes/WjNgjVQyRNvJZeminM21xBsGoAGGZ1z2pllv4XTa3G9PAV5V7eCA4zQiORn F5PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=SsiketGpoFbAEKMWl6VgYBpBX5ilpgDs0wWKOHsu9zE=; b=x9A5LO1jhHPwdh4qrEAQSikEu3sPUzkRs6KLAgp/9103gB4Adbt+bUXcomquqQkMGa 23Q5LDN0PnQR1K4SVRzQba+rt8IidVdviItplaFirrkyYHLX3bvspSFZuiY2VVWpno4d gfYqZ4L9CJF4S7ikNiPAt5gypJB/lsUpXmVjl5niuwjBHd1b+b6utlaXNRnQwcTfLqLd O8SkA/h/5u8o3NRfkD4aPU2faFP8fGD5kSGh25qf2otrIV9CEoIXusJnxl97gXV/d6Yl 0n36jsZwH5mSqG9gFSldgxXuj8cjPLoOasz+D0grNjH2vVzpfp+tJ0ZvXVqb11Qw6sDn eoUw== ARC-Authentication-Results: i=1; mx.google.com; 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 u65-v6si4171234pgc.590.2018.06.14.01.37.27; Thu, 14 Jun 2018 01:37:42 -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; 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 S1754887AbeFNIgp (ORCPT + 99 others); Thu, 14 Jun 2018 04:36:45 -0400 Received: from outbound-smtp16.blacknight.com ([46.22.139.233]:60793 "EHLO outbound-smtp16.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754540AbeFNIgm (ORCPT ); Thu, 14 Jun 2018 04:36:42 -0400 Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp16.blacknight.com (Postfix) with ESMTPS id 38A431C1E84 for ; Thu, 14 Jun 2018 09:36:41 +0100 (IST) Received: (qmail 6718 invoked from network); 14 Jun 2018 08:36:41 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.237.171]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES256-SHA encrypted, authenticated); 14 Jun 2018 08:36:41 -0000 Date: Thu, 14 Jun 2018 09:36:40 +0100 From: Mel Gorman To: Jirka Hladky Cc: Jakub Racek , linux-kernel , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, "kkolakow@redhat.com" Subject: Re: [4.17 regression] Performance drop on kernel-4.17 visible on Stream, Linpack and NAS parallel benchmarks Message-ID: <20180614083640.dekqhsopoefnfhb4@techsingularity.net> References: <20180611141113.pfuttg7npch3jtg6@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 06:07:58PM +0200, Jirka Hladky wrote: > > > > Fixing any part of it for STREAM will end up regressing something else. > > > I fully understand that. We run a set of benchmarks and we always look at > the results as the ensemble. Looking only at one benchmark would be > completely wrong. > Indeed > And in fact, we do see regression on NAS benchmark going from 4.16 to 4.17 > kernel as well. On 4 NUMA node server with Xeon Gold CPUs we see the > regression around 26% for ft_C, 35% for mg_C_x and 25% for sp_C_x. The > biggest regression is with 32 threads (the box has 96 CPUs in total). I > have not yet tried if it's > linked to 2c83362734dad8e48ccc0710b5cd2436a0323893. I will do that > testing tomorrow. > It would be worthwhile. However, it's also worth noting that 32 threads out of 96 implies that 4 nodes would not be evenly used and it may account for some of the discrepency. ft and mg for C class are typically short-lived on modern hardware and sp is not particularly long-lived either. Hence, they are most likely to see problems with a patch that avoids spreading tasks across the machine early. Admittedly, I have not seen similar slowdowns but NAS has a lot of configuration options. In terms of the speed of migration, it may be worth checking how often the mm_numa_migrate_ratelimit tracepoint is triggered with bonus points for using the nr_pages to calculate how many pages get throttled from migrating. If it's high frequency then you could test increasing ratelimit_pages (which is set at compile time despite not being a macro). It still may not work for tasks that are too short-lived to have enough time to identify a misplacement and migration. -- Mel Gorman SUSE Labs