linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Petr Mladek <pmladek@suse.com>,
	Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>,
	jack@suse.com, tj@kernel.org, kyle@kernel.org,
	davej@codemonkey.org.uk, calvinowens@fb.com,
	akpm@linux-foundation.org, linux-mm@kvack.org, mhocko@kernel.org
Subject: Re: How to avoid printk() delay caused by cond_resched() ?
Date: Wed, 2 Mar 2016 17:04:37 +0100	[thread overview]
Message-ID: <20160302160437.GA2307@quack.suse.cz> (raw)
In-Reply-To: <20160302143415.GB614@swordfish>

On Wed 02-03-16 23:34:15, Sergey Senozhatsky wrote:
> > I am looking forward to have the console printing offloaded
> > into the workqueues. Then printk() will become consistently
> > "fast" operation and will cause less surprises like this.
> 
> I'm all for it. I need this rework badly. If Jan is too busy at
> the moment, which I surely can understand, then I'll be happy to
> help ("pick up the patches". please, don't get me wrong).

So I'm rather busy with other stuff currently so if you can pick up my
patches and finish them, it would be good. I think I have addressed all the
comments you had to the previous version, except for handling the case
where all the workers are too busy - maybe using a dedicated workqueue with
a rescueue worker instead of system_wq would solve this issue.

I've sent the current version of patches I have to you including the patch
3/3 which I use for debugging and testing whether the async printing really
helps avoiding softlockups.

								Honza
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2016-03-02 16:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-02 12:01 How to avoid printk() delay caused by cond_resched() ? Tetsuo Handa
2016-03-02 13:38 ` Petr Mladek
2016-03-02 14:11   ` Tetsuo Handa
2016-03-02 15:21     ` Petr Mladek
2016-03-02 14:34   ` Sergey Senozhatsky
2016-03-02 14:56     ` Petr Mladek
2016-03-02 16:04     ` Jan Kara [this message]
2016-03-03  5:41       ` Sergey Senozhatsky
2016-03-02 14:04 ` Sergey Senozhatsky
2016-03-02 15:02   ` Tetsuo Handa
2016-03-02 15:29     ` Sergey Senozhatsky

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=20160302160437.GA2307@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=akpm@linux-foundation.org \
    --cc=calvinowens@fb.com \
    --cc=davej@codemonkey.org.uk \
    --cc=jack@suse.com \
    --cc=kyle@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    --cc=pmladek@suse.com \
    --cc=sergey.senozhatsky@gmail.com \
    --cc=tj@kernel.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;
as well as URLs for NNTP newsgroup(s).