From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
To: "Qixuan.Wu" <qixuan.wu@linux.alibaba.com>
Cc: Petr Mladek <pmladek@suse.com>, Jan Kara <jack@suse.cz>,
Steven Rostedt <rostedt@goodmis.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Subject: Re: Would you help to tell why async printk solution was not taken to upstream kernel ?
Date: Sun, 4 Mar 2018 22:01:51 +0900 [thread overview]
Message-ID: <20180304130151.GA483@tigerII.localdomain> (raw)
In-Reply-To: <1eb584e2-a479-46dd-8a25-820da7a34e85.qixuan.wu@linux.alibaba.com>
Cc-ing Steven
On (03/04/18 20:10), Qixuan.Wu wrote:
> Hi Sergey, petr, and Jan,
> I find you wrote a patch set of "[PATCH v12 0/3] printk: Make printk()
> completely async"(https://lkml.org/lkml/2016/5/13/275), and many people
> have reviewd. But I did not see them be taken to upstream kernel. Would
> you please help to tell me the reason ? Is it just only because of the
> LOG_CONT scenario (4th patch) ?
Hello,
Thanks for your email, we desperately need more feedback from
people who are facing printk() related issues. While, certainly, I'm not
happy to hear that printk() causes troubles on your side.
Regarding the async printk patch set. It's still "work in
progress", and probably will take some time (due to various reasons,
LOG_CONT is not one of them).
> Anyway, now we also face the same problem, many CPU are printking at
> the same time, but the poor one takes the lock and printk to console for
> long time. Would you please help to tell does anybody are writing some
> solution and try to fix this ?
Yes. 4.16 has Steven's patch which tweaks printk() in a very smart
way and addresses some of the issues printk() has. If you can't test 4.16
(quite possible), then the commits you'd want to take a look at are
(Linus's tree):
dbdda842fe96f89 printk: Add console owner and waiter logic to load balance console writes
c162d5b4338d72d printk: Hide console waiter logic into helpers
fd5f7cde1b85d4c printk: Never set console_may_schedule in console_trylock()
c14376de3a1befa printk: Wake klogd when passing console_lock owner
If you can backport those, test and tell us about your experience - would be
great and very much appreciated.
-ss
next parent reply other threads:[~2018-03-04 13:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1eb584e2-a479-46dd-8a25-820da7a34e85.qixuan.wu@linux.alibaba.com>
2018-03-04 13:01 ` Sergey Senozhatsky [this message]
2018-03-04 15:08 ` Would you help to tell why async printk solution was not taken to upstream kernel ? Qixuan.Wu
2018-03-04 15:43 ` Steven Rostedt
2018-03-05 2:14 ` Sergey Senozhatsky
2018-03-05 20:45 ` Steven Rostedt
2018-03-06 2:00 ` Sergey Senozhatsky
2018-03-06 2:47 ` Steven Rostedt
2018-03-06 2:53 ` Sergey Senozhatsky
2018-03-06 3:16 ` Steven Rostedt
2018-03-06 8:10 ` Sergey Senozhatsky
2018-03-05 20:58 ` Steven Rostedt
2018-03-06 1:52 ` Sergey Senozhatsky
2018-03-06 2:43 ` Sergey Senozhatsky
2018-03-06 3:18 ` Steven Rostedt
2018-03-05 6:56 ` Qixuan.Wu
2018-03-05 13:29 ` Petr Mladek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180304130151.GA483@tigerII.localdomain \
--to=sergey.senozhatsky@gmail.com \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=pmladek@suse.com \
--cc=qixuan.wu@linux.alibaba.com \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox