Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp822850imm; Fri, 15 Jun 2018 06:53:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXSjehpfrvRTc5tN6pY2QXniKjKs2NJUb/DLl2HjDS+ce2o2WRlY0G7Uq2u4Cr4Sa6iHVR X-Received: by 2002:a65:5003:: with SMTP id f3-v6mr1675275pgo.425.1529070789027; Fri, 15 Jun 2018 06:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529070789; cv=none; d=google.com; s=arc-20160816; b=P/3Fag6wGMoVNhYH+DK2HBovNVibFjIpN16s9vqHbOTz5ZU68Dpk33DTr+LrhTOQ6O VgYi6Ucb/LggonKcqqC2RLEVevuV0FSn1tdHX+uaJ4V2/ztmXDgw27g/4QaCnktmP4AG U/zEXZe1/2/kLzea2tJzI0ldWVt0RCodHxmJtnVh1VXNsopm3S7ozrXoPV/YegfujB/X h2MRx1YzM4lyF0cTF0pHqN5khIdkzadwWT43I1/QUoGcRF0+H/C42zL7EqLJRUDj3cvz inI0K59u3gwIG0I9dDkW+hTlTVnZlZCMmw6G/DR8eTKjFdh6CZJuiyndjx2LJE88gDk/ 7E7A== 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=L76fp/nOz1L/tdc1lTXs3rvMxsvCDu3+2E5Gqipd9ag=; b=hzpfuRZed4okCvyiIdBBJKdabSlJMlnN4t/A9GQyNdu4KfsAxW2I3ZN1zQQT3EryuY UDQtYzDDS7QTUZqoWZG4GrgKoktUY4DHRp8gKp1q4UvIiIqJrrV+VHKYyLAPyoojPByt 1CV8WJJXnkS9mQPilU6Y1vx2I8hb2B5gHPMJiGoVAg/iR5J/iZVgrSlgFNhwTeC9JYtn 2yLBuF6KTDxYunDrGM9EepgjvxNm/YJ2gNTrpfCiz8mZ7Dby73g00+YQZZIDV15UZ4y/ cxYAL6zSXRaheHyFCLWy27tJbbqnbRDDquVSguyZMGGuJ1FspYuuoIJQeV3xNEaJsG3s xKIw== 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 g7-v6si7782451plp.236.2018.06.15.06.52.54; Fri, 15 Jun 2018 06:53:09 -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 S1756230AbeFONwR (ORCPT + 99 others); Fri, 15 Jun 2018 09:52:17 -0400 Received: from outbound-smtp12.blacknight.com ([46.22.139.17]:39092 "EHLO outbound-smtp12.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756186AbeFONwO (ORCPT ); Fri, 15 Jun 2018 09:52:14 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp12.blacknight.com (Postfix) with ESMTPS id 1154E1C1823 for ; Fri, 15 Jun 2018 14:52:13 +0100 (IST) Received: (qmail 4847 invoked from network); 15 Jun 2018 13:52:12 -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); 15 Jun 2018 13:52:12 -0000 Date: Fri, 15 Jun 2018 14:52:12 +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: <20180615135212.wq45co7ootvdeo2f@techsingularity.net> References: <20180611141113.pfuttg7npch3jtg6@techsingularity.net> <20180614083640.dekqhsopoefnfhb4@techsingularity.net> <20180615112522.3wujbq7bajof57qx@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 Fri, Jun 15, 2018 at 02:23:17PM +0200, Jirka Hladky wrote: > I added configurations that used half of the CPUs. However, that would > > mean it fits too nicely within sockets. I've added another set for one > > third of the CPUs and scheduled the tests. Unfortunately, they will not > > complete quickly as my test grid has a massive backlog of work. > > > We always use the number of threads being an integer multiple of the number > of sockets. With another number of threads, we have seen the bigger > variation in results (that's variation between subsequent runs of the same > test). > It's not immediately obvious what's special about those numbers. I did briefly recheck the variability of NAS on one of the machines but the coefficient of variance was usually quite low with occasional outliers of +/- 5% or +/- 7%. Anyway, it's a side-issue. > Nice one, thanks. It's fairly clear that rate limiting may be a major > > component and it's worth testing with the ratelimit increased. Given that > > there have been a lot of improvements on locality and corner cases since > > the rate limit was first introduced, it may also be worth considering > > elimintating the rate limiting entirely and see what falls out. > > > How can we tune mm_numa_migrate_ratelimit? It doesn't seem to be a runtime > tunable nor kernel boot parameter. Could you please share some hints on how > to change it and what value to use? I would be interested to try it out. > It's not runtime tunable I'm afraid. It's a code change and recompile. For example the following allows more pages to be migrated within a 100ms window. diff --git a/mm/migrate.c b/mm/migrate.c index 8c0af0f7cab1..edb550493f06 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1862,7 +1862,7 @@ static struct page *alloc_misplaced_dst_page(struct page *page, * window of time. Default here says do not migrate more than 1280M per second. */ static unsigned int migrate_interval_millisecs __read_mostly = 100; -static unsigned int ratelimit_pages __read_mostly = 128 << (20 - PAGE_SHIFT); +static unsigned int ratelimit_pages __read_mostly = 512 << (20 - PAGE_SHIFT); /* Returns true if the node is migrate rate-limited after the update */ static bool numamigrate_update_ratelimit(pg_data_t *pgdat, -- Mel Gorman SUSE Labs