[Freeswitch-users] Freeswitch performance issues

Vladimir Getmanshchuk vladget at gmail.com
Fri Jul 12 12:11:59 MSD 2013


Strange performance issue on KVM guest.
I have freeswitch which use mod_lua for lcr routing backended on portgresql
database.

channel
variables:max_forwards=70,proxy_media=true,disable-transcoding=true,absolute_codec_string='PCMA,PCMU,G729,GSM'}

*# cat /proc/cpuinfo*
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6932.92
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6933.91
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6934.28
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6933.86
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6934.19
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6934.22
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6934.04
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 3466.462
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36
clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt
hypervisor lahf_lm
bogomips : 6932.81
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

=============================================================
*# fs_cli --execute="show modules"
*
type,name,ikey,filename
api,...,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,acl,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,alias,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,banner,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,bgapi,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,bg_system,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,break,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,chat,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
api,complete,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,cond,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,console,mod_console,/usr/local/freeswitch/mod/mod_console.so
api,console_complete,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,console_complete_xml,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,create_uuid,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,db_cache,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,domain_exists,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,echo,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,enum,mod_enum,/usr/local/freeswitch/mod/mod_enum.so
api,enum_auto,mod_enum,/usr/local/freeswitch/mod/mod_enum.so
api,escape,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,eval,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,event_sink,mod_event_socket,/usr/local/freeswitch/mod/mod_event_socket.so
api,expand,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,file_exists,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,find_user_xml,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,fsctl,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,global_getvar,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,global_setvar,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,group_call,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,help,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,host_lookup,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,hostname,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,hupall,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,in_group,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,is_lan_addr,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,limit_hash_usage,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,limit_interval_reset,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,limit_reset,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,limit_status,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,limit_usage,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,list_users,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,load,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,log,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,lua,mod_lua,/usr/local/freeswitch/mod/mod_lua.so
api,luarun,mod_lua,/usr/local/freeswitch/mod/mod_lua.so
api,md5,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,module_exists,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,msleep,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,nat_map,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,originate,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,page,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
api,pause,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,presence,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
api,regex,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,reg_url,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,reload,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,reloadacl,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,reloadxml,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,replace,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,say_string,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,sched_api,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,sched_broadcast,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,sched_del,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,sched_hangup,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,sched_transfer,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,show,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,shutdown,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,sofia,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
api,sofia_contact,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
api,sofia_count_reg,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
api,sofia_dig,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
api,sofia_gateway_data,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
api,sofia_username_of,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
api,sql_escape,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,start_tdd_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
api,start_tone_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
api,status,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,stop_tdd_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
api,stop_tone_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
api,strepoch,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
api,strftime,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
api,strftime_tz,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,strmicroepoch,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
api,stun,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,switchname,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,system,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,timer_test,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,time_test,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,tone_detect,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,unload,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,unsched_api,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,url_decode,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,url_encode,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,user_data,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,user_exists,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_answer,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_audio,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_break,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_bridge,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_broadcast,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_buglist,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_chat,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_debug_audio,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_deflect,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_displace,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_display,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_dual_transfer,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_dump,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_early_ok,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_exists,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_fileman,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_flush_dtmf,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_getvar,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_hold,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_jitterbuffer,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_kill,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_limit,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_limit_release,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_loglevel,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_media,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_media_reneg,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_outgoing_answer,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_park,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_pause,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_phone_event,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_pre_answer,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_preprocess,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_record,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_recovery_refresh,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_recv_dtmf,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_send_dtmf,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_send_info,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_send_message,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_send_tdd,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
api,uuid_session_heartbeat,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_setvar,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_setvar_multi,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_simplify,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_transfer,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_video_refresh,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,uuid_zombie_exec,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,version,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,xml_flush_cache,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,xml_locate,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
api,xml_wrap,mod_commands,/usr/local/freeswitch/mod/mod_commands.so
application,answer,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,att_xfer,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,bind_digit_action,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,bind_meta_app,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,blind_transfer_ack,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,block_dfmf,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,break,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,bridge,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,bridge_export,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,capture,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,check_acl,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,clear_digit_action,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,clear_speech_cache,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,cng_plc,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,deflect,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,delay_echo,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,detect_speech,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,digit_action_set_realm,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,displace_session,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,early_hangup,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,eavesdrop,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,echo,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,enable_heartbeat,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,endless_playback,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,enum,mod_enum,/usr/local/freeswitch/mod/mod_enum.so
application,eval,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,event,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,execute_extension,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,export,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,fax_detect,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,flush_dtmf,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,gentones,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,hangup,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,hold,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,info,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,intercept,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,ivr,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,jitterbuffer,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,limit,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,limit_execute,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,limit_hash,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,limit_hash_execute,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,log,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,lua,mod_lua,/usr/local/freeswitch/mod/mod_lua.so
application,mkdir,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,multiset,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,mutex,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,page,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,park,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,park_state,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,phrase,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,pickup,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,play_and_detect_speech,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,play_and_get_digits,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,playback,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,pre_answer,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,preprocess,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,presence,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,privacy,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,push,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,queue_dtmf,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,read,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,record,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,record_session,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,recovery_refresh,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,redirect,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,remove_bugs,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,rename,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,respond,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,ring_ready,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,rxfax,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,say,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,sched_broadcast,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,sched_cancel,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,sched_hangup,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,sched_heartbeat,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,sched_transfer,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,send_display,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,send_dtmf,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,send_info,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,session_loglevel,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set_audio_level,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set_global,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set_mute,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set_name,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set_profile_var,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set_user,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,set_zombie_exec,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,sleep,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,socket,mod_event_socket,/usr/local/freeswitch/mod/mod_event_socket.so
application,sofia_sla,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
application,soft_hold,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,sound_test,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,spandsp_detect_tdd,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_inject_tdd,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_send_tdd,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_start_dtmf,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_start_fax_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_stop_detect_tdd,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_stop_dtmf,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_stop_fax_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,spandsp_stop_inject_tdd,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,speak,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,start_dtmf,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,start_dtmf_generate,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,start_tone_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,stop,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,stop_displace_session,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,stop_dtmf,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,stop_dtmf_generate,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,stop_record_session,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,stop_tone_detect,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,stop_tone_detect,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,strftime,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,system,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,t38_gateway,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,three_way,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,tone_detect,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,transfer,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,txfax,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
application,unbind_meta_app,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,unblock_dtmf,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,unhold,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,unloop,mod_loopback,/usr/local/freeswitch/mod/mod_loopback.so
application,unset,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,unshift,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,verbose_events,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,video_refresh,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,wait_for_answer,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
application,wait_for_silence,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
chat,api,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
chat,event,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
chat,sip,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
codec,ADPCM (IMA),mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.711 alaw,CORE_PCM_MODULE,/CORE_PCM_MODULE.so
codec,G.711 ulaw,CORE_PCM_MODULE,/CORE_PCM_MODULE.so
codec,G.722,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.723.1 6.3k,mod_g723_1,/usr/local/freeswitch/mod/mod_g723_1.so
codec,G.726 16k,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.726 16k (AAL2),mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.726 24k,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.726 24k (AAL2),mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.726 32k,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.726 32k (AAL2),mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.726 40k,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.726 40k (AAL2),mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,G.729,mod_g729,/usr/local/freeswitch/mod/mod_g729.so
codec,GSM,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,LPC-10,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
codec,PROXY PASS-THROUGH,CORE_PCM_MODULE,/CORE_PCM_MODULE.so
codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE,/CORE_PCM_MODULE.so
codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE,/CORE_PCM_MODULE.so
dialplan,enum,mod_enum,/usr/local/freeswitch/mod/mod_enum.so
dialplan,inline,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
dialplan,LUA,mod_lua,/usr/local/freeswitch/mod/mod_lua.so
dialplan,XML,mod_dialplan_xml,/usr/local/freeswitch/mod/mod_dialplan_xml.so
endpoint,error,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
endpoint,group,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
endpoint,h323,mod_h323,/usr/local/freeswitch/mod/mod_h323.so
endpoint,loopback,mod_loopback,/usr/local/freeswitch/mod/mod_loopback.so
endpoint,modem,mod_spandsp,/usr/local/freeswitch/mod/mod_spandsp.so
endpoint,pickup,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
endpoint,rtp,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
endpoint,sofia,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
endpoint,user,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
file,adpcm,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,aiff,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,al,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,alaw,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,au,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,avr,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,caf,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,file_string,mod_dptools,/usr/local/freeswitch/mod/mod_dptools.so
file,gsm,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,htk,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,iff,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,mat,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,paf,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,pvf,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,r16,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,r24,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,r32,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,r8,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,raw,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,sd2,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,sds,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,sf,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,ul,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,ulaw,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,voc,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,w64,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,wav,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,wve,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
file,xi,mod_sndfile,/usr/local/freeswitch/mod/mod_sndfile.so
management,1001,mod_sofia,/usr/local/freeswitch/mod/mod_sofia.so
timer,soft,CORE_SOFTTIMER_MODULE,/CORE_SOFTTIMER_MODULE.so

