Skip to main content

Xen VM Stress Test

Click here to expand Table of Contents

Test Conditions

Hardware

Box: Xen VM AMD Opteron Dual Core (2x1.7GHz) 64-bit machine, first (O): 256 MB RAM, then 1,5 GB RAM

OS

OS: Ubuntu Linux 6.06 dapper x64, 1GB ramfs when needed, FreeSWITCH Version 1.0.pre3 (7750M)

Tools

Testing tool: SIPp v3.0-TLS-PCAP, version svn424 (http://sipp.sourceforge.net/) with slightly modified* standard uas & uac_pcap scenerios on another box with 1 min. pre-recorded pcap streams

  • the only modification was the path of the pcap file

G711a tests without transcoding

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
11000979/98160 (cons)42(O)15
20/952943120(~113)41.5(O)23
51000/779730/72522043(O)68
101000/879588/82433048(O)100
301000/499461/48030052(O)136
501000/720483/70632053(O)120

With SRTP

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
101000/890673/8543209,6118
301000/688492/67728010.9126
501000/729452/72528011.7118

With recording to ramfs

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
1500494603.28.4
5500460/4612608.877,4
10500/460308/447270(~150-170)1194,3
30500/468314/424267(~150-170)12.3112.1

G711a - Speex transcoding

Complexity: 5, Quality: 5 (default to FS)

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
11000868/10005015(O)167
51000273/10005027(O)167
101000/712169/7125040(O)167

Complexity: 2, Quality: 8 (with -ffast-math, --enable-sse)

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
11000/10001000/10006010(O)49
51000/1000340/99991(~70)37.4(O)157
101000/884250/884100(~60-80)7.18154

Complexity: 1, Quality: 8 (with -ffast-math, --enable-sse)

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
11000994603.533.2
51000/999273/99898(~75-80)10,8147.5
101000/888239/88699(~60-70-80)14,5117.6

Complexity: 1, Quality: 8 (with -ffast-math, --enable-sse) with SRTP

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
51000/999349/99893(~50-60)10,7141
101000/885227/88493(~50-60)11.2153

Complexity: 1, Quality: 8 (with -ffast-math, --enable-sse) with recording to ramfs

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
1500498603.454.8
2500/465355/46485(~70-75)5.8140.6
5500238/50085(~60)6.9154.2
10500170/50085(~40-60)10.3157

No Media Tests (g711a codec)

CPSSend/Received INVITE'sSend/Received ACK'sMaximum concurrent callsMEM(%)CPU(%)
501032/347269/3472406.747
1001007/246223/2462237.754
1501003/1681681687.961

Experience

  • With high CPS and concurrent calls there was 1 sec. delay in live conversation sometimes
  • Tried recording to hard disk but it was very slow, the system usually hanged eventually
  • On a 32bit box we couldn't get more then 350 threads out of it. Shrinking the thread stack size did not help either. With a 64-bit OS, that problem never occurred. (exact same hardware)