Re: Higer latency with dynamic tick (need for an io-ondemand govenor?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arjan van de Ven
Date: Saturday, April 19, 2008 - 11:19 pm

On Fri, 18 Apr 2008 10:43:32 -0500
"Woodruff, Richard" <r-woodruff2@ti.com> wrote:



So right now we have the pmqos framework (and before that we had a simpler version of this);
so if your realtime (or realtime-like) system cannot deal with latency longer then X usec,
you can just tell the kernel,, and the deeper power states that have this latency, just won't get used.

What you're mentioning is sort-of-kinda different. It's the "most of the time go as deep as you can,
but when I do IO, it hurts throughput".
There's two approaches to that in principle
1) Work based on historic behavior, and go less deep when there's lots of activity in the (recent) past
   A few folks at Intel are working on something like this
2) You have the IO layer tell the kernel "heads up, something coming down soon"
   This is more involved, especially since it's harder to predict when the disk will be done.
   (it could be a 10msec seek, but it could also be in the disks cache memory, or it could be an SSD or,
   the disk may have to read the sector 5 times because of weak magnetics... it's all over the map)
   Another complication is that we need to only do this for "synchronous" IO's.. which is known at higher layers
   in the block stack, but I think gets lost towards the bottom.

There's another problem with 2); in a multicore world; all packages EXACPT for the one which will get the irq can go to a deeper state anyway....
but it might be hard to predict which CPU will get the completion irq.


-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bug seen with dynticks from CONFIG_HARDIRQS_SW_RESEND, Woodruff, Richard, (Wed May 16, 4:20 pm)
Re: bug seen with dynticks from CONFIG_HARDIRQS_SW_RESEND, Thomas Gleixner, (Thu May 17, 3:10 am)
RE: bug seen with dynticks from CONFIG_HARDIRQS_SW_RESEND, Woodruff, Richard, (Thu May 17, 1:14 pm)
RE: bug seen with dynticks from CONFIG_HARDIRQS_SW_RESEND, Thomas Gleixner, (Thu May 17, 1:38 pm)
RE: bug seen with dynticks from CONFIG_HARDIRQS_SW_RESEND, Woodruff, Richard, (Thu May 17, 3:24 pm)
RE: bug seen with dynticks from CONFIG_HARDIRQS_SW_RESEND, Thomas Gleixner, (Fri May 18, 12:49 am)
Higer latency with dynamic tick (need for an io-ondemand g ..., Woodruff, Richard, (Fri Apr 18, 8:43 am)
Re: Higer latency with dynamic tick (need for an io-ondema ..., Arjan van de Ven, (Sat Apr 19, 11:19 pm)
RE: Higer latency with dynamic tick (need for an io-ondema ..., Woodruff, Richard, (Sun Apr 20, 7:09 am)
RE: Higer latency with dynamic tick (need for an io-ondema ..., Woodruff, Richard, (Sun Apr 20, 7:21 am)