Community discussions

MikroTik App
 
GiovanniG
Member
Member
Topic Author
Posts: 404
Joined: Sun Nov 15, 2015 4:12 pm

How can I deep debug a 100% CPU load

Sat Aug 07, 2021 2:29 pm

Hi, I have a small hap lite to manage a 3 router in Caps, usually the average load is 2%, ram is fine, FW 6.48.3.
From the log I see caps disconnection, just after the login via Winbox, maybe the problem occours when the system is trying to summarize the status of ther router and send it to me. But I experienced a 100% load for about 1 minute, which is a sign something is wrong here. How can I debug more the problem? How can I know which process exactly overload the cpu?
Thanks
You do not have the required permissions to view the files attached to this post.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12632
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How can I deep debug a 100% CPU load

Sat Aug 07, 2021 2:31 pm

The solution is simple:
The problem is the hAP lite (SMIPS)

Use another router to manage the hAP lite, not the hAP lite to manage 3 routers...
If all the routers are hAP lite, do not use CAPsMAN
 
biomesh
Long time Member
Long time Member
Posts: 574
Joined: Fri Feb 10, 2012 8:25 pm

Re: How can I deep debug a 100% CPU load  [SOLVED]

Sat Aug 07, 2021 2:34 pm

/tool profile
Will be your best help with this.

By chance do you have capsman forwarding enabled? This is a low end CPU and it would be no surprise to see such an issue there.
 
GiovanniG
Member
Member
Topic Author
Posts: 404
Joined: Sun Nov 15, 2015 4:12 pm

Re: How can I deep debug a 100% CPU load

Sat Aug 07, 2021 2:36 pm

but why? It has no sense.. if the average load is little, it sould work fine. THere is a simple problem in FW, something is happening wrong in some circustamces. The caps working fine providing roaming and full bandwith with low cpu level.
This is the log:
You do not have the required permissions to view the files attached to this post.
 
GiovanniG
Member
Member
Topic Author
Posts: 404
Joined: Sun Nov 15, 2015 4:12 pm

Re: How can I deep debug a 100% CPU load

Sat Aug 07, 2021 2:40 pm

/tool profile
Will be your best help with this.

By chance do you have capsman forwarding enabled? This is a low end CPU and it would be no surprise to see such an issue there.
Thanks, this what was I'm looking now, I'll check it when it will happen again
 
MircoADM
just joined
Posts: 16
Joined: Sun Nov 21, 2021 8:40 pm

Re: How can I deep debug a 100% CPU load

Wed Feb 22, 2023 8:40 pm

Hi is a very very old MSG....
but a little hint work sometimes:

disable "CPU FLOW CONTROL" at the switchconfig
so you may have a lower CPU load

Greets
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12632
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How can I deep debug a 100% CPU load

Wed Feb 22, 2023 9:27 pm

Hi is a very very old MSG....
but a little hint work sometimes:

disable "CPU FLOW CONTROL" at the switchconfig
so you may have a lower CPU load

Greets
Not a good idea.

wiki code

[...] such a port is required for management traffic and for routing features.
By default the switch chip ensures that this special CPU port is not congested
and sends out Pause Frames when link capacity is exceeded to make sure the port is not oversaturated,
this feature is called CPU Flow Control. Without this feature packets that might be crucial for routing or management purposes might get dropped.
[...]
it is possible to disable the CPU Flow Control feature on some devices that are using one of the follow switch chips:
Atheros8227, QCA8337, Atheros8327, Atheros7240 or Atheros8316.
Other switch chips have this feature enabled by default and cannot be changed.
[...]