I am using kannel cvs-20040621, when I configure I see

checking working pthreads....no -- please see attache file

I was able to compile kannel though, and I'm using cimd2 protocol to service 
transactions and send sms push messages. But I'm experiencing a low 
throughput of 5sms/sec or worst to 2-3sms/sec. Worst is when I do bulk push, 
using http sendsms, the queued messages in the store file keep on increasing, 
and the transactions per second(msg/sec) rate at which kannel is sending out 
the messages keeps on getting worse. I disabled all delivery report request 
and still, the same rate continues. Any ideas? 

FYI, I tried to test the CIMD2 protocol using the test_cimd2 program w/c I 
found together with the kannel source. I run it w/in our network, and I am 
getting a rate of about more than a 100/sec. Can't really figureout what is 
wrong.

How can I speed up this performance? Is this because of the "checking working 
pthreads" thing  in the config.  I am alos attaching the kannel.conf file, 
incase there lies my problems. Thanks in advance.  

 



-- 
Josephine G. Forte
Applications Developer
Intermedia Solutions, Inc. 
64 Washington St. GreenHills, San Juan, M.M.
Tel. No.  +632 7261443 Fax +632 7276134
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:637: checking cvs checkout date
configure:704: checking host system type
configure:764: checking for gcc
configure:877: checking whether the C compiler (gcc -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE  -rdynamic) works
configure:893: gcc -o conftest -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE   -rdynamic conftest.c  1>&5
configure:919: checking whether the C compiler (gcc -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE  -rdynamic) is a cross-compiler
configure:924: checking whether we are using GNU C
configure:952: checking whether gcc accepts -g
configure:995: checking for a BSD compatible install
configure:1050: checking for ranlib
configure:1082: checking for bison
configure:1082: checking for byacc
configure:1115: checking for flex
configure:1149: checking for yywrap in -ll
configure:1193: checking for convert
configure:1228: checking for perl
configure:1263: checking size of short
configure:1302: checking size of int
configure:1341: checking size of long
configure:1380: checking size of long long
configure:1429: checking for log in -lm
configure:1476: checking for accept in -lsocket
configure:1523: checking for inet_ntoa in -lnsl
configure:1570: checking for inet_ntop in -lresolv
configure:1617: checking for inet_ntop in -lbind
configure:1664: checking for pthread_exit in -lpthread
configure:1746: checking for libiconv in -liconv
configure:1788: checking how to run the C preprocessor
configure:1868: checking for ANSI C header files
configure:1975: checking for sys/ioctl.h
configure:1975: checking for sys/time.h
configure:1975: checking for sys/types.h
configure:1975: checking for unistd.h
configure:1975: checking for sys/poll.h
configure:2015: checking for pthread.h
configure:2015: checking for getopt.h
configure:2015: checking for syslog.h
configure:2015: checking for iconv.h
configure:2015: checking for zlib.h
configure:2015: checking for execinfo.h
configure:2015: checking for stdlib.h
configure:2055: checking for sys/socket.h
configure:2055: checking for sys/sockio.h
configure:2055: checking for net/if.h
configure:2055: checking for netinet/in.h
configure:2055: checking for semaphore.h
configure:2101: gcc -c -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE  conftest.c 1>&5
configure:2120: gcc -c -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE  conftest.c 1>&5
configure:2137: checking for gettimeofday
configure:2137: checking for select
configure:2137: checking for socket
configure:2137: checking for strdup
configure:2137: checking for getopt_long
configure:2137: checking for localtime_r
configure:2137: checking for gmtime_r
configure:2137: checking for backtrace
configure:2137: checking for srandom
configure:2190: checking for getopt
configure:2241: checking for gethostbyname_r
configure:2284: checking for which type of gethostbyname_r
configure:2456: checking for socklen_t in <sys/socket.h>
configure:2495: checking for getopt in <stdio.h>
configure:2529: checking for getopt in <unistd.h>
configure:2568: checking for regex.h
configure:2600: checking for regcomp
configure:2669: checking for working pthreads
configure:2700: gcc -o conftest -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE   -rdynamic conftest.c -lresolv -lnsl -lm  -lpthread 1>&5
configure: failed program was:
#line 2674 "configure"
#include "confdefs.h"
#include <pthread.h>
#include <unistd.h>
int pid;
void testpid(void* foo);
int main(void){
    pthread_t child;
    pid=getpid();
    pthread_create(&child,NULL,(void*)testpid,NULL);
    pthread_join(child,NULL);
    return 0;
}
void testpid(void* foo){
    int mypid=getpid();
    if(mypid!=pid){
        /* Pthreads states that all threads should have the same PID
         * we dont!
         */
        exit(1);
    }else{
        exit(0);
    }
}

