* Dumb question about Voluntary Kernel Preemption Patch
@ 2004-07-15 20:11 Timothy Miller
2004-07-15 19:53 ` Arjan van de Ven
0 siblings, 1 reply; 2+ messages in thread
From: Timothy Miller @ 2004-07-15 20:11 UTC (permalink / raw)
To: Linux Kernel Mailing List
I sent this before, but I didn't get a response. Either people missed
it or it wasn't worth responding to. I'll give it one more try before I
shut up about it...
I have a question about voluntary kernel preemption in general.
(Shouldn't we call this "cooperative multitasking"?)
There are two disadvantages to voluntary preemption. One is that the
kernel thread my not sleep enough (high latency), and the other is that
the kernel thread may sleep too much (wasted CPU for context switch
overhead). The advantage of using the timer interrupt instead is that
the preemption happens only as often as it needs to.
My question is this: Do your reschedule points (might_sleep or whatever
you end up using) ALWAYS reschedule, or do they only reschedule after a
certain period of time (timer interrupt increments counter, and
reschedule point does nothing if it's too early)?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-15 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-15 20:11 Dumb question about Voluntary Kernel Preemption Patch Timothy Miller
2004-07-15 19:53 ` Arjan van de Ven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.