Author Topic: high cpu usage of an idle yate pbx  (Read 4299 times)

abma

  • Newbie
  • *
  • Posts: 19
    • View Profile
high cpu usage of an idle yate pbx
« on: April 18, 2016, 08:18:14 AM »
i've setup a yate server with ~100 SIP clients connecting via TLS/SSIP.

yate spans a lot "YSIP Worker" threads where every thread consumes ~ 1% CPU.

so in total Yate uses 50% of one CPU Core when idling.

Basicly its ubuntu default config of yate 5.4.

Is this cpu load normal?
How can the idle cpu load of yate reduced?

output of perf top:

Code: [Select]
  18,38%  [kernel]                    [k] finish_task_switch
  13,89%  libcrypto.so.1.0.0          [.] 0x00000...
   7,58%  [kernel]                    [k] _raw_spin_unlock_irqrestore
   2,42%  ysipchan.yate               [.] _init
   1,80%  [kernel]                    [k] tcp_recvmsg


tcpdump reports basicly no traffic (1 packet / 10 seconds or so...)

abma

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: high cpu usage of an idle yate pbx
« Reply #1 on: April 20, 2016, 03:58:32 AM »
more verbose ouput with perf top --call-graph dwarf

Code: [Select]
-   52,38%     2,09%  ysipchan.yate              [.] _init
   - _init                                                                         
      - 45,23% _init                                                       
           44,47% _ZN9TelEngine13ThreadPrivate3runEv
              _ZN9TelEngine13ThreadPrivate9startFuncEPv
              start_thread                                                               
              __clone                                                                     
           0,75% _init                                                                   
      - 25,28% _ZN9TelEngine13ThreadPrivate3runEv   
           _ZN9TelEngine13ThreadPrivate9startFuncEPv   
           start_thread                                                                 
           __clone