Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp271617pxa; Tue, 11 Aug 2020 02:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3deZsbcf30xKRls0Oo+eNFkojGNSo+lNCHUss35YCQzLuN9eB7SutYtOLF6yumcxMJRP7 X-Received: by 2002:a17:906:2cc2:: with SMTP id r2mr25035099ejr.482.1597138398284; Tue, 11 Aug 2020 02:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597138398; cv=none; d=google.com; s=arc-20160816; b=aX0WhAmUnxMqrpbkI0ayEawBXfQQjuALA6J4sHcnr/oPbLTYcVyI7ocGaQnejiwmyF RTl9RnVpjNSbLm8aggoAtlkC0mGRdQKpG1Zxz6rqzIKBoLaQzLKGwVqowOfLTLc7gc7K 3+6wpOcgNjWvRaNUxsv8aEDxE7x48APNxrAMl4a+bid7Qv2psHDPZi+eMs46/kjRtSD6 Rm5WvU2KMwCK2q7t9qrmfNBleKJOUQuahMQIi1QaJTEuC5zM56Qw/gkatyiCCC75TvIs GrGN/Ze5XngJtwANmR0WLDNXmoB+ZLhHZgbQRWjt+U1iLwVDxEk5ywBtJ5zrBprvbmTF 71XA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=3ZUbndrNKd+SOsIS3ku2qdsxwXykGLq2qEVVkd8xMN0=; b=xYjJjjIfNOyqzuQQ2zXrhoUlQGKwKcx8Xo7hq3WmRZzi6BKNI9qPlxEXMRDQ0Z2cjL cIXAaAsyixREyF7cg/MdU/PzGX0A9/T+oljmyaClpkgoG150TMblbelJJNbspgbuKhgl G5oahHdTVUBT4aA5oXFQF3SAE4mGnCFJTNAdQwzb2rmXEKYFVBuKhAtxBV/+r/qsJzh/ yePh2gXFj9IPFCoJ2pjDZPA/6HsdYcjrVH9+K8eiO1AssmPYnAc6tg2PrLgjz0gmr6ss R9z4jeHP4aMJmXOJc/l9JYfLg6ZfmJgyBGVFgOzOpCmmDQ6WnjWEvfUwHNNJ5DUpvdz6 54kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 si17si12036529ejb.599.2020.08.11.02.32.54; Tue, 11 Aug 2020 02:33:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728461AbgHKJ3i (ORCPT + 99 others); Tue, 11 Aug 2020 05:29:38 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:44249 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728224AbgHKJ3h (ORCPT ); Tue, 11 Aug 2020 05:29:37 -0400 Received: from ersatz.molgen.mpg.de (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id F1A95206462B4; Tue, 11 Aug 2020 11:29:35 +0200 (CEST) From: Paul Menzel To: Petr Mladek , Sergey Senozhatsky Cc: Paul Menzel , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] init/Kconfig: Increase default log buffer size from 128 KB to 512 KB Date: Tue, 11 Aug 2020 11:29:24 +0200 Message-Id: <20200811092924.6256-2-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200811092924.6256-1-pmenzel@molgen.mpg.de> References: <20200811092924.6256-1-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Paul Menzel Cc: linux-kernel@vger.kernel.org --- v2: New patch in series. Is sending it to linux-kernel enough? If not, who to send it also to? init/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index 9dc607e3806f..13df63517cc2 100644 --- 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. @@ -692,6 +692,8 @@ config LOG_BUF_SHIFT by "log_buf_len" boot parameter. Examples: + 19 => 512 KB + 18 => 256 KB 17 => 128 KB 16 => 64 KB 15 => 32 KB @@ -718,7 +720,7 @@ config LOG_CPU_MAX_BUF_SHIFT with more CPUs. Therefore this value is used only when the sum of contributions is greater than the half of the default kernel ring buffer as defined by LOG_BUF_SHIFT. The default values are set - so that more than 16 CPUs are needed to trigger the allocation. + so that more than 64 CPUs are needed to trigger the allocation. Also this option is ignored when "log_buf_len" kernel parameter is used as it forces an exact (power of two) size of the ring buffer. -- 2.28.0