public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@tv-sign.ru>
To: Bj?rn Steinbrink <B.Steinbrink@gmx.de>
Cc: Petr Tesarik <ptesarik@suse.cz>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org, Roland McGrath <roland@redhat.com>,
	Frank Mayhar <fmayhar@google.com>
Subject: Re: CPU POSIX timers livelock
Date: Fri, 2 May 2008 21:28:03 +0400	[thread overview]
Message-ID: <20080502172803.GA1541@tv-sign.ru> (raw)
In-Reply-To: <20080502164334.GA3585@atjola.homenet>

On 05/02, Bj?rn Steinbrink wrote:
>
> Hm, I have some message in that thread from April they don't seem to be
> on lkml.org nor in the bugzilla though. Oh well, I can send you an mbox
> of that thread in a private mail, just let me know if you want that.

Me too please ;)

Please note there is a related problem if we have a single thread but
a lot of timers attached to this thread. If the signal is ignored, each
timer should be re-armed, this all can consume >= 1/HZ CPU time.
We have "maxfire = 20" in check_thread_timers/check_process_timers to
prevent this, but it is just a workaround. And it is a bit silly to just
waste the CPU if the signal is ignored, arm_timer() is heavy and doesn't
scale well.

However, I have already forgot this code, perhaps I missed something,
and at least maxfire does help.

Oleg.


  reply	other threads:[~2008-05-02 17:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02 15:05 CPU POSIX timers livelock Petr Tesarik
2008-05-02 15:21 ` Björn Steinbrink
2008-05-02 16:13   ` Petr Tesarik
2008-05-02 16:43     ` Björn Steinbrink
2008-05-02 17:28       ` Oleg Nesterov [this message]
2008-05-02 17:10     ` Frank Mayhar
2008-05-17  0:16   ` CPU POSIX timers livelock (with patch for review) Frank Mayhar

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=20080502172803.GA1541@tv-sign.ru \
    --to=oleg@tv-sign.ru \
    --cc=B.Steinbrink@gmx.de \
    --cc=fmayhar@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ptesarik@suse.cz \
    --cc=roland@redhat.com \
    --cc=tglx@linutronix.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