Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1161135ybv; Thu, 13 Feb 2020 17:08:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy8g7mJjziEdn0pQn21X4iLnOvy/tSBp+3wdNboNm/gpmVERtR2Ya6BsZrzl5+Px5FIkOXb X-Received: by 2002:a9d:6443:: with SMTP id m3mr286260otl.20.1581642527415; Thu, 13 Feb 2020 17:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581642527; cv=none; d=google.com; s=arc-20160816; b=sAf+TMBtKFq+e3xw73t/eHih8SquJs+KjH2emZViMdBu/+5fqZu45z041+rzGQif92 PVPl/NXVCel/bl56D690ie5K3F4jFCUJtkBuiRrLdNVs48lw0gu1FnXvCYEjYRW/0b7+ t3rmAeJlKz1WxmPUeSIla+h1ogW/WNK22x+HO1BI5hU8hT5+rA4hMTctW7ZSorwWf8XV tMLlZz/RAIq0RLDwArzx4c4H186XYQZEOjBeJXpQ4HqzsF3Bi9880soBioj5klj6ZV7p WMnFme0aJdgB7LEZiChLpNNy4kw8GJ8nGzmHgvTan59gvU/zduhmgHBBsV7R8iEN8vTP a20g== 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:dkim-signature; bh=3CPCapu1GC3zKeozUVk/96Rk3HOBQ2hayAYwRebPM/Q=; b=NJquBfkt4xNeMI32e4hA/qush3fFqvsqyTcntSo0vfRvdXKyoxm6FlKsNN2j0WBR23 99zMKCG7hhmSSiHQbs789JNsRJJKgC9jY6/6X6hDvolViJQXd9Kkd/lAq6l8djX+NXBm Fm+gscm0oUZmKJtmSRSZUBnPKXoxMCHl3NcoZYr1V2HZFMUd5n6diUFvGyCEmp4wCPnR Jzj5lOEKVYEgGJ638fB2hoMbPaJXzSnnQiMbfnbaqp7kvA6uxUXPtkn2ttzUxljLV1ns tpghJ9YAHI+qv53POv7qsCXCgFx0RsIEuXCWEqKIHbfMPqln6TNOeOKI58l5xbZt2rJX Fptw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HFpHZ5je; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si1992864otf.271.2020.02.13.17.08.34; Thu, 13 Feb 2020 17:08:47 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=HFpHZ5je; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727988AbgBNBH6 (ORCPT + 99 others); Thu, 13 Feb 2020 20:07:58 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37294 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727609AbgBNBH6 (ORCPT ); Thu, 13 Feb 2020 20:07:58 -0500 Received: by mail-pl1-f194.google.com with SMTP id c23so3052930plz.4 for ; Thu, 13 Feb 2020 17:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3CPCapu1GC3zKeozUVk/96Rk3HOBQ2hayAYwRebPM/Q=; b=HFpHZ5jey714qrgQOWFv5LsO1c0xeYgTZ6kfhpdZ5Et0raLU1SaiBPFLShRc/8A/1R sTjlilcCAlpFlegVgoq8H7ksteFvpS15E2LVmoGkXb6rAdMIum8M22TTqjddmuvRQ5II 8SznGO6UmaLebdD0335Ff16adN3Ad7DoVGULlf33PCKQ/EnyFbL0IQFzpOH9CKDJLb/7 74qfpc+EGryGmVB4bw+eTXU12t4aiEYPdzaDUoMJXVTDLjUgdv/+VP4GSUn/JPTHtX9V 9TUD7s99AzmksXTxEUGoJv7HOpRa8pPW4AyV2ujGGd1SC5zKTgor12o+0B2w5JJ9TpYQ 4oSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3CPCapu1GC3zKeozUVk/96Rk3HOBQ2hayAYwRebPM/Q=; b=DscaczdBatZHohBhnN4Z4vh6Q9nvcfW5PyStZFQ9n9JRUtSITK64n48AYhh1T+2R71 9UKOm0LLxDKu/MGWkNhzYVCH9Wn0Q2l8ECYCyRDljtdyLlsc3NVFK6Lhh93nRiJ4kJQr scz1L7j07E9L3Ru5ICY1X34Wn8jGEISoFrZWsMIjJsgQqxpP0hAFnc6ZguP6pbUmp3jc /HM7p3PEm283S76d0K7qNLGJp6vyndEF68l72bxZiIFVHPSzq49wH/DYZ2Fkk2ve4I6V WvQn7olAEI1ZjrLc3t9Pr0zoGktig6r/kdPk3Hd+W2lbkedIYbgDCeFB45EzDzieRrug hqEg== X-Gm-Message-State: APjAAAV+jKaGk/m7vc48OUZkM7BMS959KaTeh8uRda/z48bzLDz33gr2 9PMIXywjWrYls2Bc3SxIzFPa/jxU X-Received: by 2002:a17:902:694b:: with SMTP id k11mr693763plt.334.1581642477752; Thu, 13 Feb 2020 17:07:57 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id 3sm4468953pfi.13.2020.02.13.17.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2020 17:07:56 -0800 (PST) Date: Fri, 14 Feb 2020 10:07:55 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: John Ogness , lijiang , Sergey Senozhatsky , Peter Zijlstra , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] printk: replace ringbuffer Message-ID: <20200214010755.GA13877@google.com> References: <20200128161948.8524-1-john.ogness@linutronix.de> <20200205044848.GH41358@google.com> <20200205050204.GI41358@google.com> <88827ae2-7af5-347b-29fb-cffb94350f8f@redhat.com> <20200205063640.GJ41358@google.com> <877e11h0ir.fsf@linutronix.de> <87sgjp9foj.fsf@linutronix.de> <20200213130720.j4e5qv37am2bapup@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200213130720.j4e5qv37am2bapup@pathway.suse.cz> 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 (20/02/13 14:07), Petr Mladek wrote: > On Wed 2020-02-05 17:12:12, John Ogness wrote: > > On 2020-02-05, lijiang wrote: > > > Do you have any suggestions about the size of CONFIG_LOG_* and > > > CONFIG_PRINTK_* options by default? > > > > The new printk implementation consumes more than double the memory that > > the current printk implementation requires. This is because dictionaries > > and meta-data are now stored separately. > > > > If the old defaults (LOG_BUF_SHIFT=17 LOG_CPU_MAX_BUF_SHIFT=12) were > > chosen because they are maximally acceptable defaults, then the defaults > > should be reduced by 1 so that the final size is "similar" to the > > current implementation. > > > > If instead the defaults are left as-is, a machine with less than 64 CPUs > > will reserve 336KiB for printk information (128KiB text, 128KiB > > dictionary, 80KiB meta-data). > > > > It might also be desirable to reduce the dictionary size (maybe 1/4 the > > size of text?). > > Good questions. It would be great to check the usage on some real > systems. [..] > I wish the dictionaries were never added ;-) They complicate the code > and nobody knows how many people actually use the information. Maybe we can have CONFIG_PRINTK_EXTRA_PAYLOAD [for dicts] so people can compile it out if it's not needed. This can save several bytes here and there. -ss