linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Yafang Shao <laoar.shao@gmail.com>
To: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: Michal Hocko <mhocko@suse.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	 Roman Gushchin <guro@fb.com>, linux-mm <linux-mm@kvack.org>,
	David Rientjes <rientjes@google.com>,
	 Shakeel Butt <shakeelb@google.com>
Subject: Re: [nacked] mm-oom-avoid-printk-iteration-under-rcu.patch removed from -mm tree
Date: Thu, 23 Apr 2020 14:35:22 +0800	[thread overview]
Message-ID: <CALOAHbAMa_WGWodAoFCerKhYuY89Vcv1d2rXz0mu2tCMFQHaNA@mail.gmail.com> (raw)
In-Reply-To: <0aa5e490-c5b8-dc5c-334e-9a8d37da215c@i-love.sakura.ne.jp>

On Thu, Apr 23, 2020 at 1:35 PM Tetsuo Handa
<penguin-kernel@i-love.sakura.ne.jp> wrote:
>
> On 2020/04/22 15:59, Michal Hocko wrote:
> >>>                              This is what the async printk will address
> >>> AFAIU.
> >>
> >> No! You are completely wrong!! Async printk CANNOT reduce the amount of the
> >> output.
> >
> > Which is exactly what I claim above. Async printk would, however, deal
> > with the problem of the locked context part of the problem because
> > the heavy lifting is not done from the caller context. Please read my
> > response carefully.
>
> No! My proposal (which offloads to a deferrable context) avoids doing the
> heavy lifting (for printk buffer users) from the printk caller context. I'm
> saying that "don't pile up too much backlog onto the printk buffer (by abusing
> async printk) in order to make sure that kernel messages which are more
> important than reporting OOM victim candidates will be processed immediately".
>
> dump_tasks() remains definitely a printk() abuser which is capable of pushing
> many thousands of printk() messages in one second if async printk were available.
> Async printk CANNOT deal with the problem that too much backlog causes important
> messages to be delayed for too long. Please read my explanation carefully.
>

Agreed. Too much oom reports still be a issue even if the printk() is asyn.
I think the aysnc printk() won't care about wheter the data is
improtant or not, so the user of printk() (even if it is asyn) should
have a good management of these data especially if these data may
consume all or most of the printk buffer.

> Also, Sergey Senozhatsky (printk maintainer) said at
> https://lkml.kernel.org/r/20200423015008.GA246741@jagdpanzerIV.localdomain
> that it is UNKNOWN when async printk is merged. Async printk is not a
> silver-bullet breakthrough. Async printk cannot work without cooperation from
> printk() users. Please really stop letting the printk() do the heavy lifting.
>


-- 
Thanks
Yafang


  reply	other threads:[~2020-04-23  6:36 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200131043324.wkArXTf6-%akpm@linux-foundation.org>
2020-04-17 14:33 ` [nacked] mm-oom-avoid-printk-iteration-under-rcu.patch removed from -mm tree Tetsuo Handa
2020-04-17 15:26   ` Michal Hocko
2020-04-18 10:13     ` Tetsuo Handa
2020-04-20  7:33       ` Michal Hocko
2020-04-22  6:40         ` Tetsuo Handa
2020-04-22  6:59           ` Michal Hocko
2020-04-23  5:34             ` Tetsuo Handa
2020-04-23  6:35               ` Yafang Shao [this message]
2020-04-23  7:34                 ` Michal Hocko
2020-04-23 10:22                   ` Yafang Shao
2020-04-23 11:07                     ` Michal Hocko
2020-04-23 13:28                       ` Tetsuo Handa
2020-04-23 14:06                         ` Michal Hocko
2020-04-23 14:14                           ` Tetsuo Handa
2020-04-23 14:35                             ` Michal Hocko
2020-04-24 13:02                           ` Steven Rostedt
2020-04-24 15:18                             ` Michal Hocko
2020-04-23 15:54                         ` Sergey Senozhatsky
2020-04-23 22:56                           ` Tetsuo Handa
2020-04-24  0:56                         ` Yafang Shao
2020-04-24  1:16                           ` Tetsuo Handa

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=CALOAHbAMa_WGWodAoFCerKhYuY89Vcv1d2rXz0mu2tCMFQHaNA@mail.gmail.com \
    --to=laoar.shao@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=guro@fb.com \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    --cc=rientjes@google.com \
    --cc=shakeelb@google.com \
    /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;
as well as URLs for NNTP newsgroup(s).