Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp24188imm; Wed, 5 Sep 2018 14:14:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYIaLzBaYOaNGRS86dNyiVQaUMfV16Vr94kps17z7SE/dCFBAXGzlPPHp6RPdlKVmDFOjYP X-Received: by 2002:a17:902:b947:: with SMTP id h7-v6mr41364551pls.157.1536182096684; Wed, 05 Sep 2018 14:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536182096; cv=none; d=google.com; s=arc-20160816; b=cd9EPgZiAKQID5uF4QRBpWLYcGYdnopRdoQ2ua0d6eivuB2xNbPi0oc9OnyyP7H/mB pStjS4Nhaf/IOR7Ea5V/Pn4lLXn0y1W2rFu9yLZOCDfFXuq2JqNfuK8CPredDXWM3GtQ kVf4x8rcUMaN690TzZb3nBzGml+tIRtmxZyKDDl58o8ye0F0sRGffsup0DYErh492PQ3 tHWublWhW9SpA81x9ff15ANWVGuHoy7jEXtwP/pZ8Equwm6KuU9WEI97GVxQtf3DJI9s MpWaDyYhLSma2nN4S3ZvDhjUZwILjHi6pxZ66WqS+/SlNQUFfSddXA3jroxIARDQFZpa RFmQ== 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; bh=PrM3TBGsiWAzwppBp1iAxyBHbfSoPrUIEmFqlambUSs=; b=t5qJcGxhOKue4HD04Wb1KuZ73uxkyYcYnsWM04liWD5Jv3BrxbwzwPkr/fS3Bzm6FF x2IKT2kfHBdYbE2+QTKDyqav6ZZe1I7EiDtPYIH1txNwsXGZCXL5gxZBYPRERfOeljle 9dQJ9GqW+7mYF4eVi3WUMHv3CTZKkip/aBJKaauqKHQy2OGJyuuX06tSsXep7tC2L8nU Lclo/MKS3ZeBSb0kljnSbJJ0B+tU0Ayfy5GuuSPd2eYQxN3HNz1G9/i2zQfJhxuZ9hxO Rf0jt6sQpG7kCa8Z62SzB3hzAoDwt0Q+pfoErFZ+1stQRju60/z6dQzTNNE21a9AjNoH 8m4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cR5jXW1+; 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 b2-v6si2864065plx.121.2018.09.05.14.14.39; Wed, 05 Sep 2018 14:14:56 -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=cR5jXW1+; 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 S1727629AbeIFBpW (ORCPT + 99 others); Wed, 5 Sep 2018 21:45:22 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43124 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbeIFBpW (ORCPT ); Wed, 5 Sep 2018 21:45:22 -0400 Received: by mail-pf1-f196.google.com with SMTP id j26-v6so4097812pfi.10 for ; Wed, 05 Sep 2018 14:13:23 -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=PrM3TBGsiWAzwppBp1iAxyBHbfSoPrUIEmFqlambUSs=; b=cR5jXW1+/GuOQhU3LI5ukQMbdXrHw8Uaaj6+9R6LpvTWACJD24GexcV2aXJHz1kNV6 KkKtX9v4CoPaIvCpnvYffkH02u2Nsexkat0zuACasmOt/mpqZs9CPtfnY/hYPqr9xSE+ TCdI12B+KDrnpx1ZhgUnI/Vce0MTuCDBEM96zEhaR4wYhPKu1jlRFOf2bI+gbR3oVp9F K1a5Ed+Ta6K05sdyeBVKZfFKlztTvHeJ4ki2NinLQUGAd3c6saef38YHsPgOs5rrXyLK 1b6lkElDvRMPY46UtsrdILPTqbt04Cu9QJwmmCWAVmZKCjcgsbx4IzZ8k/95TtP2f3cv f8NA== 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=PrM3TBGsiWAzwppBp1iAxyBHbfSoPrUIEmFqlambUSs=; b=e8cFJQ1zTU8J3PI4QXgg0olDFNj8Bh10aUBLBYWq6sa40eE46rrleNEYZw91XvfK8g zaM/l5gf7pcl9Rbh6jjDglTxbipeZj+mjfwZYUx+3i4QZpYzFC8v+ZxHt/oh62CUEePE 6TOofAoNgJKTI0QCBnQaQjPbxlQF4ZS5/fz+xkOx7PD7mUVY0wZHlsRcyVVsPoNOVrsp PGPpxcM+3+9MeQ3w66PYWXD0h/rW09n/Pb49kf/uD1ujeUiERTkFe0G/VqS6ykok7Tgt IjyvH1DvWDaLkD/zW4qli6ENy5iqT5xo/VZUwPPoJBU4OuvkZO8F9cdoik95T9hrJX1b DUhg== X-Gm-Message-State: APzg51Dgmu4ObYrO3i9W3AlNAHobDTFZY4BW549lTwJwGpOAU+pDJanG RKWRGv82Tr/MknFGL3LVUCM= X-Received: by 2002:a62:45d2:: with SMTP id n79-v6mr42671057pfi.137.1536182003347; Wed, 05 Sep 2018 14:13:23 -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 d12-v6sm4788230pfk.69.2018.09.05.14.13.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 14:13:22 -0700 (PDT) Subject: [PATCH v2 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, dave.hansen@intel.com, akpm@linux-foundation.org, mingo@kernel.org, kirill.shutemov@linux.intel.com Date: Wed, 05 Sep 2018 14:13:22 -0700 Message-ID: <20180905211041.3286.19083.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. v2: Added comments about why we are using __SetPageReserved Added new config and updated approach used for page init poisoning --- Alexander Duyck (2): mm: Move page struct poisoning to CONFIG_DEBUG_VM_PAGE_INIT_POISON mm: Create non-atomic version of SetPageReserved for init use include/linux/page-flags.h | 9 +++++++++ lib/Kconfig.debug | 14 ++++++++++++++ mm/memblock.c | 5 ++--- mm/page_alloc.c | 13 +++++++++++-- mm/sparse.c | 4 +--- 5 files changed, 37 insertions(+), 8 deletions(-) --