FreeSWITCH CPU Usage
From FreeSWITCH Wiki
Many IT professionals are concerned with CPU Usage of their various servers. In Linux systems the top utility displays CPU and memory utilization for all running processes on the server. What does it mean when FreeSWITCH uses "a lot" of CPU, even when "idle"? This article will discuss these and other questions.
If you follow the FreeSWITCH users mailing list you will no doubt recall some memorable threads about FreeSWITCH consuming "a lot" of CPU usage. One memorable thread, "What FS is doing when idle?" dealt with the "troubling" situation of FreeSWITCH consuming a gluttonous 2% of CPU usage when "idle." The OP was under the impression that "a program should not show up in top when it is idle." This statement makes unnecessary and even dangerous assumptions. Firstly, FreeSWITCH is not merely a "program" like an email client; it is a powerful server application. Secondly, FreeSWITCH is never truly "idle" in the way people think. Just because there are no phone calls doesn't mean that FreeSWITCH is somehow "idle." A FreeSWITCH server that consume 2% with zero calls may just as well consume 2% when there are 10 calls.
So, what do the CPU usage and load averages mean when running FreeSWITCH?
CPU Load Average
- Please don't assume you know more than Anthony and the other developers
- To quote Douglas Adams: Don't Panic!