Dear Sir, I am writing to thank you for your letter and reply with some perplexing results.
In a nutshell, ntop CVS of 17 Oct 2003 shows no aberrant CPU usage without the -p option; with -p and the protocol list used when this aberrant performance was reported, the high CPU usage returns. Please find below the thread information and a subset of the truss output when the CPU consumption was between 20 and 50%. On Fri, Oct 24, 2003 at 11:18:45AM -0500, Burton M. Strauss III wrote: > S: > > On my little text box, top shows this as ntop is starting up, through the > 1st idle purge: > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 19087 ntop 2 0 25756K 15048K poll 0:16 20.89% 18.07% ntop > > Running under gdb shows this: > > Program received signal SIGINT, Interrupt. > 0x2830656c in __sys_poll () from /usr/lib/libc_r.so.4 > (gdb) info stack > #0 0x2830656c in __sys_poll () from /usr/lib/libc_r.so.4 > #1 0x28305ab8 in _thread_kern_sched_state_unlock () from > /usr/lib/libc_r.so.4 > #2 0x2830547d in _thread_kern_scheduler () from /usr/lib/libc_r.so.4 > #3 0x0 in ?? () > (gdb) info thread > 8 process 19189, thread 8 0x28304e7b in _thread_kern_sched () from > /usr/lib/libc_r.so.4 > > Now once IDLE_PURGE finishes, top looks like this: > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 196 ntop 2 0 5292K 2168K select 0:13 0.00% 0.00% sshd > 19189 ntop 2 0 25772K 14940K poll 0:10 0.00% 0.00% ntop > 19090 ntop 2 0 5292K 2168K select 0:01 0.00% 0.00% sshd > > But as soon as it kicks back in (every 2m), we're back to higher %s > .. snip .. > We've always known idle purge was expensive, but for under FreeBSD, it's > huge: > > 24/Oct/2003 11:07:10 IDLE_PURGE: FINISHED selection, 1 [out of 7] hosts > selected [MSGID0825709] > 24/Oct/2003 11:07:11 IDLE_PURGE: Device 0 [sis0]: 1 hosts deleted, elapsed > time is 1.223138 seconds (1.223138 per host) [MSGID8477291] > > That, I'm afraid is due to the FreeBSD implementation of memory management. > My Linux box is this: > .. snip .. > > So I'm really not sure what's causing it. All I can suggest is that you > post the traces (so we can see which system calls it's making) and also run > under gdb. When cpu gets high, then interrupt it and see what threads are > running and where, e.g. > > (gdb) info threads > (gdb) thread 1 > (gdb) info stack > (gdb) thread 2 > (gdb) info stack > ... > > Starting ntop under gdb according to the instructions in the FAQ but without the protocol option (gdb) set args -K -u root -o -c -P /var/log/ntop -w 3000 -i fxp0 (gdb) r Starting program: /usr/local/ntop/bin/ntop -K -u root -o -c -P /var/log/ntop -w 3000 -i fxp0 27/Oct/2003 21:00:09 ntop v.2.2.95 MT (SSL) [i386-unknown-freebsd4.8] (10/18/03 09:44:34 AM build) 27/Oct/2003 21:00:09 Copyright 1998-2003 by Luca Deri <[EMAIL PROTECTED]> 27/Oct/2003 21:00:09 Get the freshest ntop from http://www.ntop.org/ 27/Oct/2003 21:00:09 Initializing ntop 27/Oct/2003 21:00:09 Checking fxp0 for additional devices 27/Oct/2003 21:00:09 Resetting traffic statistics for device fxp0 27/Oct/2003 21:00:09 Initializing gdbm databases 27/Oct/2003 21:00:09 Now running as requested user 'root' (0:0) 27/Oct/2003 21:00:09 VENDOR: Loading MAC address table. 27/Oct/2003 21:00:09 VENDOR: Checking './specialMAC.txt.gz' 27/Oct/2003 21:00:09 VENDOR: Checking '/usr/local/ntop-2.2.95/etc/ntop/specialMAC.txt.gz' 27/Oct/2003 21:00:09 VENDOR: File '/usr/local/ntop-2.2.95/etc/ntop/specialMAC.txt.gz' does not need to be reloaded 27/Oct/2003 21:00:09 VENDOR: Checking './oui.txt.gz' 27/Oct/2003 21:00:09 VENDOR: Checking '/usr/local/ntop-2.2.95/etc/ntop/oui.txt.gz' 27/Oct/2003 21:00:09 VENDOR: File '/usr/local/ntop-2.2.95/etc/ntop/oui.txt.gz' does not need to be reloaded 27/Oct/2003 21:00:09 **WARNING** AS: Unable to open file 'AS-list.txt.gz'. 27/Oct/2003 21:00:09 I18N: This instance of ntop does not support multiple languages 27/Oct/2003 21:00:09 IP2CC: Looking for IP address <-> Country code mapping file 27/Oct/2003 21:00:09 IP2CC: reading file '/usr/local/ntop-2.2.95/etc/ntop/p2c.opt.table.gz' 27/Oct/2003 21:00:14 IP2CC: 49056 records read 27/Oct/2003 21:00:14 Initializing external applications 27/Oct/2003 21:00:14 Initializing semaphores, mutexes and threads 27/Oct/2003 21:00:14 THREADMGMT: Started thread (134690816) for network packet analyser 27/Oct/2003 21:00:14 THREADMGMT: Started thread (137048064) for idle hosts detection 27/Oct/2003 21:00:14 THREADMGMT: Started thread (137049088) for DNS address resolution 27/Oct/2003 21:00:14 Calling plugin start functions (if any) 27/Oct/2003 21:00:14 Sniffying... 27/Oct/2003 21:00:14 INIT: Created pid file (/var/run/ntop.pid) 27/Oct/2003 21:00:14 Listening on [fxp0] 27/Oct/2003 21:00:14 Now running as requested user 'root' (0:0) 27/Oct/2003 21:00:14 Loading Plugins 27/Oct/2003 21:00:14 Searching for plugins in /usr/local/ntop-2.2.95/lib/ntop/plugins 27/Oct/2003 21:00:14 ICMP: Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri 27/Oct/2003 21:00:14 LASTSEEN: Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni 27/Oct/2003 21:00:14 NETFLOW: Welcome to NetFlow.(C) 2002 by Luca Deri 27/Oct/2003 21:00:14 NFS: Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri 27/Oct/2003 21:00:14 PDA: Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and W.Brock 27/Oct/2003 21:00:14 SFLOW: Welcome to sFlowPlugin. (C) 2002 by Luca Deri 27/Oct/2003 21:00:14 THREADMGMT: Packet processor thread running... 27/Oct/2003 21:00:14 THREADMGMT: Idle host scan thread running... 27/Oct/2003 21:00:14 THREADMGMT: Address resolution thread running... 27/Oct/2003 21:00:14 RRD: Welcome to rrdPlugin. (C) 2002 by Luca Deri. 27/Oct/2003 21:00:14 Calling plugin start functions (if any) 27/Oct/2003 21:00:14 RRD: Welcome to the RRD plugin 27/Oct/2003 21:00:14 RRD: Mask for new directories is 0700 27/Oct/2003 21:00:14 RRD: Mask for new files is 0066 27/Oct/2003 21:00:14 RRD: Started thread (137050112) for data collection. 27/Oct/2003 21:00:14 NETFLOW: White list initialized to '' 27/Oct/2003 21:00:14 NETFLOW: Black list initialized to '' 27/Oct/2003 21:00:14 NETFLOW: FILEDESCRIPTORBUG: Work-around activated 27/Oct/2003 21:00:14 NETFLOW: Created a socket (18) 27/Oct/2003 21:00:14 NETFLOW: Export disabled at user request 27/Oct/2003 21:00:15 SSL is present but https is disabled: use -W <https port> for enabling it 27/Oct/2003 21:00:15 Note: Reporting device initally set to 0 [fxp0] 27/Oct/2003 21:00:15 WEB: Initializing web server 27/Oct/2003 21:00:15 WEB: Initializing tcp/ip socket connections for web server 27/Oct/2003 21:00:15 FILEDESCRIPTORBUG: Work-around activated 27/Oct/2003 21:00:15 Initialized socket, port 3000, address (any) 27/Oct/2003 21:00:15 WEB: Waiting for HTTP connections on port 3000 27/Oct/2003 21:00:15 WEB: Starting web server 27/Oct/2003 21:00:15 THREADMGMT: Started thread (137051136) for web server 27/Oct/2003 21:00:15 THREADMGMT: Started thread (140746752) for network packet sniffing on fxp0 27/Oct/2003 21:00:15 THREADMGMT: rrd thread (137050112) started 27/Oct/2003 21:00:15 THREADMGMT: web connections thread (42716) started... 27/Oct/2003 21:00:15 THREADMGMT: pcap dispatch thread running... and the benchmark load pc09011> date; echo; scp ntop-cvs.tar.bz2 tssyd:build/ Mon Oct 27 21:04:52 EST 2003 ntop-cvs.tar.bz2 100% |*************************************************************************************************************| 2570 KB 01:34 pc09011> date Mon Oct 27 21:08:01 EST 2003 pc09011> shows __no__ increase in CPU usage (see below). However, adding the -p option and the production protocol list, shows the dramatic increase in CPU usage (see below). pc09011> date ; echo ; scp ntop-cvs.tar.bz2 tssyd:build/; date; echo Mon Oct 27 21:15:56 EST 2003 ntop-cvs.tar.bz2 46% |************************************************** | 1200 KB 01:20 ETA^CKilled by signal 2. pc09011> Here is the info I hope you sought and will find useful. (gdb) set args -K -u root -o -c -P /var/log/ntop -w 3000 -i fxp0 -p "HTTP=http|https,DNS=domain,Ntop=3000,NBios-IP=netbios-ns|netbios-dgm|netbios-ssn,Mail=lotusnote|pop2|pop3|kpop|smtp|imap,SNMP=snmp|snmptrap,Telnet=telnet,Cache=3128,BEA=7000-7010,SSH=ssh,SAP=3202,PSCAM=4754,Virus=2967,LPD=515,PCAny=5631|5632,FTP=ftp|49152-65536" (gdb) r Starting program: /usr/local/ntop/bin/ntop -K -u root -o -c -P /var/log/ntop -w 3000 -i fxp0 -p "HTTP=http|https,DNS=domain,Ntop=3000,NBios-IP=netbios-ns|netbios-dgm|netbios-ssn,Mail=lotusnote|pop2|pop3|kpop|smtp|imap,SNMP=snmp|snmptrap,Telnet=telnet,Cache=3128,BEA=7000-7010,SSH=ssh,SAP=3202,PSCAM=4754,Virus=2967,LPD=515,PCAny=5631|5632,FTP=ftp|49152-65536" 27/Oct/2003 21:15:14 ntop v.2.2.95 MT (SSL) [i386-unknown-freebsd4.8] (10/18/03 09:44:34 AM build) 27/Oct/2003 21:15:14 Copyright 1998-2003 by Luca Deri <[EMAIL PROTECTED]> 27/Oct/2003 21:15:14 Get the freshest ntop from http://www.ntop.org/ 27/Oct/2003 21:15:14 Initializing ntop 27/Oct/2003 21:15:15 PROTO_INIT: Processing protocol list: 'HTTP=http|https,DNS=domain,Ntop=3000,NBios-IP=netbios-ns|netbios-dgm|netbios-ssn,Mail=lotusnote|pop2|pop3|kpop|smtp|imap,SNMP=snmp|snmptrap,Telnet=telnet,Cache=3128,BEA=7000-7010,SSH=ssh,SAP=3202,PSCAM=4754,Virus=2967,LPD=515,PCAny=5631|5632,FTP=ftp|49152-65536' 27/Oct/2003 21:15:15 Checking fxp0 for additional devices 27/Oct/2003 21:15:15 Resetting traffic statistics for device fxp0 27/Oct/2003 21:15:15 Initializing gdbm databases 27/Oct/2003 21:15:15 Now running as requested user 'root' (0:0) 27/Oct/2003 21:15:15 VENDOR: Loading MAC address table. 27/Oct/2003 21:15:15 VENDOR: Checking './specialMAC.txt.gz' 27/Oct/2003 21:15:15 VENDOR: Checking '/usr/local/ntop-2.2.95/etc/ntop/specialMAC.txt.gz' 27/Oct/2003 21:15:15 VENDOR: File '/usr/local/ntop-2.2.95/etc/ntop/specialMAC.txt.gz' does not need to be reloaded 27/Oct/2003 21:15:15 VENDOR: Checking './oui.txt.gz' 27/Oct/2003 21:15:15 VENDOR: Checking '/usr/local/ntop-2.2.95/etc/ntop/oui.txt.gz' 27/Oct/2003 21:15:15 VENDOR: File '/usr/local/ntop-2.2.95/etc/ntop/oui.txt.gz' does not need to be reloaded 27/Oct/2003 21:15:15 **WARNING** AS: Unable to open file 'AS-list.txt.gz'. 27/Oct/2003 21:15:15 I18N: This instance of ntop does not support multiple languages 27/Oct/2003 21:15:15 IP2CC: Looking for IP address <-> Country code mapping file 27/Oct/2003 21:15:15 IP2CC: reading file '/usr/local/ntop-2.2.95/etc/ntop/p2c.opt.table.gz' 27/Oct/2003 21:15:19 IP2CC: 49056 records read 27/Oct/2003 21:15:19 Initializing external applications 27/Oct/2003 21:15:19 Initializing semaphores, mutexes and threads 27/Oct/2003 21:15:19 THREADMGMT: Started thread (134690816) for network packet analyser 27/Oct/2003 21:15:19 THREADMGMT: Started thread (137048064) for idle hosts detection 27/Oct/2003 21:15:19 THREADMGMT: Started thread (137049088) for DNS address resolution 27/Oct/2003 21:15:19 Calling plugin start functions (if any) 27/Oct/2003 21:15:19 Sniffying... 27/Oct/2003 21:15:19 INIT: Created pid file (/var/run/ntop.pid) 27/Oct/2003 21:15:19 Listening on [fxp0] 27/Oct/2003 21:15:19 Now running as requested user 'root' (0:0) 27/Oct/2003 21:15:19 Loading Plugins 27/Oct/2003 21:15:19 Searching for plugins in /usr/local/ntop-2.2.95/lib/ntop/plugins 27/Oct/2003 21:15:19 ICMP: Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri 27/Oct/2003 21:15:19 LASTSEEN: Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni 27/Oct/2003 21:15:19 NETFLOW: Welcome to NetFlow.(C) 2002 by Luca Deri 27/Oct/2003 21:15:19 NFS: Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri 27/Oct/2003 21:15:19 PDA: Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and W.Brock 27/Oct/2003 21:15:19 SFLOW: Welcome to sFlowPlugin. (C) 2002 by Luca Deri 27/Oct/2003 21:15:19 RRD: Welcome to rrdPlugin. (C) 2002 by Luca Deri. 27/Oct/2003 21:15:19 Calling plugin start functions (if any) 27/Oct/2003 21:15:19 RRD: Welcome to the RRD plugin 27/Oct/2003 21:15:19 RRD: Mask for new directories is 0700 27/Oct/2003 21:15:19 THREADMGMT: Packet processor thread running... 27/Oct/2003 21:15:19 THREADMGMT: Idle host scan thread running... 27/Oct/2003 21:15:19 THREADMGMT: Address resolution thread running... 27/Oct/2003 21:15:19 RRD: Mask for new files is 0066 27/Oct/2003 21:15:19 RRD: Started thread (137050112) for data collection. 27/Oct/2003 21:15:19 NETFLOW: White list initialized to '' 27/Oct/2003 21:15:19 NETFLOW: Black list initialized to '' 27/Oct/2003 21:15:19 NETFLOW: FILEDESCRIPTORBUG: Work-around activated 27/Oct/2003 21:15:19 NETFLOW: Created a socket (18) 27/Oct/2003 21:15:19 NETFLOW: Export disabled at user request 27/Oct/2003 21:15:19 SSL is present but https is disabled: use -W <https port> for enabling it 27/Oct/2003 21:15:19 Note: Reporting device initally set to 0 [fxp0] 27/Oct/2003 21:15:19 WEB: Initializing web server 27/Oct/2003 21:15:19 WEB: Initializing tcp/ip socket connections for web server 27/Oct/2003 21:15:19 FILEDESCRIPTORBUG: Work-around activated 27/Oct/2003 21:15:19 Initialized socket, port 3000, address (any) 27/Oct/2003 21:15:19 WEB: Waiting for HTTP connections on port 3000 27/Oct/2003 21:15:19 WEB: Starting web server 27/Oct/2003 21:15:19 THREADMGMT: Started thread (137051136) for web server 27/Oct/2003 21:15:19 THREADMGMT: Started thread (141533184) for network packet sniffing on fxp0 27/Oct/2003 21:15:19 THREADMGMT: rrd thread (137050112) started 27/Oct/2003 21:15:19 THREADMGMT: web connections thread (42844) started... 27/Oct/2003 21:15:19 THREADMGMT: pcap dispatch thread running... ^C Program received signal SIGINT, Interrupt. 0x280fd853 in mapGlobalToLocalIdx (port=1054) at ntop.c:549 549 if(myGlobals.ipPortMapper.theMapper[slotId].dummyEntry == 0) { (gdb) info threads 8 process 42844, thread 8 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 7 process 42844, thread 7 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 6 process 42844, thread 6 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 5 process 42844, thread 5 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 4 process 42844, thread 4 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 3 process 42844, thread 3 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 2 process 42844, thread 2 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 * 1 process 42844, thread 1 0x280fd853 in mapGlobalToLocalIdx (port=1054) at ntop.c:549 (gdb) thread 1 [Switching to thread 1 (process 42844, thread 1)] #0 0x280fd853 in mapGlobalToLocalIdx (port=1054) at ntop.c:549 549 if(myGlobals.ipPortMapper.theMapper[slotId].dummyEntry == 0) { (gdb) info stack #0 0x280fd853 in mapGlobalToLocalIdx (port=1054) at ntop.c:549 #1 0x281085f6 in updateUsedPorts (srcHost=0x86fb000, dstHost=0x88b5000, sport=22, dport=1054, length=0) at sessions.c:231 #2 0x28100ff3 in processIpPkt (bp=0xbfa96ee2 "E\b", h=0x811e5fc, length=66, ether_src=0xbfa96e82 "", ether_dst=0xbfa96e7c "", actualDeviceId=0, vlanId=-1) at pbuf.c:1073 #3 0x28105539 in processPacket (_deviceId=0x0, h=0x811e5fc, p=0xbfa96ed4 "") at pbuf.c:2574 #4 0x28102f20 in queuePacket (_deviceId=0x0, h=0x811e5fc, p=0x811e60e "") at pbuf.c:1633 #5 0x2854be89 in pcap_read () from /usr/lib/libpcap.so.2 #6 0x2854b97f in pcap_dispatch () from /usr/lib/libpcap.so.2 #7 0x280fca04 in pcapDispatch (_i=0x0) at ntop.c:81 #8 0x282c80a8 in _thread_start () from /usr/lib/libc_r.so.4 #9 0x0 in ?? () (gdb) thread 2 [Switching to thread 2 (process 42844, thread 2)] #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 (gdb) info stack #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x28304639 in _thread_kern_sched_state () from /usr/lib/libc_r.so.4 #2 0x2830168f in _select () from /usr/lib/libc_r.so.4 #3 0x2830187e in select () from /usr/lib/libc_r.so.4 #4 0x280cd67f in handleWebConnections (notUsed=0x0) at webInterface.c:5358 #5 0x282c80a8 in _thread_start () from /usr/lib/libc_r.so.4 #6 0x0 in ?? () (gdb) thread 3 [Switching to thread 3 (process 42844, thread 3)] #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 (gdb) info stack #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x28304639 in _thread_kern_sched_state () from /usr/lib/libc_r.so.4 #2 0x28321a94 in _nanosleep () from /usr/lib/libc_r.so.4 #3 0x282fed42 in __sleep () from /usr/lib/libc_r.so.4 #4 0x282c59f1 in sleep () from /usr/lib/libc_r.so.4 #5 0x28111f11 in ntop_sleep (secs=300) at util.c:2997 #6 0x28697c13 in rrdMainLoop (notUsed=0x0) at rrdPlugin.c:1522 #7 0x282c80a8 in _thread_start () from /usr/lib/libc_r.so.4 #8 0x0 in ?? () (gdb) thread 4 [Switching to thread 4 (process 42844, thread 4)] #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 (gdb) info stack #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x283046a6 in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4 #2 0x28306321 in pthread_cond_wait () from /usr/lib/libc_r.so.4 #3 0x282c6719 in sem_wait () from /usr/lib/libc_r.so.4 #4 0x2810f7aa in waitSem (semId=0x2811f344) at util.c:1512 #5 0x280f1673 in dequeueAddress (notUsed=0x0) at address.c:544 #6 0x282c80a8 in _thread_start () from /usr/lib/libc_r.so.4 #7 0x0 in ?? () (gdb) thread 5 [Switching to thread 5 (process 42844, thread 5)] #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 (gdb) info stack #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x28304639 in _thread_kern_sched_state () from /usr/lib/libc_r.so.4 #2 0x28321a94 in _nanosleep () from /usr/lib/libc_r.so.4 #3 0x282fed42 in __sleep () from /usr/lib/libc_r.so.4 #4 0x282c59f1 in sleep () from /usr/lib/libc_r.so.4 #5 0x28111f11 in ntop_sleep (secs=60) at util.c:2997 #6 0x280fda78 in scanIdleLoop (notUsed=0x0) at ntop.c:611 #7 0x282c80a8 in _thread_start () from /usr/lib/libc_r.so.4 #8 0x0 in ?? () (gdb) thread 6 [Switching to thread 6 (process 42844, thread 6)] #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 (gdb) info stack #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x283046a6 in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4 #2 0x28306581 in pthread_cond_timedwait () from /usr/lib/libc_r.so.4 #3 0x282ededd in _thread_gc () from /usr/lib/libc_r.so.4 #4 0x282c80a8 in _thread_start () from /usr/lib/libc_r.so.4 #5 0x0 in ?? () (gdb) thread 7 [Switching to thread 7 (process 42844, thread 7)] #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 (gdb) info stack #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x283046a6 in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4 #2 0x28306321 in pthread_cond_wait () from /usr/lib/libc_r.so.4 #3 0x282c6719 in sem_wait () from /usr/lib/libc_r.so.4 #4 0x2810f7aa in waitSem (semId=0x2811f340) at util.c:1512 #5 0x28103215 in dequeuePacket (notUsed=0x0) at pbuf.c:1725 #6 0x282c80a8 in _thread_start () from /usr/lib/libc_r.so.4 #7 0x0 in ?? () (gdb) thread 8 [Switching to thread 8 (process 42844, thread 8)] #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 (gdb) info stack #0 0x28303e77 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x28304639 in _thread_kern_sched_state () from /usr/lib/libc_r.so.4 #2 0x28321a94 in _nanosleep () from /usr/lib/libc_r.so.4 #3 0x282fed42 in __sleep () from /usr/lib/libc_r.so.4 #4 0x282c59f1 in sleep () from /usr/lib/libc_r.so.4 #5 0x28111f11 in ntop_sleep (secs=10) at util.c:2997 #6 0x804cef6 in main (argc=14, argv=0xbfbffabc) at main.c:1203 #7 0x804abda in _start () Thank you very much for your comments. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. 1 top displays for first load under gdb without -p: no sweat processes: 1 running, 25 sleeping Mem: 34M Active, 6752K Inact, 16M Wired, 4752K Cache, 15M Buf, 488K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:00 1.51% 0.39% sshd 42748 root 2 0 5284K 1556K sbwait 0:00 1.51% 0.39% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42764; load averages: 0.05, 0.02, 0.00 up 17+05:23:57 21:05:03 27 processes: 3 running, 24 sleeping Mem: 34M Active, 6808K Inact, 16M Wired, 4332K Cache, 15M Buf, 848K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:00 1.73% 0.73% sshd 42716 root 2 0 15796K 8868K poll 0:07 0.20% 0.20% ntop 42748 root 2 0 5284K 1556K sbwait 0:00 0.35% 0.15% sshd last pid: 42770; load averages: 0.05, 0.02, 0.00 up 17+05:24:03 21:05:09 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1560K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:00 2.13% 1.17% sshd 42716 root 2 0 15796K 8872K poll 0:07 0.15% 0.15% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42771; load averages: 0.04, 0.02, 0.00 up 17+05:24:08 21:05:14 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1560K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:01 1.76% 1.17% sshd 42771 anwsmh 28 0 1872K 876K RUN 0:00 14.00% 0.68% top 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42772; load averages: 0.04, 0.02, 0.00 up 17+05:24:13 21:05:19 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1560K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:01 1.65% 1.22% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd last pid: 42773; load averages: 0.19, 0.05, 0.01 up 17+05:24:18 21:05:24 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1548K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:01 1.65% 1.32% sshd 42716 root 2 0 15800K 8884K poll 0:07 0.10% 0.10% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42774; load averages: 0.19, 0.05, 0.01 up 17+05:24:23 21:05:29 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1548K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:01 1.74% 1.46% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd last pid: 42775; load averages: 0.17, 0.05, 0.01 up 17+05:24:29 21:05:35 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1548K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1680K select 0:01 1.95% 1.71% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd last pid: 42776; load averages: 0.15, 0.05, 0.01 up 17+05:24:34 21:05:40 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:01 1.89% 1.71% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd last pid: 42777; load averages: 0.15, 0.05, 0.01 up 17+05:24:39 21:05:45 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:02 2.21% 2.05% sshd 42777 anwsmh 29 0 1872K 876K RUN 0:00 8.00% 0.39% top 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42778; load averages: 0.12, 0.04, 0.01 up 17+05:24:44 21:05:50 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:02 2.07% 1.95% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd last pid: 42779; load averages: 0.19, 0.06, 0.02 up 17+05:24:49 21:05:55 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6964K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:02 2.09% 2.00% sshd 42716 root 2 0 15800K 8884K poll 0:08 0.10% 0.10% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42780; load averages: 0.18, 0.06, 0.02 up 17+05:24:54 21:06:00 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6960K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:02 2.07% 2.00% sshd 42716 root 2 0 15800K 8884K poll 0:08 0.05% 0.05% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42781; load averages: 0.16, 0.06, 0.02 up 17+05:25:00 21:06:06 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6960K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:02 2.01% 1.95% sshd 42716 root 2 0 15800K 8884K poll 0:08 0.05% 0.05% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42782; load averages: 0.15, 0.06, 0.01 up 17+05:25:05 21:06:11 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6960K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:02 2.04% 2.00% sshd 42716 root 2 0 15800K 8884K poll 0:08 0.05% 0.05% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42783; load averages: 0.14, 0.06, 0.01 up 17+05:25:10 21:06:16 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6960K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:03 2.03% 2.00% sshd 42783 anwsmh 30 0 1872K 876K RUN 0:00 3.00% 0.15% top 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42784; load averages: 0.13, 0.05, 0.01 up 17+05:25:15 21:06:21 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6960K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:03 2.03% 2.00% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd last pid: 42785; load averages: 0.12, 0.05, 0.01 up 17+05:25:20 21:06:26 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6960K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:03 1.97% 1.95% sshd 42716 root 2 0 15800K 8884K poll 0:08 0.05% 0.05% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42786; load averages: 0.11, 0.05, 0.01 up 17+05:25:25 21:06:31 26 processes: 1 running, 25 sleeping Mem: 33M Active, 6960K Inact, 16M Wired, 3616K Cache, 15M Buf, 1532K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42750 anwsmh 2 0 5376K 1696K select 0:03 2.02% 2.00% sshd 42716 root 2 0 15800K 8884K poll 0:08 0.05% 0.05% ntop 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42787; load averages: 0.10, 0.05, 0.01 up 17+05:25:31 21:06:37 22 processes: 1 running, 21 sleeping Mem: 33M Active, 6788K Inact, 15M Wired, 3616K Cache, 15M Buf, 2636K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd 81 root 2 0 3040K 1172K select 1:19 0.00% 0.00% sendmail last pid: 42788; load averages: 0.09, 0.05, 0.01 up 17+05:25:36 21:06:42 22 processes: 1 running, 21 sleeping Mem: 33M Active, 6788K Inact, 15M Wired, 3616K Cache, 15M Buf, 2636K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd 81 root 2 0 3040K 1172K select 1:19 0.00% 0.00% sendmail last pid: 42789; load averages: 0.08, 0.05, 0.01 up 17+05:25:41 21:06:47 22 processes: 1 running, 21 sleeping Mem: 33M Active, 6788K Inact, 15M Wired, 3616K Cache, 15M Buf, 2636K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd 81 root 2 0 3040K 1172K select 1:19 0.00% 0.00% sendmail last pid: 42790; load averages: 0.07, 0.05, 0.01 up 17+05:25:46 21:06:52 22 processes: 1 running, 21 sleeping Mem: 33M Active, 6788K Inact, 15M Wired, 3616K Cache, 15M Buf, 2636K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd 81 root 2 0 3040K 1172K select 1:19 0.00% 0.00% sendmail last pid: 42791; load averages: 0.06, 0.05, 0.01 up 17+05:25:51 21:06:57 22 processes: 1 running, 21 sleeping Mem: 33M Active, 6788K Inact, 15M Wired, 3616K Cache, 15M Buf, 2632K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd 81 root 2 0 3040K 1172K select 1:19 0.00% 0.00% sendmail last pid: 42792; load averages: 0.06, 0.05, 0.01 up 17+05:25:56 21:07:02 22 processes: 1 running, 21 sleeping Mem: 33M Active, 6788K Inact, 15M Wired, 3616K Cache, 15M Buf, 2632K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd 69 root 2 0 1296K 508K select 1:32 0.00% 0.00% ntpd 81 root 2 0 3040K 1172K select 1:19 0.00% 0.00% sendmail 2 With the -p option: erroneous behaviour tssyd> perl -e 'foreach (1..100) { @ps = `top -b`; print @ps[0..10], "\n"; sleep 10 }' last pid: 42846; load averages: 0.05, 0.01, 0.00 up 17+05:34:35 21:15:41 22 processes: 2 running, 20 sleeping Mem: 33M Active, 6764K Inact, 15M Wired, 3616K Cache, 15M Buf, 2604K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42844 root 28 0 15588K 9480K RUN 0:07 15.28% 11.33% ntop 42813 root 10 0 14364K 14084K wait 0:01 0.68% 0.68% gdb 42846 anwsmh 29 0 1868K 876K RUN 0:00 7.00% 0.34% top last pid: 42847; load averages: 0.05, 0.01, 0.00 up 17+05:34:45 21:15:51 22 processes: 1 running, 21 sleeping Mem: 33M Active, 6780K Inact, 15M Wired, 3616K Cache, 15M Buf, 2600K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42844 root 2 0 15588K 9480K poll 0:07 9.03% 7.62% ntop 42813 root 10 0 14364K 14084K wait 0:01 0.20% 0.20% gdb 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42853; load averages: 0.04, 0.01, 0.00 up 17+05:34:55 21:16:01 26 processes: 2 running, 24 sleeping Mem: 34M Active, 6952K Inact, 15M Wired, 3616K Cache, 15M Buf, 1296K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42844 root 30 0 15620K 9552K RUN 0:08 10.52% 9.52% ntop 42848 root 2 0 5284K 1556K sbwait 0:00 2.21% 0.49% sshd 42850 anwsmh 2 0 5376K 1680K select 0:00 0.81% 0.15% sshd last pid: 42854; load averages: 0.03, 0.01, 0.00 up 17+05:35:05 21:16:11 26 processes: 2 running, 24 sleeping Mem: 34M Active, 6952K Inact, 15M Wired, 3616K Cache, 15M Buf, 1292K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42844 root 30 0 15620K 9552K RUN 0:11 16.94% 15.97% ntop 42850 anwsmh 2 0 5376K 1680K select 0:00 0.39% 0.20% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42855; load averages: 0.02, 0.01, 0.00 up 17+05:35:16 21:16:22 26 processes: 2 running, 24 sleeping Mem: 34M Active, 6952K Inact, 15M Wired, 3616K Cache, 15M Buf, 1292K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42844 root 31 0 15620K 9556K RUN 0:14 20.09% 19.38% ntop 42850 anwsmh 2 0 5376K 1680K select 0:00 0.49% 0.34% sshd 78 root 2 0 2584K 876K select 3:28 0.00% 0.00% sshd last pid: 42856; load averages: 0.17, 0.04, 0.01 up 17+05:35:26 21:16:32 26 processes: 2 running, 24 sleeping Mem: 34M Active, 6952K Inact, 15M Wired, 3616K Cache, 15M Buf, 1284K Free Swap: 250M Total, 1376K Used, 249M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 42844 root 29 0 15628K 9564K RUN 0:16 22.23% 21.78% ntop 42850 anwsmh 2 0 5376K 1680K select 0:01 0.83% 0.68% sshd 42856 anwsmh 28 0 1872K 876K RUN 0:00 11.00% 0.54% top ^C tssyd> 3 truss output tssyd# truss -p 42882 | & more getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96860) = 0 (0x0) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967e0) = 0 (0x0) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967e0) ERR#0 'Unknown error: 0' getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) SIGNAL 27 SIGNAL 27 getpid() = 42882 (0xa782) gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa964cc) = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96850) = 254532 (0x3e244) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967e0) = 342456 (0x539b8) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) read(0x5,0x811e000,0x8000) ERR#35 'Resource temporarily unavailable' poll(0x8077000,0x2,0x0) = 0 (0x0) poll(0x8077000,0x3,0x1da5) = 1 (0x1) gettimeofday(0x28347e88,0x0) = 0 (0x0) read(0x5,0x811e000,0x8000) = 30924 (0x78cc) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96850) = 183000 (0x2cad8) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967e0) = 139764 (0x221f4) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96850) = 0 (0x0) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967f0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96860) = 0 (0x0) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967e0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96850) = 0 (0x0) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967f0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96860) = 0 (0x0) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96b54,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96964,0x0) = 0 (0x0) gettimeofday(0xbfa96974,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa967e0) = 194976 (0x2f9a0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96624,0x0) = 0 (0x0) gettimeofday(0xbfa96634,0x0) = 0 (0x0) getpid() = 42882 (0xa782) SIGNAL 27 SIGNAL 27 gettimeofday(0x28347e88,0x0) = 0 (0x0) sigprocmask(0x3,0x28347ef8,0x0) = 0 (0x0) poll(0x8077000,0x1,0x0) = 0 (0x0) sigreturn(0xbfa96850) = 0 (0x0) gettimeofday(0xbfa96b64,0x0) = 0 (0x0) getpid() = 42882 (0xa782) gettimeofday(0xbfa96e44,0x0) = 0 (0x0) getpid() = 42882 (0xa782) getpid() = 42882 (0xa782) tssyd# 4 Shutdown messages from log file Oct 27 21:25:57 tssyd ntop[42882]: Calling plugin start functions (if any) Oct 27 21:25:57 tssyd ntop[42882]: RRD: Welcome to the RRD plugin Oct 27 21:25:57 tssyd ntop[42882]: RRD: Mask for new directories is 0700 Oct 27 21:25:57 tssyd ntop[42882]: RRD: Mask for new files is 0066 Oct 27 21:25:57 tssyd ntop[42882]: RRD: Started thread (137051136) for data collection. Oct 27 21:25:57 tssyd ntop[42882]: NETFLOW: White list initialized to '' Oct 27 21:25:57 tssyd ntop[42882]: NETFLOW: Black list initialized to '' Oct 27 21:25:57 tssyd ntop[42882]: NETFLOW: FILEDESCRIPTORBUG: Work-around activated Oct 27 21:25:57 tssyd ntop[42882]: NETFLOW: Created a socket (13) Oct 27 21:25:57 tssyd ntop[42882]: NETFLOW: Export disabled at user request Oct 27 21:25:57 tssyd ntop[42882]: SSL is present but https is disabled: use -W <https port> for enabling it Oct 27 21:25:57 tssyd ntop[42882]: Note: Reporting device initally set to 0 [fxp0] Oct 27 21:25:57 tssyd ntop[42882]: WEB: Initializing web server Oct 27 21:25:57 tssyd ntop[42882]: WEB: Initializing tcp/ip socket connections for web server Oct 27 21:25:57 tssyd ntop[42882]: FILEDESCRIPTORBUG: Work-around activated Oct 27 21:25:57 tssyd ntop[42882]: THREADMGMT: rrd thread (137051136) started Oct 27 21:25:57 tssyd ntop[42882]: Initialized socket, port 3000, address (any) Oct 27 21:25:57 tssyd ntop[42882]: WEB: Waiting for HTTP connections on port 3000 Oct 27 21:25:57 tssyd ntop[42882]: WEB: Starting web server Oct 27 21:25:57 tssyd ntop[42882]: THREADMGMT: Started thread (141529088) for web server Oct 27 21:25:57 tssyd ntop[42882]: THREADMGMT: Started thread (141530112) for network packet sniffing on fxp0 Oct 27 21:25:57 tssyd ntop[42882]: THREADMGMT: web connections thread (42882) started... Oct 27 21:25:57 tssyd ntop[42882]: THREADMGMT: pcap dispatch thread running... Oct 27 21:30:46 tssyd ntop[42882]: CLEANUP: ntop caught signal 15 Oct 27 21:30:46 tssyd ntop[42882]: CLEANUP: Cleaning up, set FLAG_NTOPSTATE_TERM Oct 27 21:30:46 tssyd ntop[42882]: FILEDESCRIPTORBUG: Bug work-around cleanup Oct 27 21:30:46 tssyd ntop[42882]: CLEANUP: Locking purge mutex (may block for a little while) Oct 27 21:30:46 tssyd ntop[42882]: CLEANUP: Locked purge mutex, continuing shutdown Oct 27 21:30:46 tssyd ntop[42882]: FREE_HOST: Start, 1 device(s) Oct 27 21:30:46 tssyd ntop[42882]: THREADMGMT: pcap dispatch thread terminated... Oct 27 21:30:46 tssyd ntop[42882]: FREE_HOST: End, freed 23 Oct 27 21:30:46 tssyd ntop[42882]: PLUGIN_TERM: Unloading plugins (if any) Oct 27 21:30:46 tssyd ntop[42882]: RRD: Locking mutex (may block for a little while) Oct 27 21:30:46 tssyd ntop[42882]: RRD: Locked mutex, continuing shutdown Oct 27 21:30:46 tssyd ntop[42882]: RRD: killThread() succeeded Oct 27 21:30:46 tssyd ntop[42882]: RRD: Thanks for using the rrdPlugin Oct 27 21:30:46 tssyd ntop[42882]: RRD: Done Oct 27 21:30:46 tssyd ntop[42882]: PDA: Thanks for using PDAWatch Oct 27 21:30:46 tssyd ntop[42882]: PDA: Done Oct 27 21:30:46 tssyd ntop[42882]: NETFLOW: FILEDESCRIPTORBUG: Bug work-around cleanup Oct 27 21:30:46 tssyd ntop[42882]: NETFLOW: Thanks for using ntop NetFlow Oct 27 21:30:46 tssyd ntop[42882]: NETFLOW: Done Oct 27 21:30:46 tssyd ntop[42882]: ICMP: Thanks for using icmpWatch Oct 27 21:30:46 tssyd ntop[42882]: ICMP: Done Oct 27 21:30:46 tssyd ntop[42882]: NETFLOW: Cisco NetFlow exporter terminated Oct 27 21:30:46 tssyd ntop[42882]: CLEANUP: Freeing device fxp0 (idx=0) Oct 27 21:30:46 tssyd ntop[42882]: STATS: 8,242 packets received by filter on fxp0 Oct 27 21:30:46 tssyd ntop[42882]: STATS: 2,736 packets dropped by kernel Oct 27 21:30:46 tssyd ntop[42882]: STATS: 2,736 packets dropped by ntop Oct 27 21:30:46 tssyd /kernel: fxp0: promiscuous mode disabled Oct 27 21:30:46 tssyd ntop[42882]: TERM: Removed pid file (/var/log/ntop/ntop.pid) Oct 27 21:30:46 tssyd ntop[42882]: =================================== Oct 27 21:30:46 tssyd ntop[42882]: ntop is shutdown... Oct 27 21:30:46 tssyd ntop[42882]: =================================== tssyd# _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
