Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp316760pxa; Tue, 11 Aug 2020 03:55:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsWRWJk3L/Q5AtziZbDK+41+G9CN8yrBFQ4AzzO85V0/LYoKctgNUlVTMPUq0enUFuoH66 X-Received: by 2002:a17:906:4356:: with SMTP id z22mr26895697ejm.414.1597143323295; Tue, 11 Aug 2020 03:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597143323; cv=none; d=google.com; s=arc-20160816; b=OGFTK0nO0hj6bAhbPyqdWX36L1mPfN+pedrIv8F8dByRu3z1uzRXbDTrA+3Mq6UFrZ ZiQImC1dPHZm9Wgr/YqCfFRBOQuxO/NSdP+2SL+Srb1x1gjzAMeP7yxwHScLagUNZK9s x9O0WmQkapS71G6RbHHrMj6/o8GBvWCxqFkG3bnVBY+CBm3ZEbUTny5GCjzk883Kd9z5 9eVg+BARqqSOtWFCxaZLt1SuazCjp35I5RUfC3Vg4igYTRRBT6CqhwvOlAsuiGHQLEH7 C3Bgv2lXwSgOzEZgYwx1woeF57YBkLJySgw2nsegEEoEvk+hxrblqgzjB8JP7OMwDhr6 gr/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mecM+dLeg7AO0H425W+e2XNwu3Z4xKwl4GWFu+3CjXY=; b=dlJGE60trrQWyM6wwPD2U1irmmw9apVtEHBQYgmb5gUvEc9fnuOGLbzO961qfV/5PR DxI54wKqAJaLRDJf3oauvCi4hkk1HH97l/tmhb0aM9Xhow00rudUIoWfhO5cvRxXbcbS 69P+GIszh4uANUwUaotyxkKhEH+T4xWkzHRW2hG0g3buO+VZQApo4zSjUbdgnn09rj+U 0Nc0KKn8mXHJ6OJtHZmXkS/FKqLDeybx13lqq1OjbuVwEuLu0S+c0VrFgCGzOWyDVDXC TPhSl55x9Kc6Yrxm2QCScBv+mhp4zTPGq/9VbaNcoKokKpKpPZ2spKho5mMx5SAQqleE KY6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-embedded-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-embedded-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq24si12353351ejb.639.2020.08.11.03.54.41; Tue, 11 Aug 2020 03:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-embedded-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-embedded-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-embedded-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728548AbgHKKxz (ORCPT + 99 others); Tue, 11 Aug 2020 06:53:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:41820 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728326AbgHKKxy (ORCPT ); Tue, 11 Aug 2020 06:53:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D8A7AAB3E; Tue, 11 Aug 2020 10:54:13 +0000 (UTC) Date: Tue, 11 Aug 2020 12:53:52 +0200 From: Petr Mladek To: Paul Menzel Cc: Sergey Senozhatsky , linux-kernel@vger.kernel.org, John Ogness , Linus Torvalds , Steven Rostedt , Andy Shevchenko , Greg Kroah-Hartman , linux-embedded@vger.kernel.org Subject: Re: [PATCH v2 2/2] init/Kconfig: Increase default log buffer size from 128 KB to 512 KB Message-ID: <20200811105352.GG6215@alley> References: <20200811092924.6256-1-pmenzel@molgen.mpg.de> <20200811092924.6256-2-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200811092924.6256-2-pmenzel@molgen.mpg.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-embedded-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-embedded@vger.kernel.org On Tue 2020-08-11 11:29:24, Paul Menzel wrote: > Commit f17a32e97e (let LOG_BUF_SHIFT default to 17) from 2008 was the > last time, the the default log buffer size bump was increased. > > Machines have evolved, and on current hardware, enough memory is > present, and some devices have over 200 PCI devices, like a two socket > Skylake-E server, resulting a lot of lines. > > Therefore, increase the default from 128 KB to 512 KB. Anyone, with > limited memory, can still lower it. > > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -681,9 +681,9 @@ config IKHEADERS > kheaders.ko is built which can be loaded on-demand to get access to headers. > > config LOG_BUF_SHIFT > - int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" > + int "Kernel log buffer size (17 => 128KB, 19 => 512KB)" > range 12 25 > - default 17 > + default 19 > depends on PRINTK > help > Select the minimal kernel log buffer size as a power of 2. Honestly, I do not have experience with changing the defaults. People hacking small devices might complain. Well, this can be solved by increasing the default only when BASE_FULL is set. I am personally fine with increasing the default when BASE_FULL is set. The amount of messages is growing over time because of increasing complexity of both the hardware and software. Fortunately also the amount of available memory is growing. Well, this should get discussed in wider audience. Adding some people into CC. JFYI, it started with report of lost messages, see https://lore.kernel.org/lkml/264bfbae-122d-9c41-59ea-6413f91bd866@molgen.mpg.de/ Best Regards, Petr