[Serusers] vmstat: a lot of CS while writing memory back to database

Markus Monka mmonka at netzquadrat.de
Fri Aug 12 17:58:12 CEST 2005


Hi,

can someone explain me, why we got a lot of context switches
while write back the memory to database? 

modparam("usrloc", "db_mode", 2)
modparam("usrloc", "timer_interval", 30)

Looks like we have 2000 querys in that periode.

procs -----------memory---------- ---swap-- -----io---- --system--
----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy
id wa
 0  0  10716  15752 111820 793044    0    0     0   136 1292  2491  1  1
98  0
 0  0  10716  15752 111820 793048    0    0     0     0 1079  1935  1  1
98  0
12  0  10716  15616 111824 793136    0    0     0     0 1896 298403 10
69 21  0
13  0  10716  15616 111824 793136    0    0     0     0 2259 400436 12
88  0  0
 0  0  10716  15608 111824 793152    0    0     0     0 1691 101200  5
25 70  0

Would by write through a better solution for saving data in db?

While SER is saving the Data, some register request are timing out.

test by sipsak:

All usrloc tests completed successful.
received last message 12.012 ms after first request (test duration).

All usrloc tests completed successful.
received last message 12.069 ms after first request (test duration).

All usrloc tests completed successful.
received last message 9.171 ms after first request (test duration).

All usrloc tests completed successful.
received last message 8.777 ms after first request (test duration).
timeout after 500 ms

All usrloc tests completed successful.
received last message 6.185 ms after first request (test duration).

All usrloc tests completed successful.
received last message 7.754 ms after first request (test duration).

All usrloc tests completed successful.
received last message 7.645 ms after first request (test duration).

All usrloc tests completed successful.
received last message 10.153 ms after first request (test duration).
timeout after 500 ms
timeout after 1000 ms


version: ser 0.8.14-4 (i386/linux)
flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK,
SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
@(#) $Id: main.c,v 1.168.4.3.2.1 2004/10/22 17:21:32 andrei Exp $
main.c compiled on 12:47:12 Jul 12 2005 with gcc 3.3


Greets 
Markus




More information about the sr-users mailing list