What's new

100% CPU usage

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Zagg

New Around Here
Hello all,

On my RT-AC88U i have 100% cpu when I use arround 200mb/s bandwidth.
When I run speedtest by example , CPU usage is 100% so max bandwidth is 200-230Mb/s on a 1Gb/s fiber link :(
On htop "nt_center" process is on the top when I run the speedtest but can't see why CPU is full used.

When ac88u is on AP mode , speedtest give me 980mb/s
When ac88u is on router mode, speedtest give me 220mb/s

Thanks in advance for any help.

(I use ASUS Merlin v384.5 on ASUS RT-AC88U)

Davy
 
Stop using CPU-bound functions like AIProtection - in "normal" operation the LAN traffic should bypass the CPU and give you full bandwidth (as you see in AP mode).

But some function disable the CPU bypassing and the small, poor and slow CPU is fully utilized and show the low(er) throughput as you see in router mode.

By the way: It could be also WIFI encryption which uses up the CPU power - so better do the speed check on a wired connection! :rolleyes:
 
Stop using CPU-bound functions like AIProtection - in "normal" operation the LAN traffic should bypass the CPU and give you full bandwidth (as you see in AP mode).

But some function disable the CPU bypassing and the small, poor and slow CPU is fully utilized and show the low(er) throughput as you see in router mode.

By the way: It could be also WIFI encryption which uses up the CPU power - so better do the speed check on a wired connection! :rolleyes:

Hi,
Thanks for answer.
I have disable AIProtection and test from wired connection. I'm now at 300Mb/s on router mode when CPU core 1 is at 100% used.
Core 2 seems to be unused , don't know if normal.
Do you know how find the fonction disable CPU bypassing please ?
Thanks in advance,
Davy
 
The best way would be to login on the router via SSH (need to enable SSH on the Administration page) and use the top command to see the top CPU usage on the router while you do the speed test.
 
The best way would be to login on the router via SSH (need to enable SSH on the Administration page) and use the top command to see the top CPU usage on the router while you do the speed test.

ok thank you.
When I run a speedtest 2 process are on top :
28.4% [ksoftirqd/0]
2% /sbin/netool
2.1% nt_center

And idea what is it ?

Thanks.
Davy
 
Last edited:
Those processes (netool and nt_center) are inconsequential.

Don't look at the process list. Press "1" and then look at the "CPUn:" lines second and third from the top. Particularly take note of the %idle and %sirq. You'll probably find the your %sirq is hitting 100% for one of the processors.
 
As a point of comparison I am running 384.5 on an AC1900P with the following processes/ service active and 10 -12 devices connected most of which are IoT devices.

AIprotection ON
Traffic Monitor ON
2 Regular SSIDs
4 Guest SSIDs
2 OpenVPN clients running
Hardware Acceleration ON

With a gigabyte connection my Processor 1 goes 99-100% Processor 2 68-70%

Speedtest using an Ethernet connected PC to a nearby speed test server 880-920 Mbps down 42 Mbps up
 
Ok, thanks all for your help.
After disable AIprotection, traffic monitor ...etc no change in bandwidth.
After hard reset all is become good ... 950Mb/s down 190 Mb/s up. I don't understand why but for now, all is ok !!!
I have installed skynetv6 script (only inbound traffic filtered) and no change in bandwidth
Firewall is on, AIprotection and traffic monitor are off.
Thanks!

Davy
 
On my RT-AC88U i have 100% cpu when I use arround 200mb/s bandwidth.
When I run speedtest by example , CPU usage is 100% so max bandwidth is 200-230Mb/s on a 1Gb/s fiber link :(
On htop "nt_center" process is on the top when I run the speedtest but can't see why CPU is full used.
Yeah, something's wrong. I don't think it has anything to with AIProtection being on or off, as I use it and the CPU load on my AC87 is 2-5% during a speedtest @ 1 gbit.

Unfortunately, hardware acceleration is somewhat of a mystery in the ASUS code. Supposedly my AC87 has support for FA acceleration, but I've never managed to get it turned on, regardless of settings or any combination of them. CTF acceleration works fine out of the box, even when I have traffic analysis and qOS turned on.

To check if you have hardware acceleration, go to Tools --> Sysinfo in the UI or use get ctf_fa_mode. 0 = hardware acceleration off. 1 = CTF is turned on. 2 = FA is turned on.

ksoftirqd using up all CPU cycles is the Linux equivalent of svchost.exe doing the same in Windows, ie annoying and takes a long time to fix. ksoftirqd is a kernel thread that offloads system data traffic (it's my own explanation, dont' quote me on that please), when the hardware can't handle having its "channels" saturated. Only thing that can cause this in a router that'd make sense besides hardware NAT acceleration being off, is a faulty (or failing) USB drive with read/write errors that the system tries to work around constantly. If you have any USB drive connected, try removing it if you haven't already.

Only thing I can think of to fix this, is a thorough and complete troubleshooting. Start off with a factory reset and then apply settings/functions/additions one by one until hardware acceleration stops working. As painstaking and tedious as it is, just to rule out what's causing this.

As a point of comparison I am running 384.5 on an AC1900P with the following processes/ service active and 10 -12 devices connected most of which are IoT devices.

AIprotection ON
Traffic Monitor ON
2 Regular SSIDs
4 Guest SSIDs
2 OpenVPN clients running
Hardware Acceleration ON

With a gigabyte connection my Processor 1 goes 99-100% Processor 2 68-70%
If you're using OpenVPN, then such a high CPU load makes perfect sense. :)
 
Yeah, something's wrong. I don't think it has anything to with AIProtection being on or off, as I use it and the CPU load on my AC87 is 2-5% during a speedtest @ 1 gbit.

Unfortunately, hardware acceleration is somewhat of a mystery in the ASUS code. Supposedly my AC87 has support for FA acceleration, but I've never managed to get it turned on, regardless of settings or any combination of them. CTF acceleration works fine out of the box, even when I have traffic analysis and qOS turned on.

To check if you have hardware acceleration, go to Tools --> Sysinfo in the UI or use get ctf_fa_mode. 0 = hardware acceleration off. 1 = CTF is turned on. 2 = FA is turned on.

ksoftirqd using up all CPU cycles is the Linux equivalent of svchost.exe doing the same in Windows, ie annoying and takes a long time to fix. ksoftirqd is a kernel thread that offloads system data traffic (it's my own explanation, dont' quote me on that please), when the hardware can't handle having its "channels" saturated. Only thing that can cause this in a router that'd make sense besides hardware NAT acceleration being off, is a faulty (or failing) USB drive with read/write errors that the system tries to work around constantly. If you have any USB drive connected, try removing it if you haven't already.

Only thing I can think of to fix this, is a thorough and complete troubleshooting. Start off with a factory reset and then apply settings/functions/additions one by one until hardware acceleration stops working. As painstaking and tedious as it is, just to rule out what's causing this.

If you're using OpenVPN, then such a high CPU load makes perfect sense. :)

Hi,

thanks for informations. A factory reset and apply previous setting now its workings nice.
The command get ctf_fa_mode not work. Its a command to use on SSH ?
Thanks in advance,
Davy
 
I was seeing the same performance issue and CPU utilization on my RT-AC5300 even after updating to 384.5 and performing a reset . I associated it to AB-Solution and/or Pixelserv. I was only getting 300Mbps until I did a factory reset and then got my full gig speed. I did this twice (installed AB-Solution and Pixelserv and the same thing happened).

FWIW - I have Bandwidth Monitor/App Analysis, web history enabled and 1 OpenVPN client configured.

I can live without AB-Solution.
 
When y'all were getting the slower speeds did you verify that NAT acceleration was enabled?
 
Mine is set to "auto"... You could be on to something here... But right now I'm too tired :)

The switch only has two positions: Disabled or Auto. If the switch is on and CTF is enabled it will tell you in a text field to the right of the switch.
 
I was seeing the same performance issue and CPU utilization on my RT-AC5300 even after updating to 384.5 and performing a reset . I associated it to AB-Solution and/or Pixelserv. I was only getting 300Mbps until I did a factory reset and then got my full gig speed. I did this twice (installed AB-Solution and Pixelserv and the same thing happened).

FWIW - I have Bandwidth Monitor/App Analysis, web history enabled and 1 OpenVPN client configured.

I can live without AB-Solution.
I noticed this evening that the CPU on my RT-AC88U was running much higher than usual (not 100%, but probably averaging around 50-70%), even with very little traffic on the network. I also noticed that the CPU temperature was higher than usual and when I saw this thread mentioning AB-Solution, I decided to risk uninstalling it. Guess what? The CPU has now dropped back to 2-3% and the CPU temperature has dropped about 5 degrees to 73C.
 
Yeah, something's wrong. I don't think it has anything to with AIProtection being on or off, as I use it and the CPU load on my AC87 is 2-5% during a speedtest @ 1 gbit.

Without FA, I don't think it's possible to reach such CPU usage, especially with AiProtection enabled.

Unfortunately, hardware acceleration is somewhat of a mystery in the ASUS code. Supposedly my AC87 has support for FA acceleration, but I've never managed to get it turned on, regardless of settings or any combination of them. CTF acceleration works fine out of the box, even when I have traffic analysis and qOS turned on.

I have FA enabled and working on my AC87 so it's indeed possible. You need to disable some features (AiProtection, QoS, traffic analyzer, …) and reboot.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top