Matthew Garrett on the race to idle
Posted May 10, 2008 8:58 UTC (Sat) by
farnz (guest, #17727)
In reply to:
Matthew Garrett on the race to idle by mjg59
Parent article:
Matthew Garrett on the race to idle
Unfortunately, this conflicts hard with real-time constraints; I work
with a soft real-time system based on Linux, and I've had to disable
dropping into deeper C-states. Our system includes a smooth text scroller,
which works by updating the screen every frame (16 milliseconds); thanks
to the high performance of X11 on Intel Q35, the update takes less than a
millisecond, and then that thread goes to sleep until the next frame
starts.
With the latest Intel processors, we found that the screen jerked, as
there was nothing but this update on one core, and it was going into a low
C-state as soon as the update completed, then not coming out of idle until
too late.
I note that there's an in-kernel mechanism to let drivers tell the
scheduler about their latency needs (allowing them to always be scheduled
on the core that's not being put into a low C-state); it's a shame that
there's no way for a process to do the same, yet.
(
Log in to post comments)