Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3736860imm; Mon, 8 Oct 2018 08:43:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV62z4sNIPhuepM1Fjc5JZAPN0QHoEK03jUBUCoHBhgEzsmJhyvYWVKh3BPG0rHzWSuo/EWw2 X-Received: by 2002:a17:902:27a8:: with SMTP id d37-v6mr12916006plb.318.1539013432393; Mon, 08 Oct 2018 08:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539013432; cv=none; d=google.com; s=arc-20160816; b=b3cwfLGSiBbKHs4nmglMoJnSMNeHtyNlJaYFfmd+bteqnaH/tudW8qXpz6P0DXU2KY GvXTuhcQ+P4q3FAyi8kT2yMeVky+8qNNmCeul1MOfAyShuuJFbqAWnsLY6CSi3vKYNKF C7LZ204ekHqZoLrR/B0rCJRoMym06/RubBJMav2+DlQfLvIzOJ4DY8XcWEYS19yNlOqn SLb+6AmIfUEziiTy2PHOWZHuZ+Q5LdhDTuRQHC8sAKSEHaTWAl2Gi+ykMEVSDUR9osLt 5EUjPRpHK7mH8bmqw4rY2FCEV2BLn+Grkvn6ASjsusMKapNFmBxVzmpY1sTfB3tPvjf7 hAdw== 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=NR1ZQp7I2lVQjC565fLQre2i+sHaUFqhRuKBG3iZT4k=; b=pVa5WnxTXGrY8IQOgWUT8+UgBGGeoo1adLPAK/N9Gvm0dq0Q82ZGtQ8SyyA1WRncM3 j5TXYqqNW0MWcFiQSJOYBOGhkAENlQnWBFavGO376GZIB2kU+JIeTs1JJVl0G/6eKun7 WInOFvRDMm+ak9xL5YY/tt1z722ygdJt69L37VkmROTZeLWC0+cuNLfpyFs5qZDLokW5 lZV/ae7NgOPNqGNNi1dd/5aTeZGBo72HdLpaiVfGzf+B/I1eeSXTFayH3m6Fkzjcj6Ls S/n+W4ZNhnGiJGH4Z+EJKQfiUnToIKlR0IZbrICGAl/+PvVDuGQuqLS0PAPSZIRCJmNI kopQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h88-v6si19278588pfk.78.2018.10.08.08.43.37; Mon, 08 Oct 2018 08:43:52 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726906AbeJHWzk (ORCPT + 99 others); Mon, 8 Oct 2018 18:55:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:44602 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726159AbeJHWzk (ORCPT ); Mon, 8 Oct 2018 18:55:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A31FDAF58; Mon, 8 Oct 2018 15:43:18 +0000 (UTC) Date: Mon, 8 Oct 2018 17:43:17 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: Tetsuo Handa , Sergey Senozhatsky , Steven Rostedt , Alexander Potapenko , Dmitriy Vyukov , kbuild test robot , syzkaller , LKML , Linus Torvalds , Andrew Morton Subject: Re: [PATCH] printk: inject caller information into the body of message Message-ID: <20181008154317.2owdxq7y6kie5sxh@pathway.suse.cz> References: <20180914122217.GA518@tigerII.localdomain> <7dadfa8c-1f69-ae0f-d747-dbbc9f97c2b6@i-love.sakura.ne.jp> <20180928090939.GE1160@jagdpanzerIV> <3b378c7d-c613-4a8d-67f8-946fac8ad0b0@i-love.sakura.ne.jp> <20180929105151.GA1392@tigerII.localdomain> <91efcff8-dc6d-b7b4-9ac8-2f3882289f95@i-love.sakura.ne.jp> <20181001023721.GA6409@jagdpanzerIV> <880ef52f-dff7-af91-5353-f63513265ffe@i-love.sakura.ne.jp> <20181002063851.GF598@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181002063851.GF598@jagdpanzerIV> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2018-10-02 15:38:51, Sergey Senozhatsky wrote: > On (10/01/18 20:21), Tetsuo Handa wrote: > > Maybe "struct printk_buffer" after all becomes identical to "struct cont". But > > I guess that even 16 printk_buffer-s is practically sufficient for 1024 CPUs > > system, and allocating NR_CPUS printk_buffer-s will be too wasteful. > > NR_CPUS buffers is quite a lot, indeed. Maybe we can do something like > NR_CPUS/4 + 1, etc. Kconfig option will be super hard to get right for > distributions. If people who wrote the code didn't agree on the correct > number of buffers and passed it to the distributions, then it's a good > sign than distributions will have problems picking up the good number as > well. I am afraid that only some testing or real life experience might tell us what number is good enough. The good thing is that it could only be better than the current state when we have only one cont buffer. Also I would not be so much afraid of the per-cpu buffer. We already use 16kB per-CPU for printk_safe and printk_nmi. One more kB should no be that big deal. Best Regards, Petr