public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Jia Zhang <jia.zhang2008@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] softlockup: keep current softlockup period before touching timestamp
Date: Tue, 13 Oct 2009 12:37:03 +0200	[thread overview]
Message-ID: <20091013103703.GC3915@elte.hu> (raw)
In-Reply-To: <4ABEFCFE.3080500@gmail.com>


* Jia Zhang <jia.zhang2008@gmail.com> wrote:

> From: Jia Zhang <jia.zhang2008@gmail.com>
> 
> Imaging such a scenario, softlockup deadline is 60s and a softirq runs 
> at most 65s. Assume that currently that softirq runs 50s. At this 
> moment, issue a "echo 40 > /proc/sys/kernel/softlockup_thresh" and 
> thus lead to recounting the timeout. The remaining time for that 
> softirq is 15s less than new threshold 40s, which means the warning 
> will be depressed after 15s. It is not what we expected because 
> softlockup actually feeds 100s(old+new) for that softirq. To fix this 
> problem, softlockup should keep current softlockup period before 
> touching timestamp.
> 
> Signed-off-by: Jia Zhang <jia.zhang2008@gmail.com>
> ---
>  include/linux/sched.h |    5 +----
>  kernel/softlockup.c   |   26 ++++++++++++++------------
>  kernel/sysctl.c       |    2 +-
>  3 files changed, 16 insertions(+), 17 deletions(-)

your patch does not apply to the latest kernel - mind redoing it against 
latest -tip:

  http://people.redhat.com/mingo/tip.git/README

also please re-post the other patch of yours as well, the "allow 
checking for remote CPUs" - that too looks like a worthwile improvement.

Thanks,

	Ingo

  reply	other threads:[~2009-10-13 10:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-27  5:49 [PATCH] softlockup: keep current softlockup period before touching timestamp Jia Zhang
2009-10-13 10:37 ` Ingo Molnar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-27  5:17 Jia Zhang

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=20091013103703.GC3915@elte.hu \
    --to=mingo@elte.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=jia.zhang2008@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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