From patchwork Tue Sep 4 18:33:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Duyck X-Patchwork-Id: 10587761 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 588055A4 for ; Tue, 4 Sep 2018 18:33:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4369329CAB for ; Tue, 4 Sep 2018 18:33:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35DDB29F9F; Tue, 4 Sep 2018 18:33:43 +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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 CB15229CAB for ; Tue, 4 Sep 2018 18:33:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 80D796B6EE8; Tue, 4 Sep 2018 14:33:41 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7BC436B6EE9; Tue, 4 Sep 2018 14:33:41 -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 6D2606B6EEA; Tue, 4 Sep 2018 14:33:41 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by kanga.kvack.org (Postfix) with ESMTP id 2CE4D6B6EE8 for ; Tue, 4 Sep 2018 14:33:41 -0400 (EDT) Received: by mail-pg1-f198.google.com with SMTP id m4-v6so2179304pgq.19 for ; Tue, 04 Sep 2018 11:33:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:subject:from:to:cc:date :message-id:user-agent:mime-version:content-transfer-encoding; bh=/1b21c7TXXIYptENM3vkWU/LhgwrOe4QldjnsHnHVgY=; b=HH7oLEf8QFnk+Nf7MAXGQHy9KToTBrN4y31Htopog2PovK5xbf+1UDvlJYhaFViM08 TijsYbVL8HlR5wKzmQjl3YH5SRASMkmYDz1ArXp82/W9mOLjf0IBZoWvVriDJNjS7nbt 4fFCMKCB5LjgSXvP5jXHWwVmpoQODj3VCjkB85l0stNvBDucURYzAURDv1WAtbZ2XdhF jKmXAVpJs0riKK/O0YzKA5+1RE5sHD7F+9MhRFwDjJwIqeJbcSuDOp0OqJEfsa/8lwDf 1ACHbsLHGJ5qes8V/BcvlHriOYFBqkDogJG81mjHoc14ksRX4ydzpIdDG7aSDkw2ZPIw VcIg== X-Gm-Message-State: APzg51ADd+Q7mCtb6/foW5VEC7DQwtGVN3D5GLCxqPWyIzD8189pUcbu tIAMWTTCr4FPvB5XOtKKxT4ovVWNM+8eIjnpDYK3pNa5lmannoj+0v7rxvQZuPUJpBtT2tV4ZNk UlN2b7R5lCn70b6n5FwTz0OUWM0tyOd4jwsF5dz6G7yXyzWpY9pGhwNOpBfhBY/kLcdsndabSRm fNb0jCeI/gQb3hGlrzX1IQrkL3KHFoasASsGWmspIoxVqdDO2owe8wOQoCyynoFS5dnZ5AFJQjI C0GBTscxEH7si8qztYhwDLMEhCYqpIsbsF+DWlyrzlHv9vTM24XLvB0DRokRbrm88sZprIiunHg UFVST/D2oMDzHn93mgmkBncAEjE+jDJHqRP1mw3iqfb0zkRcJ8uK9WblCMbMtBaFS+Od1k/8QNp d X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr34725275pls.88.1536086020749; Tue, 04 Sep 2018 11:33:40 -0700 (PDT) X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr34725240pls.88.1536086020015; Tue, 04 Sep 2018 11:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536086019; cv=none; d=google.com; s=arc-20160816; b=hRgBPRwM8q8IuA8W7fEYpvrCYStLuONp2X8EV71n8AjnyrAhc8pkBDxQvPQO+Af6v6 0OLVMX0r5TvemYfOU6NJt/IM4frp1R6VJq13d/vcSA/z9BewtKtzaWYhHcOKy0R3dpac nYo+6uBkYOxHJkP8oCZzNhOBJC4+5GQHWAJSg7UviX9ecty/rRYS+4Q7glSEbMvvdDKY h433OFp3cbb4V3N4teKxzipkboh6ecye+CDgZavOp4MU4tqQvjk9ZKli5cTWJVuPGAic ZndLUVo5HwArwm5EBn95CqgocJeW8kdL92I9nc04tDdOhND1Bj2ElRN+CubeWz3ojijI KbZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:user-agent:message-id:date :cc:to:from:subject:dkim-signature:arc-authentication-results; bh=/1b21c7TXXIYptENM3vkWU/LhgwrOe4QldjnsHnHVgY=; b=ad6aCNvrDAdeAW9KTwOqnr8CTn303NBFvGummPKG2RsQPMGyYbeZhmvh0OTKHa38+q 3L9g49Wnnm4Wsco8vJTc61on7tqQNu0PDSnJbDWKKyFdZf6S+rrogRZkfUbZYfjlDkUV oKfRU6Df3ci+epGYvLSD7KwRAl7A0Ai26QbtiblAzUupRGCrjaxx5tMS0j+dfq4PrB+T 5sxKz872hijZBlSN9yfw67YSLkun5EoJepg2DvPrDT2/OWHLUsGgJksexMPLeYLY9U0J Jl1vmEBpoDL5k83JCNcmAObdUiTbqF64jw1Xo3OQeJ64Z+TH8ZfmqXVsmzEGzyaZtjyN RoQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lsmurEDi; spf=pass (google.com: domain of alexander.duyck@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=alexander.duyck@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o127-v6sor4823173pga.195.2018.09.04.11.33.39 for (Google Transport Security); Tue, 04 Sep 2018 11:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of alexander.duyck@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lsmurEDi; spf=pass (google.com: domain of alexander.duyck@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=alexander.duyck@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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-Smtp-Source: ANB0VdZYfn5ldnKv8+qots0aALnHztFQw63DqB20Kwb9i8RajiNV6IqGeg0++Mjv/GKOXH4Xo6y5eg== 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 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 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(-) --