Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1031548ybm; Wed, 27 May 2020 14:19:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRozjhBy5Du4IDRiO1wfCo1YbVCWaOCQ5KEeJ40as1yDDRTePMH1VE9nAjhMK7Yre49f43 X-Received: by 2002:a17:906:934e:: with SMTP id p14mr239010ejw.494.1590614393566; Wed, 27 May 2020 14:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590614393; cv=none; d=google.com; s=arc-20160816; b=qZCr2y1qFe0aR0Dlh/quduQ4c+KDnEyBjyPz70o/5N63zyam7wxerrpuayCXq7SZ08 6lxIB24o/kmIKbFslhuAh0vCsUrIzUTrrQpBB6jelk3GcI3S+ZfDKTysYCWWsbP4+5d8 lDgKMUXREY4D4Mub9juMXum32LcZyuCIXEtfDiorERifI017bvsyliBXTdg4yoM5UG2w atO/2vLUQTbLYfbvr1g3bqI4vQt0s8Fq57aP4L0niiwL6291lyKIr0gK7HPvhlB6vIcg mocKMC/Kh/TKvEjGelVf4hMySAEQR0iEqsaCYzu1LMpTHRDzSTu7IRyxbH6ynI6PovbU Hg4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OQpIJWMudHYzeYVJAX5TAsaN7KlVrc6tTOWAA64PC+4=; b=sbLRqCsi1RRH2471cfvAo9mhkkoTmbC894fb50mqcsA5SasVr7pnQEE1uYEI1LuMq9 w9gwtshhRdIIQ6+9SPtNemluAqEwEcIc6c/l8pOT7R7hRpY6wOHMNcd5wt5xUWk1gQXL W200ygzyW807aAiv1p8f3JuSvJ9nZJuO6zwPufcAsv6APfdYndaZJzHpwc3ySvMtf4W2 RrNN37L0pJAZ3WL/BaoUCyMSxGsFrPrS02PBCW7VSmTkwg3aYVN3FzvYlatEkH4ddL+s mCHun50nspbO2UDNEWO7aZyhbmi+rmnb4iHIJNiZLCybkJUZWHSBK6cyF/GfU9Rvtl1m oxYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iiQHWCci; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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. [23.128.96.18]) by mx.google.com with ESMTP id y13si2307997edm.63.2020.05.27.14.19.04; Wed, 27 May 2020 14:19:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iiQHWCci; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S2387469AbgE0VSm (ORCPT + 99 others); Wed, 27 May 2020 17:18:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387412AbgE0VSm (ORCPT ); Wed, 27 May 2020 17:18:42 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57F59C05BD1E; Wed, 27 May 2020 14:18:42 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id s18so13769364ioe.2; Wed, 27 May 2020 14:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OQpIJWMudHYzeYVJAX5TAsaN7KlVrc6tTOWAA64PC+4=; b=iiQHWCciz2fx1p5e3Ax1s0ebQUYscbu3DHxh5vhMTs51fzQY4eRqWuZwLGrNVO7ljo A1gz+WbDPEL/vzgBc+W1Jp+YI86kaMBy6fQ1J8oQGAYP3jx3X/dydph7LHKsjZMcKQ7p GoxlqkETGVhWIfEP3XOfTHoDM1dycQWH7SGh2nDHw2hZ4d/WD1wDiygoEzVbo43AYsaX R044I8YtHcLpwGMc8PsH7MgGaZPi81X/3EASGPTwdlRu5NleQ+NFU/12tPOiBYFinBga kxZ0Ue9uHcBfBJCgvTaMdwt0PpfJIPmKggXfx0aGdbRw7uOtm+vbPyRzlVOr8GeX610E 2P4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OQpIJWMudHYzeYVJAX5TAsaN7KlVrc6tTOWAA64PC+4=; b=Rr/9m4tJ1eeRQn0QTSNY2bDBwpoHI9N6AnjvCC+9ehxzgPgqPHX7gxPiUXvkrJEfm8 jLmZTft9p4hLeLy8qzXrqEXgyqU+1100oP0IL+qMg7cMl2wCpvSlC+FnAhYBanz7SOmh szdwZcRD+MWwfTD+Jv8iCIBrzQGBsjmnet9Bw3+Nwd84FFfN7pAWVsXFqzEDNQdzX39U a8CM/9EEbzKJuqilEYe5JFBwaxd7sjCtWzQ7jA5EO8zDi0rnY1stRooixllSG1MpMGn7 3zzo6uM4SELP8qHeBYqp4kKfQHCHjBRJvB2fjy84YnOAincCCXsvzCPv0qrJgRNt1fph 4Hlw== X-Gm-Message-State: AOAM533OafVq3aIXgiuXIHBILaLoxpLAEZfLmDxGJzc0ORB0jVCzOrOX Uo0LxFLXudlYEiDyzQfHelqvIQN6RaIWMj+eoeI= X-Received: by 2002:a6b:5f06:: with SMTP id t6mr12961446iob.88.1590614321551; Wed, 27 May 2020 14:18:41 -0700 (PDT) MIME-Version: 1.0 References: <20200527173608.2885243-1-daniel.m.jordan@oracle.com> <20200527173608.2885243-6-daniel.m.jordan@oracle.com> In-Reply-To: <20200527173608.2885243-6-daniel.m.jordan@oracle.com> From: Alexander Duyck Date: Wed, 27 May 2020 14:18:30 -0700 Message-ID: Subject: Re: [PATCH v3 5/8] mm: don't track number of pages during deferred initialization To: Daniel Jordan Cc: Andrew Morton , Herbert Xu , Steffen Klassert , Alex Williamson , Alexander Duyck , Dan Williams , Dave Hansen , David Hildenbrand , Jason Gunthorpe , Jonathan Corbet , Josh Triplett , Kirill Tkhai , Michal Hocko , Pavel Machek , Pavel Tatashin , Peter Zijlstra , Randy Dunlap , Robert Elliott , Shile Zhang , Steven Sistare , Tejun Heo , Zi Yan , linux-crypto@vger.kernel.org, linux-mm , LKML , linux-s390@vger.kernel.org, "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 27, 2020 at 10:37 AM Daniel Jordan wrote: > > Deferred page init used to report the number of pages initialized: > > node 0 initialised, 32439114 pages in 97ms > > Tracking this makes the code more complicated when using multiple > threads. Given that the statistic probably has limited value, > especially since a zone grows on demand so that the page count can vary, > just remove it. > > The boot message now looks like > > node 0 deferred pages initialised in 97ms > > Signed-off-by: Daniel Jordan > Suggested-by: Alexander Duyck This looks good to me. Reviewed-by: Alexander Duyck > --- > mm/page_alloc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index d0c0d9364aa6d..d64f3027fdfa6 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -1819,7 +1819,7 @@ static int __init deferred_init_memmap(void *data) > { > pg_data_t *pgdat = data; > const struct cpumask *cpumask = cpumask_of_node(pgdat->node_id); > - unsigned long spfn = 0, epfn = 0, nr_pages = 0; > + unsigned long spfn = 0, epfn = 0; > unsigned long first_init_pfn, flags; > unsigned long start = jiffies; > struct zone *zone; > @@ -1868,15 +1868,15 @@ static int __init deferred_init_memmap(void *data) > * allocator. > */ > while (spfn < epfn) { > - nr_pages += deferred_init_maxorder(&i, zone, &spfn, &epfn); > + deferred_init_maxorder(&i, zone, &spfn, &epfn); > cond_resched(); > } > zone_empty: > /* Sanity check that the next zone really is unpopulated */ > WARN_ON(++zid < MAX_NR_ZONES && populated_zone(++zone)); > > - pr_info("node %d initialised, %lu pages in %ums\n", > - pgdat->node_id, nr_pages, jiffies_to_msecs(jiffies - start)); > + pr_info("node %d deferred pages initialised in %ums\n", > + pgdat->node_id, jiffies_to_msecs(jiffies - start)); > > pgdat_init_report_one_done(); > return 0; > -- > 2.26.2 > >