Asterisk using single CPU

Hello,

I am using asterisk 16.x version and seeing asterisk using single Core i.e. one processor only out of 80 we have enoug hardware resource but still when load asterisk does distributes load across multiple cpus. my OS is opensuse

any insight and help would be of great help, appreciate and thanks in advance.

Regards
CJ

How are you determining that it is only using one core?

Hello ,

When I check using glances I see asterisk on 1 cpu only with 127 % utilization.

Regards
CJ

127% is more than one core.

yes but it is not dividing load on another core, since i do not see asterisk dividing load on another core.

Regards
CJ

CPU usage reporting works funky in Linux. The fact it’s showing you 127% CPU usage on a process means it’s multi-threading it among cores. It doesn’t show you what cores it’s running on because the kernel is scheduling all of that behind the scenes. It will run on core 0 or 12 or 45 depending on which it shows as free.

The usage is based on usage for a single processor. Yes, it’s weird; but that is usually how it works. 800% CPU usage would mean it’s using 8 full cores.

System load is usually shown relative to a single core too:
16:13:53 up 2 days, 14:18, 1 user, load average: 1.29, 1.19, 1.33

This just means I’m using about 1 and a third of my 8 cores. That number isn’t a problem until it hits 8 or higher.

In the listing produced by the “top” program, you can press “1” to break down CPU usage by individual CPUs, instead of aggregated for each process.

Another useful key is “H” (note capital, not “h”), to show usage by thread rather than process.