Re: [PATCH] sched: Add SCHED_BGND (background) scheduling policy
From: Peter Williams
Date: Thu Jul 06 2006 - 19:48:47 EST
Mike Galbraith wrote:
On Wed, 2006-07-05 at 23:59 +1000, Peter Williams wrote:
Mike Galbraith wrote:
The task in the expired array could also be a !safe_to_background() task
who already had a chance to run, and who's slice expired.
If it's !safe_to_background() it's in our interest to let it run in
order to free up the resource that it's holding.
Only if there are waiters (or you know there will be some before the
holder gets a chance to run again). Even then, they might be background
tasks, so it could still be ~wrong.
(yeah, comprehensive PI would be mucho tidier than tick time)
Yes. Unfortunately, in Ingo's opinion, even if we have comprehensive PI
it's unlikely to be reliable enough to guarantee putting tasks into the
background is safe. Of course, this wouldn't detract from its general
usefulness -- just makes it no good for SCHED_BGND/SCHED_IDLEPRIO purposes.
Peter
--
Peter Williams pwil3058@xxxxxxxxxxxxxx
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
-
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/