Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2887757imm; Tue, 4 Sep 2018 11:36:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbvqnfyK0QLLKEqXqGSDIoltHdoy7U2LRWw90pQbCVpJI1dsFZ0fk063hQd8KM1rvxAcnQX X-Received: by 2002:a63:4e25:: with SMTP id c37-v6mr32179694pgb.6.1536086179356; Tue, 04 Sep 2018 11:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536086179; cv=none; d=google.com; s=arc-20160816; b=OhgfVJfqD1EpT6XcYJg8dTdoq1B8sxv1RQXMw/0iG71rb4oYQROndbuYNk2D6tnmnl 7BjmDmR0en+2od2Cn4g6mD8GIKff0xIE3rTCRmnrb6KF5DpPh+9z29Vlf4yDo0PrZSu2 U9PtqRvwhBsgHqTovk4LSDbdPck/MNF1G2y8kyI0rVpSTke0r3GTq76JmsUcE4fmtcoa k0OhjXCEnTq65w/p58tJkE9V6xmQNUYtMAIV90RD3F9XgrWwTweMYH4FU7lSRAQ0rTih 6+dJEYKmZJTSIViaYSi7c2OdkUXF9wuAqzfEDu3ymFK2n3uvXCCOIunQg339Nva8iudS akdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=/1b21c7TXXIYptENM3vkWU/LhgwrOe4QldjnsHnHVgY=; b=UFLnBOuqHXy88LR+87aKE2qhiwSimYuTPEv0aniCnSUTRtN1AnZVjjrBm/Fs6We3td C/e9AMGc7kZPEP7iBLHlBzzcJhuULEOxAUkyL2cZSTu4JnvaGHOX7l7WyT/DgrYWUBud YHqzct/UJTH7NYH/vB+bxiTMCZLH1/quko0Zax+kGrFxQGaRZUxeeySIfdy4gYFWm9Xu tyKWvXCqKTHb2j/757KLHREKnSP+oiihlt/wZZqWth+fp7NpDAhFDiF4UW6rAket2Kti 4uUI3sQdtgQs5yi3cX688encqED6d8JyuJc7MP175ajf8bvUEV5CtMhepI7yoUdCBich B00Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lsmurEDi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si22437646plb.68.2018.09.04.11.36.04; Tue, 04 Sep 2018 11:36:19 -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=@gmail.com header.s=20161025 header.b=lsmurEDi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727872AbeIDW7y (ORCPT + 99 others); Tue, 4 Sep 2018 18:59:54 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44386 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbeIDW7y (ORCPT ); Tue, 4 Sep 2018 18:59:54 -0400 Received: by mail-pf1-f193.google.com with SMTP id k21-v6so2095832pff.11 for ; Tue, 04 Sep 2018 11:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=/1b21c7TXXIYptENM3vkWU/LhgwrOe4QldjnsHnHVgY=; b=lsmurEDi1XBXpErBJ0EI+knLZ+QWaqlMXwLARD1pbpL4j6dyGlQ8k+S9uigMNOpyaP Zi2t2XPkjPg7dD4kO54WRhX9XMW/DtD86MJyomGZ4Cv6t0zp2PGMiINICBJBk9hz1Rw/ UipVvKqXJYElMHBFb9uYBAj396POUhGQeB47K/varr+Ob11PdjWYmndA9tGLLGtIfLMd 0X6hLQo8ZNZROUpfbRHuPZ0o5hu/OGLFTkJlwBIIRQbywY+KNbcjANvkHkbjlWzkRTBB jTgXra5XYOd8CP40MCj0kK1ff+1Crnadc1+cCTagGUxabaQB+glKOk6IQs86CwN/9qdc qfeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=/1b21c7TXXIYptENM3vkWU/LhgwrOe4QldjnsHnHVgY=; b=DhyvHs7ZgEQ8w6uqHYdnVYjVlWo5OP6t4Usa5tbnLQHuSqzIRN9itQMtGR/1aAXMe9 awEMJ94e4BeeB+54qu+WqkfkvDekq+R6G6rps2hfGiNBLqYgheKhImaZmk3KpPIWXn8B q2LSxM4C1ZZ60IgrU1nOL8vNQJoSji8aKJochYK4LgNKfxZpTS0FKwhSuHSKn7RFu52/ n0phihdzNDSBzAgQ8kTkZEt7bA0paYR5qewlv3AEHmA4edStDtRlwPtKPGyfxRRsQqQ/ /UzwZjgO0URBi3WJ7KWdVvI0TTaVgt5BAI2/EackdY1nUAT5ZQFJRL552ZYDylJoIk5m 69KQ== X-Gm-Message-State: APzg51AgStuf5qXTG2N51HKsXQr8bbxz8W6gIbMRAeK6SliTC91h7xde SSdvLP7amZ4sBGDLBvwbncY8vLTM X-Received: by 2002:a63:ed4f:: with SMTP id m15-v6mr32376551pgk.147.1536086014665; Tue, 04 Sep 2018 11:33:34 -0700 (PDT) Received: from localhost.localdomain (static-50-53-21-37.bvtn.or.frontiernet.net. [50.53.21.37]) by smtp.gmail.com with ESMTPSA id x23-v6sm10439168pge.61.2018.09.04.11.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 11:33:34 -0700 (PDT) Subject: [PATCH 0/2] Address issues slowing memory init From: Alexander Duyck To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: alexander.h.duyck@intel.com, pavel.tatashin@microsoft.com, mhocko@suse.com, akpm@linux-foundation.org, mingo@kernel.org, kirill.shutemov@linux.intel.com Date: Tue, 04 Sep 2018 11:33:32 -0700 Message-ID: <20180904181550.4416.50701.stgit@localhost.localdomain> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series is meant to address some issues I consider to be low-hanging fruit in regards to memory initialization optimization. With these two changes I am able to cut the hot-plug memory initialization times in my environment in half. --- Alexander Duyck (2): mm: Move page struct poisoning from CONFIG_DEBUG_VM to CONFIG_DEBUG_VM_PGFLAGS mm: Create non-atomic version of SetPageReserved for init use include/linux/page-flags.h | 1 + mm/memblock.c | 2 +- mm/page_alloc.c | 4 ++-- mm/sparse.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) --