342 total.
=============================================================

*#fs_cli --execute="show detailed_calls" | grep total*
116 total.
=============================================================

*# ps ax | grep freeswitch*
 4629 ?        S<l  478:14 freeswitch -nc -nonat -rp
14950 pts/2    S+     0:00 grep --color=auto freeswitch
=============================================================


*# cat /proc/4629/limits *
Limit                     Soft Limit           Hard Limit           Units

Max cpu time              unlimited            unlimited            seconds

Max file size             unlimited            unlimited            bytes

Max data size             unlimited            unlimited            bytes

Max stack size            245760               8388608              bytes

Max core file size        unlimited            unlimited            bytes

Max resident set          unlimited            unlimited            bytes

Max processes             unlimited            unlimited
 processes
Max open files            999999               999999               files

Max locked memory         65536                65536                bytes

Max address space         unlimited            unlimited            bytes

Max file locks            unlimited            unlimited            locks

Max pending signals       63752                63752                signals

Max msgqueue size         819200               819200               bytes

Max nice priority         0                    0
Max realtime priority     unlimited            unlimited
Max realtime timeout      unlimited            unlimited            us

=============================================================
*# mount | grep tmpfs | grep /usr/local/freeswitch/db *
tmpfs on /usr/local/freeswitch/db type tmpfs (rw)

