The weighted TEO cpuidle governor
The weighted TEO cpuidle governor
Posted May 14, 2020 22:18 UTC (Thu) by Paf (subscriber, #91811)Parent article: The weighted TEO cpuidle governor
The reasoning for the randomization seems... thin? It’s surely not any worse to just always pick the highest probability, and have a mechanism for tie breaking?
Posted May 14, 2020 22:57 UTC (Thu)
by corbet (editor, #1)
[Link] (5 responses)
Posted May 16, 2020 4:15 UTC (Sat)
by martinfick (subscriber, #4455)
[Link] (4 responses)
Posted May 16, 2020 13:24 UTC (Sat)
by mathstuf (subscriber, #69389)
[Link] (3 responses)
Posted May 16, 2020 19:33 UTC (Sat)
by Wol (subscriber, #4433)
[Link] (2 responses)
Cheers,
Posted May 16, 2020 20:18 UTC (Sat)
by mathstuf (subscriber, #69389)
[Link] (1 responses)
Posted May 16, 2020 22:30 UTC (Sat)
by Wol (subscriber, #4433)
[Link]
Cheers,
Bear in mind that the number of sleep states is typically rather larger than the three I showed in the simplified example. If you are going to pick between four choices, each of which has a probability between, say, 18-22%, does it really make sense to always pick the highest? In a sense, this is the mechanism for tie breaking.
Random numbers
Random numbers
Random numbers
Random numbers
Wol
Random numbers
Random numbers
Wol