Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp223250pxa; Tue, 11 Aug 2020 00:57:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBwXAx3Q1m2xOA+yCmYvgJJDUwW8PryKgYReJLxZxcvtXD8AC6y1FE6qgEsjnS/T36ukDB X-Received: by 2002:a05:6402:1d32:: with SMTP id dh18mr24612117edb.14.1597132637273; Tue, 11 Aug 2020 00:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597132637; cv=none; d=google.com; s=arc-20160816; b=Jy0IxdM7ZfiO+WLc/lztsO01EQ4X1n0xVxh7FflCxU+n8ooj8qaD+k7wv0GnP1cWkt MpXQVPvSZq2AJRaKaIO2pgX4g6mvfIXCHcj0Ih4BnzQ9b2522ce9LTtZLDOhTWPeFGUk +ZQClcL5+MyDRlj+DN67aCOWtGd8YYQa25TvXhE3epYQRn7n+1ERN1XoQKPKGb3WZ2HM A9ZHVA8Wp4I1aoWLLZSxt82Zz88EiPyrhn5XqT2ZpSjjPnXnVm9gvdFxgt+ZGx5lMaQa ERuiy64dor93l6NVnTmAFb4Lrfzhc2jUs/MKICyezIQS0E2tDXhVNGTDBzj2TK7m+Pgm E1UQ== 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=fFBKF5pNmHPCUTiiz5ByS96bNDhdQRH2575vuVENKws=; b=KzIBK6hzVFyIoDCWfLtfrSz3e9HebqO/bSOZzkeUGgJsDBosS3k1960R0wKtoWf2gI P/ZzuGKsP6K6MwGY8OvL9huFc9/1JjkoB4jLdRF1djqkeOpi22uSIFcTYRnz+/j/e/RF 0ZuY/5dVjoBHfF4MVGd9F4MdfuG6+J503sCjuEcKVbpRbx54P11+EWsvpTO98XHBB9PR /PkVqsaBbQ/9VrxwYfPnJCEzzRIoAqnvnsP3SOKAPb4NdGHa5zbrZmA+WW/0J9xyHdNA rigFGVCbIvchzH0V1AaZasa0h3KymUNfgji8DTZ+fwy5be1TyqLc/FDjMzI205cbcQlJ JSVA== 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 z12si12810950edp.120.2020.08.11.00.56.53; Tue, 11 Aug 2020 00:57:17 -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 S1728224AbgHKH4W (ORCPT + 99 others); Tue, 11 Aug 2020 03:56:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:59256 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728094AbgHKH4V (ORCPT ); Tue, 11 Aug 2020 03:56:21 -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 DACD9AB9F; Tue, 11 Aug 2020 07:56:40 +0000 (UTC) Date: Tue, 11 Aug 2020 09:56:19 +0200 From: Petr Mladek To: Paul Menzel Cc: Sergey Senozhatsky , "Luis R . Rodriguez" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] init/Kconfig: Fix CPU number in LOG_CPU_MAX_BUF_SHIFT description Message-ID: <20200811075619.GE6215@alley> References: <20200811073145.3457-1-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200811073145.3457-1-pmenzel@molgen.mpg.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2020-08-11 09:31:45, Paul Menzel wrote: > Currently, LOG_BUF_SHIFT defaults to 17, which is 2 ^ 17 bytes = 128 KB, > and LOG_CPU_MAX_BUF_SHIFT defaults to 12, which is 2 ^ 12 bytes = 4 KB. > > Half of 128 KB is 64 KB, so more than 16 CPUs are required for the value > to be used, as then the sum of contributions is greater than 64 KB for > the first time. My guess is, that the description was written with the > configuration values used in the SUSE in mind. > > Cc: Luis R. Rodriguez > Cc: linux-kernel@vger.kernel.org > Fixes: 23b2899f7f ("printk: allow increasing the ring buffer depending on the number of CPUs") > Signed-off-by: Paul Menzel Great catch. Reviewed-by: Petr Mladek Best Regards, Petr