cpuidle: New timer events oriented governor for tickless systems
A message that is not in the archive (sent off-list or not yet received): JLIjge0NMDhAwJLIogChPj
Quoted 8 lines · On 2018.11.04 08:31 Rafael J. Wysocki wrote:
v2 -> v3:
* Simplify the pattern detection code and make it return a value lower than the time to the closest timer if the majority of recent idle intervals are below it regardless of their variance (that should cause it to be slightly more aggressive).
* Do not count wakeups from state 0 due to the time limit inpoll_idle()as non-timer.
Quoted 5 lines
Note: I will be mostly offline tomorrow, so this goes slightly early. I have tested it only very lightly, but it is not so much different from the previous one.
It requires the same additional patches to apply as the previous one too.
Even though this v3 has now been superseded by v4, I completed some test work in progress for v3 anyhow.
The main reason to complete the work, and write up, was because, and for my own interest as much as anything, I wanted to specifically test for the influence of running trace on the system under test.
Reference: https://marc.info/?l=linux-kernel&m=154145580925439&w=2
The Phoronix dbench test was run under the option to run all the tests, instead of just one number of clients. This was done with a reference/baseline kernel of 4.20-rc1, and also with this TEO version 3 patch. The tests were also repeated with trace enabled for 5000 seconds. Idle information and processor package power were sampled once per minute in all test runs.
The results are:
http://fast.smythies.com/linux-pm/k420/k420-dbench-teo3.htm
http://fast.smythies.com/linux-pm/k420/histo_compare.htm
Conclusion: trace has negligible effect, until the system gets severely overloaded.
There are some odd long idle durations with TEOv3 for idle states 1, 2, and 3 that I'll watch for with v4 testing.
Other information:
Processor: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz The kernels were 1000 Hz.
Idle latency/residency info:
STATE: state0 DESC: CPUIDLE CORE POLL IDLE NAME: POLL LATENCY: 0 RESIDENCY: 0
STATE: state1 DESC: MWAIT 0x00 NAME: C1 LATENCY: 2 RESIDENCY: 2
STATE: state2 DESC: MWAIT 0x01 NAME: C1E LATENCY: 10 RESIDENCY: 20
STATE: state3 DESC: MWAIT 0x10 NAME: C3 LATENCY: 80 RESIDENCY: 211
STATE: state4 DESC: MWAIT 0x20 NAME: C6 LATENCY: 104 RESIDENCY: 345
... Doug
Quoted 10 lines · CET Doug Smythies
Quoted 8 lines · On 2018.11.04 08:31 Rafael J. Wysocki wrote:
v2 -> v3:
* Simplify the pattern detection code and make it return a value lower than the time to the closest timer if the majority of recent idle intervals are below it regardless of their variance (that should cause it to be slightly more aggressive).
* Do not count wakeups from state 0 due to the time limit inpoll_idle()as non-timer.
Quoted 8 lines
Quoted 5 lines
Note: I will be mostly offline tomorrow, so this goes slightly early. I have tested it only very lightly, but it is not so much different from the previous one.
It requires the same additional patches to apply as the previous one too.
Even though this v3 has now been superseded by v4, I completed some test work in progress for v3 anyhow.
That's useful anyway, thanks for doing that!
Quoted 12 lines
The main reason to complete the work, and write up, was because, and for my own interest as much as anything, I wanted to specifically test for the influence of running trace on the system under test.
Reference: https://marc.info/?l=linux-kernel&m=154145580925439&w=2The Phoronix dbench test was run under the option to run all the tests, instead of just one number of clients. This was done with a reference/baseline kernel of 4.20-rc1, and also with this TEO version 3 patch. The tests were also repeated with trace enabled for 5000 seconds. Idle information and processor package power were sampled once per minute in all test runs.
Quoted 3 lines
The results are:
http://fast.smythies.com/linux-pm/k420/k420-dbench-teo3.htm
http://fast.smythies.com/linux-pm/k420/histo_compare.htm
Thanks a bunch for these!
Quoted 5 lines
Conclusion: trace has negligible effect, until the system gets severely overloaded.
There are some odd long idle durations with TEOv3 for idle states 1, 2, and 3 that I'll watch for with v4 testing.
That unfortunately is a result of bugs in the v4 (and v2 - v3 too).
Namely, it doesn't take the cases when the tick has been stopped already into account correctly. IOW, all of the data points beyond the tick boundary should go into the "final" peak.
I'll send a v5.
Quoted 9 lines
Other information:
Processor: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz The kernels were 1000 Hz.
Idle latency/residency info:
STATE: state0 DESC: CPUIDLE CORE POLL IDLE NAME: POLL LATENCY: 0 RESIDENCY: 0
STATE: state1 DESC: MWAIT0x00NAME: C1 LATENCY: 2 RESIDENCY: 2
STATE: state2 DESC: MWAIT0x01NAME: C1E LATENCY: 10 RESIDENCY: 20
STATE: state3 DESC: MWAIT0x10NAME: C3 LATENCY: 80 RESIDENCY: 211
STATE: state4 DESC: MWAIT0x20NAME: C6 LATENCY: 104 RESIDENCY: 345
Thanks,
Rafael
A message that is not in the archive (sent off-list or not yet received): KfE8gqrRG7nW7KfEDgBkXZ
Quoted 2 lines · On 2018.11.08 00:00 Rafael J. Wysocki wrote:
Quoted 1 line · CET Doug Smythies
On 2018.11.04 08:31 Rafael J. Wysocki wrote:
...[snip]...
Quoted 3 lines
Quoted 3 lines
The results are:
http://fast.smythies.com/linux-pm/k420/k420-dbench-teo3.htm
http://fast.smythies.com/linux-pm/k420/histo_compare.htm
...[snip]...
Quoted 10 lines
Quoted 2 lines
There are some odd long idle durations with TEOv3 for idle states 1, 2, and 3 that I'll watch for with v4 testing.
That unfortunately is a result of bugs in the v4 (and v2 - v3 too).
Namely, it doesn't take the cases when the tick has been stopped already into account correctly. IOW, all of the data points beyond the tick boundary should go into the "final" peak.
I'll send a v5.
With v5 there were no long idle durations for idle states 1, 2, and 3 for this same Phoronix dbench test.
... Doug
Quoted 17 lines · Doug Smythies
Quoted 2 lines · On 2018.11.08 00:00 Rafael J. Wysocki wrote:
Quoted 1 line · CET Doug Smythies
On 2018.11.04 08:31 Rafael J. Wysocki wrote:
...[snip]...
Quoted 3 lines
Quoted 3 lines
The results are:
http://fast.smythies.com/linux-pm/k420/k420-dbench-teo3.htm
http://fast.smythies.com/linux-pm/k420/histo_compare.htm...[snip]...
Quoted 5 lines
Quoted 2 lines
There are some odd long idle durations with TEOv3 for idle states 1, 2, and 3 that I'll watch for with v4 testing.
That unfortunately is a result of bugs in the v4 (and v2 - v3 too).
Quoted 8 lines
Quoted 5 lines
Namely, it doesn't take the cases when the tick has been stopped already into account correctly. IOW, all of the data points beyond the tick boundary should go into the "final" peak.
I'll send a v5.
With v5 there were no long idle durations for idle states 1, 2, and 3 for this same Phoronix dbench test.
That's good news, thank you!