Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does it choose how much and how often change the CPU frequency?

CPU Frequency
0
Posted

How does it choose how much and how often change the CPU frequency?

0

Nikolay Sturm: The idea is very simple, apmd needs to figure out when the CPU is busy and then raise its frequency to get maximum performance. Once the CPU is idle again, the frequency can be lowered to save energy and reduce the noise level. In practice however, this is more complicated. First, you need a good metric. Some people believe the system’s load is that metric, but that’s wrong. The load is just the average number of processes running plus the ones wanting to run. This does not tell us anything about the actual CPU usage. The kernel actually measures where the CPU spends its time, regular userland processing, nice userland processing, kernel processing, and interrupt handling. Another counter measures the amount of time the CPU is idle. And this is the correct value to look at. Unfortunately, this opens a new can of worms, as you are free to look at these counters as often as you want. The more often you look and possibly adjust the CPU frequency, the better your overall per

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123