*# grep /dev/shm
/usr/local/freeswitch/conf/autoload_configs/switch.conf.xml *
    <param name="core-db-name" value="/dev/shm/core.db"/>

*# vmstat 1 10*
procs -----------memory---------- ---swap-- -----io---- -system--
----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id
wa
 1  0      0 6016128 181640 1473820    0    0    13    24   45  304  9 13
78  0
 0  0      0 6016020 181640 1473936    0    0     0    48 19832 22060 13 20
67  0
 0  0      0 6016076 181640 1473984    0    0     0    96 19100 21048 14 17
69  0
 0  0      0 6016180 181648 1474032    0    0     0    52 19814 22302 14 19
67  0
 0  0      0 6016764 181648 1474144    0    0     0    80 16483 17134 11 13
76  0
 0  0      0 6016636 181648 1474292    0    0     0   656 20314 22464 14 20
66  1
 2  0      0 6016536 181648 1474412    0    0     0   104 20861 23679 10 24
66  1
 0  1      0 6016624 181648 1474548    0    0     0    96 19267 21027 10 20
70  0
 1  0      0 6016736 181648 1474676    0    0     0   112 20107 22805 16 18
65  0
 0  0      0 6016752 181648 1474732    0    0     0    64 18041 19181  8 20
72  0


So as you can see we have only 110 calls and 70 cpu idle!
Please help to find bottleneck.


-- 
Yours sincerely,
Vladimir Getmanshchuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130712/430a99a9/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list