mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Olaf Hering <olaf@aepfle.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: purpose of WARN_ON in kernel/workqueue.c:worker_enter_idle()
Date: Thu, 21 Jul 2011 09:38:28 +0200	[thread overview]
Message-ID: <20110721073828.GY3455@htj.dyndns.org> (raw)
In-Reply-To: <20110718161518.GA8128@aepfle.de>

Hello, Olaf.

On Mon, Jul 18, 2011 at 06:15:18PM +0200, Olaf Hering wrote:
> whats the purpose of "WARNING: at kernel/workqueue.c:1217 worker_enter_idle()"?
> I put some debug in the function, cpu is always 1, nr_workers is either
> 2 or 3, current_work is NULL.
> Is there some real bug lurking thats worth to track down?

Oh yeah, that means workqueue worker accounting went out of sync which
may lead to workqueue hang which usually means dead system.  Can you
please print out what goes out of sync?  ie. print gcwq->nr_workers,
nr_idle and get_gcwq_nr_running(gcwq->cpu)?

Also, it would be helpful to enable and record workqueue events (grep
workqueue /sys/kernel/debug/tracing/available_events).  It should
allow us what led to the condition.

Thanks.

-- 
tejun

  reply	other threads:[~2011-07-21  7:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 16:15 Olaf Hering
2011-07-21  7:38 ` Tejun Heo [this message]
2011-07-21 11:13   ` Olaf Hering

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=20110721073828.GY3455@htj.dyndns.org \
    --to=tj@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olaf@aepfle.de \
    /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

Powered by JetHome