[Freeswitch-users] Freeswitch CPU consumption on AWS EC2
Sergey Safarov
s.safarov at gmail.com
Mon Oct 12 07:30:06 UTC 2020
my test results using sipp script + FreeSWITCH docker container + PCMU
on c5.4xlarge instance only audio stream. Each call duration is 200 seconds.
Tested Kazoo all-in-one install. So, here some overhead exit for Elang
components.
According to load test on c5.4xlarge Amazon instance after 282 seconds is
reached 1258 simultaneous calls at 6 calls per second rate. During the test
all calls and registrations are successful. During the test CPU load is
reached 79% value, memory usage 7Gb, and 150 mb/s total network usage over
all docker containers on "all-in-one" Kazoo configuration.
Sergey
On Sun, Oct 11, 2020 at 1:51 PM <ziv at ip-com.co.il> wrote:
> Hi,
>
>
>
> We run FreeSWITCH on Amazon AWS EC2, using the c5.xlarge machine size,
> meaning 4 CPUs with hyper-threading, sums up to 8 vCpu.
>
> In time of high-traffic, the system is reaching 100% CPU at about 400
> concurrent sessions, which is typically 200 calls (2 sessions per call).
>
> RTP is sent as G-711. SIP signaling is this test is UDP (no TCP or other
> protocols).
>
> These numbers are after reducing the log level and moving the core-dsn to
> memory.
>
> The dialplan in this test is very simple.
>
> ulimit values are as recommended in FreeSWITCH documentation.
>
> On thread level, we see many threads that consume <1.5% CPU. Several
> threads consume more, apparently the signaling.
>
>
>
> Question:
>
> Do these numbers make sense? We expected to see much more traffic before
> the CPU is congested.
>
> Are there simple tricks to reduce the CPU usage (as we did with changing
> the log level)
>
> Is there a way to analyze the CPU consumption so we can try and improve?
>
>
>
> Thanks
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20201012/34eff495/attachment.html>
More information about the FreeSWITCH-users
mailing list