Re: [feature] automatically detect hung TASK_UNINTERRUPTIBLE tasks

From: Ingo Molnar
Date: Mon Dec 03 2007 - 19:05:56 EST



* Rafael J. Wysocki <rjw@xxxxxxx> wrote:

> > > Er, it won't play well if that happen when tasks are frozen for
> > > suspend.
> >
> > right now any suspend attempt times out after 20 seconds:
> >
> > $ grep TIMEOUT kernel/power/process.c
> > #define TIMEOUT (20 * HZ)
> > end_time = jiffies + TIMEOUT;
>
> This is the timeout for freezing tasks, but if the freezing succeeds,
> they can stay in TASK_UNINTERRUPTIBLE for quite some more time,
> especially during a hibernation (the tasks stay frozen until we power
> off the system after saving the image).

ah, ok. So this was a live bug - thanks for the clarification.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/