Re: [PATCH 7/7] sched: implement try_to_wake_up_local()

From: Peter Zijlstra
Date: Tue Dec 08 2009 - 03:54:06 EST


On Mon, 2009-12-07 at 19:27 +0900, Tejun Heo wrote:
>
> > What happens when you run out of memory and the workqueue progress is
> > needed to get free memory?
>
> That's when the "rescuer" workers kick in. All workqueues which might
> be used during allocation paths are required to have one. When
> manager fails to fork a new worker, it summons the rescuers. They
> migrate to the distressed cpu and processes only the works from their
> specific workqueues thus guaranteeing forward progress.

What happens if the rescue worker is tied up on another cpu in a
deadlock avoidance game, which requires progress on this cpu in order to
resolve it?

--
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/