From patchwork Mon Oct 1 10:05:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mel Gorman X-Patchwork-Id: 10621769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D6B115A6 for ; Mon, 1 Oct 2018 10:05:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D98E28911 for ; Mon, 1 Oct 2018 10:05:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0186429495; Mon, 1 Oct 2018 10:05:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CC0028911 for ; Mon, 1 Oct 2018 10:05:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8FFA16B000E; Mon, 1 Oct 2018 06:05:28 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8B0276B0266; Mon, 1 Oct 2018 06:05:28 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 79EBE6B0269; Mon, 1 Oct 2018 06:05:28 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 1ED196B000E for ; Mon, 1 Oct 2018 06:05:28 -0400 (EDT) Received: by mail-ed1-f69.google.com with SMTP id h48-v6so4837014edh.22 for ; Mon, 01 Oct 2018 03:05:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=oRvZ1Dq9yfh9dToYk9AaA1J52S3YbZtxLQdNf3yRKEY=; b=dUeOsK4hYJwL0qVD6EhMXdYBldlFk91JFb3vJWdzCTJgbQPraWonxjEkCra0zDplsQ IcGni8IIVJ9Mlwi9zC355mkk8iD13FIzPsi/XhjMhIyXA5jofb1EEFo6Qn6+L5gPqQal E/xrtdW8Y9qatEmf9ChCB/rlpCRZjMBzwC+NDGMj7ha4ftVJYnzd4e795wIlQDgDsPto GaCjRlkUScm9zFl2SNqMFsn0MqP9H6CHTzgksT3bahsV+gJ9PDJDxUNecnEwj8R5YrcU s9mjlsnLf7zm9CHpMf+E09fc2d1fg2ECEFb6DtqXOpu5+XKrELT58cNVa8+eEkwzrSSE /u8g== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.195 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net X-Gm-Message-State: ABuFfojWOawiebgpcakzygHj5RKMQwl6p4BZC/HwZI0ZWEfp9J5xXfZR TCgqgD3dUOftgJJjMvbUamqusQZyUNRuSHbGPH9I0ngK8mxhY3JY9oVJIJ04EYAib/847sQUc6w lpTh5px25mTCdKFBBuWcnrLM00Qw2lTO0yYZbk93cX0ezGt0V63aSVNHXV7YvoSv/Hg== X-Received: by 2002:aa7:d29a:: with SMTP id w26-v6mr9278498edq.83.1538388327533; Mon, 01 Oct 2018 03:05:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV62G4clpL1QVYnxau5qZgkTcArCfNFjjQw3JRcGkgRKF0u/fPPf+0QyRNLswxAz7dYBPSYqG X-Received: by 2002:aa7:d29a:: with SMTP id w26-v6mr9278416edq.83.1538388326703; Mon, 01 Oct 2018 03:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538388326; cv=none; d=google.com; s=arc-20160816; b=I+Ut+V4Gizwf1Q6Ns3IT9P6A/0ojhmWQ3JFbZOeTTu8+AkQWYejYxydHNMRqYb1fbR DNIIh6QJV/pXsvB9H+h1zFRqq/ISWdhMyijZ6mF2QeLXllJEjvUNYH3a6lZu/F9027US OhzNURdDclKQZxV0KcoGUDfAAOZXrmNZwFpYFUHUy82k2oKcA1VIndsvS0qeODT9cSZE lrXMWEacklDwCwTwhoCgHXTg4mhOtAlXWfFKZWmH+V0ShCz6poNLF0PbnogSd4dVtgPi cjBXFFn7kUZ8gPVa6DM8NNzjtnf661NYk2Jcnc0Hv7r1jvmuP+q94qPLPeI7WA4/c3XR xDwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=oRvZ1Dq9yfh9dToYk9AaA1J52S3YbZtxLQdNf3yRKEY=; b=mIpqVt7ovlROGbBuGF+Jb+7pf/YqCQ2kiQ++g2yZQHKlav1dspEP7ARSk1SZ9STjus lo6K0uvu6VvXWWjRZLg9afPO7smOncb6L1fX/AXQ+1UrvabgmzsCohCUAT36ORAJSY7s 5iGY8P73/zRo4lhJpnYLW+UBqhwHMkxm7AL41bIrh6eHkBjkxgpha75Qg+UmkIjAwLXE e21/jnHp4C+71XBxr4RpB6lnsTWpDWzJcXDc72MKaLIt23A/uYWDl16s3cGpjnQkpC1I YCybDN8Pi8TK9b5Z5plSIWZUvBZOkGK6jsInw1idK09/+dcl2bD3Ax46xbfEPzVCNbCb +GCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.195 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net Received: from outbound-smtp27.blacknight.com (outbound-smtp27.blacknight.com. [81.17.249.195]) by mx.google.com with ESMTPS id v13-v6si1194958edb.343.2018.10.01.03.05.26 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 01 Oct 2018 03:05:26 -0700 (PDT) Received-SPF: pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.195 as permitted sender) client-ip=81.17.249.195; Authentication-Results: mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.195 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp27.blacknight.com (Postfix) with ESMTPS id 35154B8821 for ; Mon, 1 Oct 2018 11:05:26 +0100 (IST) Received: (qmail 4663 invoked from network); 1 Oct 2018 10:05:26 -0000 Received: from unknown (HELO stampy.163woodhaven.lan) (mgorman@techsingularity.net@[37.228.229.88]) by 81.17.254.9 with ESMTPA; 1 Oct 2018 10:05:26 -0000 From: Mel Gorman To: Peter Zijlstra Cc: Ingo Molnar , Srikar Dronamraju , Jirka Hladky , Rik van Riel , LKML , Linux-MM , Mel Gorman Subject: [PATCH 0/2] Faster migration for automatic NUMA balancing Date: Mon, 1 Oct 2018 11:05:23 +0100 Message-Id: <20181001100525.29789-1-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 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: X-Virus-Scanned: ClamAV using ClamSMTP These two patches are based on top of Srikar Dronamraju's recent work on automatic NUMA balancing and are motivated by a bug report from Jirka Hladky that STREAM performance has regressed. The STREAM workload is mildly interesting in that it only works as a valid benchmark if tasks are pinned to memory channels. Otherwise it is very sensitive to the starting conditions of the benchmark. Recent scheduler changes prevent prematurely spreading a workload across multiple sockets which benefits many workloads but not STREAM. This series restores STREAM performance without reintroducing other regressions. The first patch removes migration rate limiting as it's expected that automatic NUMA balancing decisions are mature enough that we do not need the safety net. The second patch migrates pages faster early in the lifetime of the process which has an impact if the load balancer spreads a workload to remote nodes. include/linux/mmzone.h | 6 ---- include/trace/events/migrate.h | 27 ------------------ kernel/sched/fair.c | 12 +++++++- mm/migrate.c | 65 ------------------------------------------ mm/page_alloc.c | 2 -- 5 files changed, 11 insertions(+), 101 deletions(-)