CPU not using Turbo/burst

I installed the x86 version on a Zotac mini pc with Intel N4100 cpu.
When i installed Wireguard, I only got ~200Mbps on my connection using Speedtest.net that gives +800Mps with no vpn. This is about the same as my Nvidia Shield with vpn.

I installed htop and noticed my cpu only operates between 800-1000Mhz which is the base cpu min/max and does not go near its 2Ghz max.
According to htop, cpu is hitting +70% during speedtest, which I would think is enough to bump the cpu over 1Ghz?

I tried enabling/disabling ACPI in the bios with no change so I think the issue is OpenWRT.

Any suggestions/tps are appreciated.

Turbo works only with one core (2 hyperthreads if applicable) active.
You have 4 cores - 70% is on one core or each core?

I believe only one core hit 70.

I assume to get higher Wireguard speeds, the cpu's need to scale up more and if so, how?

Thanks for your reply

Can you show that picture of htop ( in settings un-hide kernel threads and show cpu detail)?
likely enable irqbalance.

Does this show you what you need to see?

1 Like

Go with irqbalance, cpu usage is from wireguard.

Sorry, I'm not familiar with getting around htop. How do I get to irqbalance?

OK, looks like you are telling me to install a package.
Ill give it a try.

Just to clarify the cpu usage shown, I took that during a speedtest to show the cpu stuck well below the 2Ghz max.

1 Like

I installed irqbalance and do not see any difference in the speed test.

Any suggestion for getting the cpu;s to scale above 1GHz?
i really think that is the cause of the slow Wireguard speed

Thanks

OK, I booted up a live usb of Rescuezilla which is based on Ubuntu.
Installed htop and I could see the cpu's scaling up to 2.4Ghz.

So it seems to be an issue with OpenWRT, not my bios settings etc.

Any help getting the cpu scaling to work appreciated.

If I run lscpu, I get

CPU max MHz: 2400.0000
CPU min MHz: 800.0000

So for some reason, the system wont scale above the base 1.1Ghz, even though it seems to know the max is 2.4Ghz.

Any insights appreciated

For anyone having a similar issue.
This probably isnt the correct way but I seem to have solved it by adding the below lines to /etc/rc.local

echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy2/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy3/scaling_governor

This seems to have set the governor to ondemand

Server can shut off cores in bios to have better base frequency in bios.

Try schedutil

Thats is what the system was using originally but for some reason would only scale between 800-1.1GHz.
I should actuallly try setting it back with the above lines to see if that works.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.