Browse code

- changed makefile for performance & updated perf. tests cfgs

Andrei Pelinescu-Onciul authored on 20/09/2002 18:21:39
Showing 4 changed files
... ...
@@ -102,7 +102,8 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
102 102
 	 -DSHM_MEM  -DSHM_MMAP \
103 103
 	 -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 \
104 104
 	 -DUSE_IPV6 \
105
-	 # -DF_MALLOC \
105
+	 -DF_MALLOC \
106
+	 -DNO_DEBUG \
106 107
 	 #-DEXTRA_DEBUG \
107 108
 	 #-DDBG_QM_MALLOC \
108 109
 	 #-DVQ_MALLOC  
109 110
new file mode 100644
... ...
@@ -0,0 +1,34 @@
1
+#$Id$
2
+#
3
+# ser measurements
4
+
5
+date: 20.09.2002
6
+
7
+hardware: dorian 2*Athlon 1200 (ser) <=gigabit=> mobile34 2*PIII 900 (turbosip)
8
+
9
+version: ser 0.8.7-14-gpl (i386/Linux)
10
+flags: STATS:Off, USE_IPV6, NO_DEBUG, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC,
11
+FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
12
+MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 3040
13
+
14
+ser command: ./ser -f test/test-throughput.cfg -l 10.0.0.179 -n 1 -D 
15
+ser command: ./ser -f test/th-uri-fast.cfg     -l 10.0.0.179 -n 1 -D -m 256
16
+
17
+test calls: 100000 
18
+
19
+stateless:
20
+
21
+                  throttle      1 proc (cps)   2 procs (cps)   4 procs (cps) 
22
+ser   gcc-3.2      20            3093  2967     3267  3398       3536  3549
23
+                  100            4587  4669     5011  5181       4872  4985 
24
+                  150            4920  4836     5161  5127       5122  5134
25
+
26
+tm:
27
+
28
+ser  gcc-3.2      20             2456  2448     3158  3147       3137  3179
29
+                 100             2535  2535     3429  3445       3399  3365
30
+                 150             2537* 2542*    3448  3473       3359  3407*
31
+                 200             2546* 2560*    3434* 2948+      3365* 3425*
32
+
33
+(*) - retransmissions ( 500ms)
34
+(+) - retransmissions (2000ms)
... ...
@@ -2,12 +2,12 @@ debug=0			# for speed
2 2
 check_via=0
3 3
 dns=off
4 4
 rev_dns=off
5
-fork=no
5
+#fork=yes
6 6
 log_stderror=yes
7
-children=8
7
+#children=8
8 8
 
9 9
 route{
10 10
 
11
-forward(127.0.0.1,5061);
11
+forward(uri:host, uri:port);
12 12
 }
13 13
 
... ...
@@ -7,57 +7,27 @@
7 7
 
8 8
 debug=1          # debug level (cmd line: -dddddddddd)
9 9
 #fork=yes          # (cmd. line: -D)
10
-fork=no
10
+#fork=no
11 11
 log_stderror=yes # (cmd line: -E)
12 12
 #log_stderror=no	# (cmd line: -E)
13 13
 
14 14
 
15
-children=8
15
+#children=8
16 16
 check_via=no     # (cmd. line: -v)
17 17
 dns=no          # (cmd. line: -r)
18 18
 rev_dns=no      # (cmd. line: -R)
19 19
 #port=5070
20
-listen=127.0.0.1
20
+#listen=127.0.0.1
21 21
 #listen=195.37.77.101
22
-loop_checks=0
23 22
 # for more info: sip_router -h
24 23
 
25 24
 #modules
26 25
 #loadmodule "modules/print/print.so"
27 26
 loadmodule "modules/tm/tm.so"
28
-loadmodule "modules/rr/rr.so"
29
-loadmodule "modules/maxfwd/maxfwd.so"
27
+#loadmodule "modules/rr/rr.so"
28
+#loadmodule "modules/maxfwd/maxfwd.so"
30 29
 
31 30
 
32 31
 route{
33
-             if ( mf_is_maxfwd_present() )
34
-             {
35
-                   if ( !mf_decrement_maxfwd() )
36
-                   {
37
-                     log("SER : unable to decrement MAX_FORWARD!\n");
38
-                   };
39
-                   if ( mf_is_maxfwd_zero() )
40
-                   {
41
-                     log("SER: MAX FORWARD header is zero\n");
42
-                     drop();
43
-                   };
44
-             }else{
45
-                   mf_add_maxfwd_header( "10" );
46
-             };
47
-
48
-             #if ( !rewriteFromRoute() )
49
-             #{
50
-                log( " SER : no route found!\n");
51
-               # if ( method=="INVITE" )
52
-               # {
53
-                   #log ("SER : INVITE found - > adding RecordRoute!\n");
54
-                   #addRecordRoute();
55
-                #};
56
-             #}
57
-             #else
58
-             #{
59
-             #   log( "SER : ROUTE found! \n");
60
-             #};
61
-
62 32
              t_relay();
63 33
 }