Dave Jong A Lock schrieb: > Hi all, > > How much memory does kannel use when receiving approx. 70 msg/min. ? > Is there a way to increase the use of memory (is it needed to do this) ? > Will increasing memory result in faster handling of receiving/sending > messages? > > I know most of the sending / receiving speed depends on the smsc, but > just wonderung if I can do anything on my side.
Hi Dave, Kannel doesn't consume large chunks of memory. In fact we do a lot of Octstr* manipulation internally, which resulting in sub-sequent malloc()/free() calls, causing some fragmentation of the memory. glibc is (in some extend) intelligent enough to bucketize the memory chunks, but I would like to see an own memory pool management layer in Kannel, i.e. as Apache's APR does it ;) So, there is no real correlation from the amount of memory you have phsyically in the machine and how "fast" Kannel operates. Kannel can handle approx. 800-1000 msg/sec. on normal production class machines without any problem. What you may see is a considerable large memory allocation by the daemons if you use a lot of SMSC connections. Reason is simple: In pthreads each thread gets an own stack size segment, and some Linux distros have choosen to set this value considerable high. I.e. my Fedora Core boxes show: $ ulimit -Ss 10240 which means 10M are allocated for EACH thread. If you use 50 SMSC connections, this consumes already more then 500M for the "pure existence" of the runtime ;) Use the 'ulimit -Ss' shell env to reduce the stack size per thread to something around 256K, which will result in a lesser consumption of memory. But again, this yields no performance speed. (BTW, I guess the Linnux distros did this considerable high default value for the sake of mysql? ... I haven't reserved for evidence, but my guess ;) Stipe -- ------------------------------------------------------------------- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org -------------------------------------------------------------------
