* cpuidle - minimum time for sleep
@ 2014-10-09 18:28 Ran Shalit
2014-10-09 19:01 ` Valdis.Kletnieks
0 siblings, 1 reply; 4+ messages in thread
From: Ran Shalit @ 2014-10-09 18:28 UTC (permalink / raw)
To: kernelnewbies, linux-pm, linux-omap, linux-embedded
Hello,
Does anybody know what is the minimum expected time for sleep period
with the cpuidle ?
I intend t use the menu governer, and I try to estimate the sleep time.
Thanks,
Ran
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpuidle - minimum time for sleep
2014-10-09 18:28 cpuidle - minimum time for sleep Ran Shalit
@ 2014-10-09 19:01 ` Valdis.Kletnieks
2014-10-09 19:20 ` Nishanth Menon
2014-10-10 3:22 ` manty kuma
0 siblings, 2 replies; 4+ messages in thread
From: Valdis.Kletnieks @ 2014-10-09 19:01 UTC (permalink / raw)
To: Ran Shalit; +Cc: kernelnewbies, linux-pm, linux-omap, linux-embedded
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
On Thu, 09 Oct 2014 21:28:23 +0300, Ran Shalit said:
> Does anybody know what is the minimum expected time for sleep period
> with the cpuidle ?
Both processor dependent and sleep level dependent. There's a certain
amount of latency induced by the hardware waking up.
Look at /sys/devices/system/cpu/cpu*/cpuidle/state*/latency
[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpuidle - minimum time for sleep
2014-10-09 19:01 ` Valdis.Kletnieks
@ 2014-10-09 19:20 ` Nishanth Menon
2014-10-10 3:22 ` manty kuma
1 sibling, 0 replies; 4+ messages in thread
From: Nishanth Menon @ 2014-10-09 19:20 UTC (permalink / raw)
To: Valdis.Kletnieks, Ran Shalit
Cc: kernelnewbies, linux-pm, linux-omap, linux-embedded
On 10/09/2014 02:01 PM, Valdis.Kletnieks@vt.edu wrote:
> On Thu, 09 Oct 2014 21:28:23 +0300, Ran Shalit said:
>
>> Does anybody know what is the minimum expected time for sleep period
>> with the cpuidle ?
>
> Both processor dependent and sleep level dependent. There's a certain
> amount of latency induced by the hardware waking up.
>
> Look at /sys/devices/system/cpu/cpu*/cpuidle/state*/latency
>
Yes, that is correct. the sleep and wakeup time are dependent on the
power state we attempt (may or maynot achieve)
I personally toggle an unused pin using padmux register write with
weak pull up/down in controlled tests (mostly using disable =1 for
states I am not measuring), then capture pinctrl toggles using [1]
into a csv for many thousands of iterations then use the conservative
values. I usually do this at the slowest frequency to capture the
worst case values that i feed into cpuidle_driver.states.exit_latency
and appropriate value for target_residency - I usually ignore
power_usage as the value is never a constant and depends on quiet a
few factors that i cannot discuss in public domain.
Here are some helpful links on OMAP specific strategies (these may be
a little old, but just search for CPUIDLE latency measure in google)
https://lwn.net/Articles/384146/
http://www.omappedia.org/wiki/Power_Management_Device_Latencies_Measurement
http://lists.linaro.org/pipermail/linaro-dev/2010-August/000568.html
[1] https://www.saleae.com/
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpuidle - minimum time for sleep
2014-10-09 19:01 ` Valdis.Kletnieks
2014-10-09 19:20 ` Nishanth Menon
@ 2014-10-10 3:22 ` manty kuma
1 sibling, 0 replies; 4+ messages in thread
From: manty kuma @ 2014-10-10 3:22 UTC (permalink / raw)
To: Valdis Kletnieks
Cc: linux-omap, kernelnewbies, linux-embedded, Ran Shalit, linux-pm
[-- Attachment #1.1: Type: text/plain, Size: 939 bytes --]
>> Does anybody know what is the minimum expected time for sleep period
>> with the cpuidle ?
By sleep period do you mean sleep time for complete device or only for
cpu's? If you want to check for device as a whole, you can see the print in
the kernel log. If you want to check programmatically,
suspend_devices_and_enter() is the function.
On Fri, Oct 10, 2014 at 4:01 AM, <Valdis.Kletnieks@vt.edu> wrote:
> On Thu, 09 Oct 2014 21:28:23 +0300, Ran Shalit said:
>
> > Does anybody know what is the minimum expected time for sleep period
> > with the cpuidle ?
>
> Both processor dependent and sleep level dependent. There's a certain
> amount of latency induced by the hardware waking up.
>
> Look at /sys/devices/system/cpu/cpu*/cpuidle/state*/latency
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
[-- Attachment #1.2: Type: text/html, Size: 1499 bytes --]
[-- Attachment #2: Type: text/plain, Size: 169 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-10-10 3:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 18:28 cpuidle - minimum time for sleep Ran Shalit
2014-10-09 19:01 ` Valdis.Kletnieks
2014-10-09 19:20 ` Nishanth Menon
2014-10-10 3:22 ` manty kuma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).