From owner-freebsd-hackers@freebsd.org Thu Apr 19 20:44:17 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E384AFA0C03 for ; Thu, 19 Apr 2018 20:44:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4705C7907A for ; Thu, 19 Apr 2018 20:44:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w3JKi5SF030720 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 19 Apr 2018 23:44:08 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w3JKi5SF030720 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w3JKi5fF030719; Thu, 19 Apr 2018 23:44:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 19 Apr 2018 23:44:05 +0300 From: Konstantin Belousov To: Colin Percival Cc: freebsd-hackers@freebsd.org Subject: Re: RFC: Hiding per-CPU kernel output behind bootverbose Message-ID: <20180419204405.GE6887@kib.kiev.ua> References: <01000162df15f856-1e5d2641-2a72-4250-8d8e-adcd47bc5db4-000000@email.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01000162df15f856-1e5d2641-2a72-4250-8d8e-adcd47bc5db4-000000@email.amazonses.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2018 20:44:17 -0000 On Thu, Apr 19, 2018 at 06:06:21PM +0000, Colin Percival wrote: > On large systems (e.g., EC2's x1e.32xlarge instance type, with 128 vCPUs) > the boot time console output contains a large number of lines of the forms > > SMP: AP CPU #N Launched! > cpuN: on acpi0 > estN: on cpuN > > Having 128 almost-identical lines of output doesn't seem very useful, and > it actually has a nontrivial impact on the time spent booting. > > Does anyone mind if I hide these by default, having them only show up if > boot verbosity is requested? The 'CPU XX Launched' messages are very useful for initial diagnostic of the SMP startup failures. You need to enable bootverbose to see the hang details, but for initial hint they are required. Unfortunately, AP startup hangs occur too often to pretend that this can be delegated to very specific circumstances. Rest of the lines you pasted are normal device attach messages, so it is not clear how would you hide them without ugly hacks.