From: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.17-rc3-mm1
Date: Fri, 5 May 2006 17:05:09 +0200 [thread overview]
Message-ID: <20060505150509.GA16562@ens-lyon.fr> (raw)
In-Reply-To: <20060503144318.GA5505@ens-lyon.fr>
On Wed, May 03, 2006 at 04:43:18PM +0200, Benoit Boissinot wrote:
> On Wed, May 03, 2006 at 04:15:32PM +0200, Thomas Gleixner wrote:
> > On Wed, 2006-05-03 at 06:48 -0700, Andrew Morton wrote:
> > > > Since a few -mm releases I am seeing processes stuck in a
> > > > nanosleep({0, 0}, NULL) syscall. Sometimes, they unfreeze after
> > > > several hours.
> > >
> > > Thanks. Yes, please test mainline first - it will probably occur there.
> > >
> > > And it's a nanosleep(zero) all the time? The obvious answer would be that
> > > a clock tick came in at the right time and we end up trying to sleep for -1
> > > units. But if that was the case, things wouldn't unsleep after just
> > > several hours.
> >
> > I don't see how that should happen. The expiry time is stored in
> > absolute time format when nanosleep is started and compared against
> > current time in the softirq. We might miss one tick, but not more.
> >
> > Benoit, can you please mail me .config and a boot log ?
>
> they are attached (the faulting process is urxvtd).
>
I added the following debug code:
Index: linux/kernel/hrtimer.c
===================================================================
--- linux.orig/kernel/hrtimer.c
+++ linux/kernel/hrtimer.c
@@ -426,6 +426,7 @@ hrtimer_start(struct hrtimer *timer, kti
struct hrtimer_base *base, *new_base;
unsigned long flags;
int ret;
+ ktime_t save = tim;
base = lock_hrtimer_base(timer, &flags);
@@ -437,6 +438,12 @@ hrtimer_start(struct hrtimer *timer, kti
if (mode == HRTIMER_REL) {
tim = ktime_add(tim, new_base->get_time());
+ if(save.tv64 == 0) {
+ char comm[TASK_COMM_LEN];
+ ktime_t curr = new_base->get_time();
+ get_task_comm(comm, current);
+ printk("%s: empty nanosleep %lld %lld\n", comm, curr.tv64, tim.tv64);
+ }
/*
* CONFIG_TIME_LOW_RES is a temporary way for architectures
* to signal that they simply return xtime in
and when urxvtd hanged I had the following in dmesg:
[ 356.696000] urxvtd: empty nanosleep 356726124322 17948911854451
So I suppose something is wrong in ktime_add()
regards,
Benoit
--
powered by bash/screen/(urxvt/fvwm|linux-console)/gentoo/gnu/linux OS
next prev parent reply other threads:[~2006-05-05 15:06 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-01 8:47 2.6.17-rc3-mm1 Andrew Morton
2006-05-01 12:54 ` 2.6.17-rc3-mm1 Josh Boyer
2006-05-01 16:59 ` 2.6.17-rc3-mm1 Andrew Morton
2006-05-01 17:33 ` 2.6.17-rc3-mm1 Josh Boyer
2006-05-01 18:57 ` 2.6.17-rc3-mm1 H. Peter Anvin
2006-05-01 21:29 ` 2.6.17-rc3-mm1 Sam Ravnborg
2006-05-01 21:35 ` 2.6.17-rc3-mm1 H. Peter Anvin
2006-05-01 17:10 ` pi-futex-patchset-v4.patch (was 2.6.17-rc3-mm1 Valdis.Kletnieks
2006-05-03 9:11 ` 2.6.17-rc3-mm1 Benoit Boissinot
2006-05-03 13:48 ` 2.6.17-rc3-mm1 Andrew Morton
2006-05-03 14:15 ` 2.6.17-rc3-mm1 Thomas Gleixner
[not found] ` <20060503144318.GA5505@ens-lyon.fr>
2006-05-05 15:05 ` Benoit Boissinot [this message]
2006-05-06 10:30 ` 2.6.17-rc3-mm1 Thomas Gleixner
2006-05-08 17:48 ` 2.6.17-rc3-mm1 john stultz
2006-05-12 11:41 ` 2.6.17-rc3-mm1 Benoit Boissinot
2006-05-12 17:22 ` 2.6.17-rc3-mm1 john stultz
2006-05-09 12:40 ` 2.6.17-rc3-mm1 Benoit Boissinot
2006-05-12 7:25 ` 2.6.17-rc3-mm1 J.A. Magallón
2006-05-12 7:40 ` 2.6.17-rc3-mm1 Andrew Morton
2006-05-12 7:47 ` 2.6.17-rc3-mm1 J.A. Magallón
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=20060505150509.GA16562@ens-lyon.fr \
--to=benoit.boissinot@ens-lyon.org \
--cc=akpm@osdl.org \
--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
all inboxes | Powered by JetHome®