Messages in this thread | | | Date | Fri, 23 Mar 2001 12:42:01 -0800 (PST) | From | Nigel Gamble <> | Subject | Re: [PATCH for 2.5] preemptible kernel |
| |
On Thu, 22 Mar 2001, Rusty Russell wrote: > Nigel's "traverse the run queue and mark the preempted" solution is > actually pretty nice, and cheap. Since the runqueue lock is grabbed, > it doesn't require icky atomic ops, either.
You'd have to mark both the preempted tasks, and the tasks currently running on each CPU (which could become preempted before reaching a voluntary schedule point).
> Despite Nigel's initial belief that this technique is fragile, I > believe it will become an increasingly fundamental method in the > kernel, so (with documentation) it will become widely understood, as > it offers scalability and efficiency.
Actually, I agree with you now that I've had a chance to think about this some more.
Nigel Gamble nigel@nrg.org Mountain View, CA, USA. http://www.nrg.org/
MontaVista Software nigel@mvista.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |