Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1596863img; Wed, 27 Feb 2019 02:04:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IYOhLa4QAntGa/PfYnjGWTHQRElf6yY/uKnKv3cXNwOXbZ6MSc1XQ14CU1cYK5fWwsM5DZK X-Received: by 2002:a63:2c8b:: with SMTP id s133mr2156059pgs.448.1551261842400; Wed, 27 Feb 2019 02:04:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551261842; cv=none; d=google.com; s=arc-20160816; b=tI+GxN/huBa+fUXGtmaE4JYOoaae4qAqf0zCZo4bWUGTqBw/RVS9ETFO33yRnAcmp3 //XvFac8aLDC/u1JcmAKddm5z+uAkQQRYRYZ19WwwrEQaJ+7Jmjbov1FxzXe8S4SyMoy aHvrxC5QTLI6cmAqeP/ICtiiQJQt2mUSvZvvztO/ByyUyY6l/BGFeFg7oEpmd4U9VTkd oeyHVUgOmlXm/H9xoMyP47/YyxsIYK30Her5R6KdxAzOeQU0kr2ANgYGJoJGey8skIqn d6of6dqmvleV5hi8AH8YhsZZRyzjfZfnd7rCvh+Nzenpsx4ruUwzZv8GcVZS6g6wbw81 H49A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=G0MTs/ZJ8F5r2/McnDbuU7tWcwQwa8OTQQ+lbMojU4g=; b=YsEt9k4KuveMGmtg/cjkNY0kxfBGNYtVn0u0E9nq+iZmQWSB9GpToxH8l4Edf9tL+P GlBlx4lKx2b2B5DOjvhT9i3r5Pg0HdgCWvdxAwHyoZhizwRBxXywH9M5eLbHB7gKDgtE po+x9R0U2WMC1AJWY3rNCbRu3LfvC+FduvSrvSsPk1dydMAqg4KGW/BdufMhkI5b6Fdc CUDNu75azUqNp11i5pDEI81UrEa5to3yyIeS3BrHDFksEvAMRYsA4uBa9l8xefjnHzN2 +YbWzMYVEcBd2xr8nR6vPRkvPUotgZUvibGux77xnHyaqKxJT8MgXHHwSHcsE6u085uh 8bGA== 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 k63si14631277pgd.26.2019.02.27.02.03.46; Wed, 27 Feb 2019 02:04:02 -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; 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 S1729912AbfB0KDJ (ORCPT + 99 others); Wed, 27 Feb 2019 05:03:09 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:48298 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbfB0KDI (ORCPT ); Wed, 27 Feb 2019 05:03:08 -0500 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1gyw3F-0008NF-13; Wed, 27 Feb 2019 11:02:57 +0100 From: John Ogness To: Petr Mladek Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Sergey Senozhatsky , Steven Rostedt , Daniel Wang , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , Alan Cox , Jiri Slaby , Peter Feiner , linux-serial@vger.kernel.org, Sergey Senozhatsky Subject: Re: [RFC PATCH v1 15/25] printk: print history for new consoles References: <20190212143003.48446-1-john.ogness@linutronix.de> <20190212143003.48446-16-john.ogness@linutronix.de> <20190226145837.wl54fr7rn2ii5oxc@pathway.suse.cz> <87o96yziau.fsf@linutronix.de> <20190227090249.fzigc7r237emlg6k@pathway.suse.cz> Date: Wed, 27 Feb 2019 11:02:53 +0100 In-Reply-To: <20190227090249.fzigc7r237emlg6k@pathway.suse.cz> (Petr Mladek's message of "Wed, 27 Feb 2019 10:02:49 +0100") Message-ID: <874l8pft0y.fsf@linutronix.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-02-27, Petr Mladek wrote: > I mean that your patch does the reply on a very hidden location. Right. I understand that and I agree. > Regarding the per-console kthread. It would make sense if > we stop handling all consoles synchronously. For example, > when we push messages to fast consoles immediately and > offload the work for slow consoles. My per-console kthread suggestion relating to fast consoles is so that some consoles (such as netconsole, which is quite fast) could drop less messages than a slow console (such as uart). > Anyway, we first need to make the offload reliable enough. > It is not acceptable to always offload all messages. > We have been there last few years. We must keep a high > chance to see the messages. Any warning might be important > when it causes the system to die. Nobody knows what message > is such an important. You seem to be missing the point of the series. It _is_ acceptable to offload all messages because they are being offloaded to non-emergency consoles. If messages are lost, it sucks (and the appropriate "dropped" messages are sent), but it isn't critical. Once we can agree to this point, printk becomes so much easier to work with. Emergency consoles exist for handling important messages. They will not drop messages. They are synchronous and immediate. >> It is not necessary. It is desired. Why should _any_ task be punished >> with console writing? That is what the printk kthread is for. > > I do not know about any acceptable solution without punishing > the tasks. But we might find a better compromise between the > punishment and reliability. I do not want printk to compromise. That compromise is part of the problem. Let's partition printk to important and non-important so that we can optimize both. _That_ is the heart of this series. John Ogness