configure:2714: checking for pthread_spinlock support
configure:2729: gcc -c -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -DBROKEN_PTHREADS=1  conftest.c 1>&5
configure:2744: checking for pthread_rwlock support
configure:2761: gcc -c -g -pthread -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -DBROKEN_PTHREADS=1  conftest.c 1>&5
configure:2788: checking for xml2-config
configure:2828: checking libxml version
configure:2872: checking whether to compile with PCRE support
configure:3151: checking for jade
configure:3181: checking for jadetex
configure:3211: checking for pdfjadetex
configure:3241: checking for dvips
configure:3271: checking for fig2dev
configure:3301: checking for convert
configure:3342: checking for /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl
configure:3342: checking for /usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl
configure:3342: checking for /usr/share/sgml/docbook/dsssl-stylesheets-1.59/html/docbook.dsl
configure:3342: checking for /usr/share/sgml/docbook/dsssl-stylesheets-1.77/html/docbook.dsl
configure:3342: checking for /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl
configure:3382: checking for /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl
configure:3382: checking for /usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl
configure:3382: checking for /usr/share/sgml/docbook/dsssl-stylesheets-1.59/print/docbook.dsl
configure:3382: checking for /usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl
configure:3382: checking for /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl
configure:3566: checking which malloc to use
configure:3955: checking whether to compile with SSL support
configure:4280: checking whether to compile with MySQL support
configure:4570: checking whether to compile with LibSDB support
configure:4746: checking whether to compile with SQLite support
configure:4898: checking whether to compile with Oracle support
configure:5097: checking whether to compile with PostgresSQL support
##########################################################################
#
#   Kannel Configuration File (CIMD2)
#   Last Modified March 08, 2004
#
##########################################################################

########### KANNEL CORE CONFIGURATION ##########################

group = core
admin-port = 13000
admin-password = xxxx
status-password = xxxx
admin-deny-ip = "192.168.42.*"
admin-allow-ip = "192.168.0.*"
smsbox-port = 13001
wapbox-port = 13002
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.0.*"
wdp-interface-name = "*"
log-file = "kannel.log"
log-level = 1
access-log = "access.log"
store-file = "kannel.store"
maximum-queue-length = -1
dlr-storage = internal



############### SMSC configuration #############################

group = smsc
smsc = cimd2
smsc-id = send
host= xxx.xxx.xx.xx
port = 9999
connect-allow-ip = 127.0.0.1
smsc-username = xxxx
smsc-password = xxxx
keepalive = 60
sender-prefix = ""
denied-smsc-id=receive

group = smsc
smsc = cimd2
smsc-id = receive
host = xxx.xxx.xx.x
port = 9999
connect-allow-ip = 127.0.0.1
smsc-username = xxxx
smsc-password = xxxx
keepalive = 60
sender-prefix = ""
denied-smsc-id=send

#############3 WAPBOX configuration ##############################

group = wapbox
bearerbox-host = localhost
log-file = "wapbox.log"
log-level = 1
syslog-level = none
#force-sar = none
smart-errors = true


######### PPG core configuration for push initiator interface ##############

group = ppg
#ppg-url = /wappush
ppg-url = /cgi-bin/wap-push.cgi
ppg-port = 8080
global-sender = xxx
concurrent-pushes = 100
users = 1024
ppg-allow-ip = "*.*.*.*"
trusted-pi = true

###############3 PPG user group ############################

group = wap-push-user
wap-push-user = foo
ppg-username = foo
ppg-password = bar
allow-ip = 192.168.0.0


##############33 SMSBOX configuration ##########################3

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
global-sender = xxx
log-file = "smsbox.log"
log-level = 1
access-log = "access.log"
reply-couldnotfetch = "could not fetch content, sorry"
reply-couldnotrepresent = "resuld could not be represented as an SMS message."
reply-requestfailed = "request failed"
reply-emptymessage = "<Emty reply from service provider>"
mo-recode = true

######################3 SENDSMS configuration ##############################

group = sendsms-user
username = xxxx
password = xxxx
max-messages = 3
concatenation = true
forced-smsc = send

#################### SMS-services ####################################

# Default
group = sms-service
keyword = default
get-url = "http://192.168.0.158/nop.php?from_no=%p&to_no=%P&message=%a";
accepted-smsc = receive
catch-all = true
max-messages = 3
assume-plain-text = true
concatenation = false
split-chars = "\t"
omit-empty = true

group = sms-service
keyword = nop
get-url = "http://192.168.0.158/nop.php?from_no=%p&to_no=%P&message=%a";
catch-all = true
accepted-smsc = receive
catch-all = true
max-messages = 3
assume-plain-text = true
concatenation = false
split-chars = "\t"
omit-empty = true

group = sms-service
keyword = mega
get-url = "http://192.168.0.158/smart.php?from_no=%p&to_no=%P&message=%a";
catch-all = true
max-messages = 3
assume-plain-text = true
concatenation = false
split-chars = "\t"
omit-empty = true
accepted-smsc = receive

group = sms-service
keyword = new
get-url = "http://192.168.0.158/smart.php?from_no=%p&to_no=%P&message=%a";
catch-all = true
max-messages = 3
assume-plain-text = true
concatenation = false
split-chars = "\t"
omit-empty = true
accepted-smsc = receive

Reply via email to