public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Variable ticks
@ 2005-07-25 21:19 Brown, Len
  2005-07-25 21:25 ` Lee Revell
  2005-07-26 15:50 ` Bill Davidsen
  0 siblings, 2 replies; 11+ messages in thread
From: Brown, Len @ 2005-07-25 21:19 UTC (permalink / raw)
  To: Bill Davidsen, Linux Kernel Mailing List

 
>>>Question one, are there other actions to consider?
>> 
>> 
>> Yes.
>> Speaking for ACPI C3 state, note that DMA also
>> wakes up the CPU -- even if there was no device interrupt.
>> (aka, "the trouble with USB")
>
>Trouble? Why would USB do DMA unless there was a device activity?

look here:
http://www.google.com/search?hl=en&q=usb+selective+suspend

Linux is working on it too, but it is in development.

cheers,
-Len

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Variable ticks
@ 2005-07-26 16:08 Brown, Len
  0 siblings, 0 replies; 11+ messages in thread
From: Brown, Len @ 2005-07-26 16:08 UTC (permalink / raw)
  To: Bill Davidsen, Linux Kernel Mailing List

 
>>>Trouble? Why would USB do DMA unless there was a device activity?
>> 
>> 
>> look here:
>> http://www.google.com/search?hl=en&q=usb+selective+suspend
>> 
>> Linux is working on it too, but it is in development.
>
>Somehow I didn't ask that right... The stuff on selective disable is 
>interesting, but my question is why a USB device, call it a keyboard, 
>would do DMA unless I press a key, at which point response will be 
>better if the CPU wakes up out of C3.
>
>I understand that specialty attachments may send what amounts to keep 
>alives, or gather data (webcam) you don't want, but the typical mouse 
>and KB would seem to be things which generate DMA at user initiation, 
>and would not be blocked for low power, only for suspend.

USB's hardware architecture was optimized for cost and ease of use,
it was not optimized for performance or power savings.

We need software disable because the USB hardware will keep
the memory bus busy constantly even if all the
actual USB devices are idle.  The power cost is that the CPU
is prevented from deep sleep so that it can snoop USB's
(idle) memory activity.

-Len

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Variable ticks
@ 2005-07-25 19:10 Brown, Len
  2005-07-25 21:05 ` Bill Davidsen
  0 siblings, 1 reply; 11+ messages in thread
From: Brown, Len @ 2005-07-25 19:10 UTC (permalink / raw)
  To: Bill Davidsen, Linux Kernel Mailing List

 
>I was thinking about variable tick times, and I can think of three 
>classes of action needing CPU attention.
>- device interrupts, which occur at no predictable time but would pull 
>the CPU out of a HLT or low power state.
>- process sleeps of various kinds, which have a known time of 
>occurence.
>- polled devices...
>
>Question one, are there other actions to consider?

Yes.
Speaking for ACPI C3 state, note that DMA also
wakes up the CPU -- even if there was no device interrupt.
(aka, "the trouble with USB")

>Question two, what about those polled devices?

it is a real challenge to save power under such conditions,
unless you can throttle the polling rate such that
the processor can actually enters idle while polling
is underway.

>I've been asked to give a high level overview of the recent discussion 
>for a meeting, and while I want to keep it at the level of "slower 
>clock, fewer interrupts" and "faster clock, better sleep 
>resolution," I 
>don't want to leave out any important issues, or be asked a question 
>(like how to handle polling devices) when I have no idea what 
>people are thinking in an area.

>From a power management point of view, what is important
is what we do when idle.  ie. on my laptop, from a power
savings point of view, I wouldn't care
much if HZ=1000 all the time if HZ=0 when in idle.

Outside of idle, the tick rate is much less important to
power savings, unless the change in tick rate was significant
enough to change the load enough that we'd want to change the
target non-idle MHz of the processor.

cheers,
-Len

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Variable ticks
@ 2005-07-25 18:59 Bill Davidsen
  0 siblings, 0 replies; 11+ messages in thread
From: Bill Davidsen @ 2005-07-25 18:59 UTC (permalink / raw)
  To: Linux Kernel Mailing List

I was thinking about variable tick times, and I can think of three 
classes of action needing CPU attention.
- device interrupts, which occur at no predictable time but would pull 
the CPU out of a HLT or low power state.
- process sleeps of various kinds, which have a known time of occurence.
- polled devices...

Question one, are there other actions to consider?

Question two, what about those polled devices?

I've been asked to give a high level overview of the recent discussion 
for a meeting, and while I want to keep it at the level of "slower 
clock, fewer interrupts" and "faster clock, better sleep resolution," I 
don't want to leave out any important issues, or be asked a question 
(like how to handle polling devices) when I have no idea what people are 
thinking in an area.

-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-07-27 22:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25 21:19 Variable ticks Brown, Len
2005-07-25 21:25 ` Lee Revell
2005-07-27  8:13   ` Zwane Mwaikambo
2005-07-27 20:43     ` Lee Revell
2005-07-27 21:06       ` Valdis.Kletnieks
2005-07-27 22:03       ` Zwane Mwaikambo
2005-07-26 15:50 ` Bill Davidsen
  -- strict thread matches above, loose matches on Subject: below --
2005-07-26 16:08 Brown, Len
2005-07-25 19:10 Brown, Len
2005-07-25 21:05 ` Bill Davidsen
2005-07-25 18:59 Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox