Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2014449ybb; Sun, 29 Mar 2020 20:00:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsUoJ3N20cEg4SKJDpOJy2pJwNRQ5s4Dt/aiXUQ3dUCDq41T97FohqTnKEvBVplRlG1iN3p X-Received: by 2002:aca:3c82:: with SMTP id j124mr6557120oia.89.1585537236405; Sun, 29 Mar 2020 20:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585537236; cv=none; d=google.com; s=arc-20160816; b=r09X1yYrpk7qjd+OGiirTRagFO/be4FrSAqfNPwlC3OV/WFre0SjAfQS0huL0H36LY M3ZA/40GJtXxDUL6RmhUJDX/1pzKkootSjZAz/CKuLYykrtAreHkiNC/zJm3Xrs1WzBZ VhFBod/gFf5gN1R5QPR7lKmrIid4Yx5jI4qyeEE7v4qW8UYN0ajnWLHh/DVOwM+b948m oFl7xEll3m3/out2Add+WK0DJwpJaUelasoXLkmO9WujtPqV382/X+9RD2G6U34N870/ YqBaz0V74RNVrJs+uyDnYFkij249bLKaq5nGoj/C5gMM0hbrs3esSI/AlOD1z7lxLdFQ ySHg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=NhjPp0hAekGuC1qMQCQiEBENS7NjExpXR6hbG7ha91E=; b=B+3LWACeMQ3jdu5j2u4+IskF9GJ34XkAc3oj1awJO+WfQb7KZPIuK0NKF20jIOoCCb uvgfS3wL4a65Cyki7h9+PsRZ/+nWhH6vQFylGal6VTmQv+H1CWdxSRG/18PCuMqLuyKn JJjX9iewoCo4jmnJ4dpH+/GsnlEDOdAMEVADVU2nZsvg32G4gckW3qPLGTa8+wKwx+X2 owkNLX5NidBGQUo2Qa7OXH+tn0s1BlLxmNK/IZ+IMh5jpd6scZAyWbmIHUpUQRbTrI4/ Sc6sE46ISW7QyY0C7TjzXmcwIlo3wMvAQfteqa9Y68HJJSBbAsvwQD8ZzNoWVCjs4BwE ncUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=l1lvLll8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b19si7619426ots.224.2020.03.29.20.00.24; Sun, 29 Mar 2020 20:00:36 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=l1lvLll8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729309AbgC3Czl (ORCPT + 99 others); Sun, 29 Mar 2020 22:55:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42308 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728965AbgC3Czl (ORCPT ); Sun, 29 Mar 2020 22:55:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=NhjPp0hAekGuC1qMQCQiEBENS7NjExpXR6hbG7ha91E=; b=l1lvLll8MgZ41EmxSijmHg5b/N /F8icc0CCuHzvqbo+GyvQyfk+7lqelwE7fv5PGDungOmB0e/JKJ5kF6k97WGjYs95T6YeWR0cbD8m bVTDvStxXLR/TSgVGIbOPJwGPD2G/BhoROH6vu0FBp5mCWbrrYWjAswhTyfjcGCq2x8ptN80UEL7o qy+idSxaDYmgZkTyyvyTWgszI8SqvJCP15bBU4R4JsJeeEjaclm3U+rveJjCEkppRR/fxhw4Jdu0g mVN1298GVPRBmbmaS+kBxErnhAKlyvbCEhfBj1jDc356vVFDZxZJ7N7UeS1BX6fLISh4X1u7N8Os5 qbkP4hyQ==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jIkaS-00066h-On; Mon, 30 Mar 2020 02:55:40 +0000 Subject: Re: why does "mem auto-init: clearing system memory may take some time..." takes about 14 sec under 5.4.17 but only few msec under 5.5.1? To: =?UTF-8?Q?Toralf_F=c3=b6rster?= , Linux Kernel References: From: Randy Dunlap Message-ID: Date: Sun, 29 Mar 2020 19:55:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/20 9:52 AM, Toralf Förster wrote: > I do wonder (and I'm surprised) about increased boot speed according to dmesg for thi9s hardend Gentoo Linux system: > Linux mr-fox 5.5.1 #1 SMP Sat Feb 1 18:25:21 CET 2020 x86_64 Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz GenuineIntel GNU/Linux > > Under 5.4.17 I do have usually 14 sec to wait: > > [ 0.497171] mem auto-init: stack:byref_all, heap alloc:on, heap free:on > [ 0.497171] mem auto-init: clearing system memory may take some time... > [ 0.501549] Calgary: detecting Calgary via BIOS EBDA area > [ 0.501550] Calgary: Unable to locate Rio Grande table in EBDA - bailing! > [ 14.083235] Memory: 131812972K/134101088K available (12291K kernel code, 1400K rwdata, 1912K rodata, 1272K init, 2040K bss, 2288116K reserved, 0K cma-reserved) > [ 14.083342] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1 > [ 14.083350] Kernel/User page tables isolation: enabled > [ 14.083403] rcu: Hierarchical RCU implementation. > [ 14.083404] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. > [ 14.083414] NR_IRQS: 4352, nr_irqs: 928, preallocated irqs: 16 > > but with 5.5.1 there's no wait?: > > [ 0.000000] mem auto-init: stack:byref_all, heap alloc:on, heap free:on > [ 0.000000] mem auto-init: clearing system memory may take some time... > [ 0.000000] Memory: 131812876K/134101088K available (12291K kernel code, 1412K rwdata, 1936K rodata, 1260K init, 2012K bss, 2288212K reserved, 0K cma-reserved) > [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1 > [ 0.000000] Kernel/User page tables isolation: enabled > [ 0.000000] rcu: Hierarchical RCU implementation. > [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. > [ 0.000000] NR_IRQS: 4352, nr_irqs: 928, preallocated irqs: 16 > [ 0.000000] random: get_random_bytes called from start_kernel+0x4a8/0x659 with crng_init=0 > > Do I miss something? (The kernel config was derived via "make oldconfig"). Hi > Toralf, Curious/odd. Do you have the kernel .config files for 5.4.17 and 5.5.1? Looks like it would have to be a config difference AFAICT. -- ~Randy