Dear Ladies and Gentlemen,

I am writing to report a potential problem with ntop 2.2.95 (checked out
from CVS on 17 Oct 2003) on FreeBSD 4 (4.8-RELEASE-p13).

The problem is that the CVS ntop uses significantly more CPU cycles
monitoring the same small office LAN as 2.2.

tssyd# top -b
last pid: 69020;  load averages:  0.61,  0.46,  0.38  up 7+05:29:20
20:10:26
21 processes:  2 running, 19 sleeping

Mem: 23M Active, 15M Inact, 15M Wired, 5768K Cache, 15M Buf, 1724K Free
Swap: 250M Total, 1160K Used, 249M Free


  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
68989 nobody    46   0 16660K  9964K RUN      3:39 52.98% 52.98% ntop
   78 root       2   0  2584K   872K select   1:35  0.00%  0.00% sshd
   69 root       2   0  1296K   576K select   0:39  0.00%  0.00% ntpd
   81 root       2   0  3040K  1132K select   0:33  0.00%  0.00%
sendmail
   76 root      10   0   992K   484K nanslp   0:06  0.00%  0.00% cron
   66 root       2   0   940K   472K select   0:03  0.00%  0.00% syslogd
34107 anwsmh     2   0  5284K  1424K select   0:01  0.00%  0.00% sshd
32157 anwsmh     2   0  5284K  1380K select   0:01  0.00%  0.00% sshd
   84 smmsp     18   0  2920K   868K pause    0:01  0.00%  0.00%
sendmail
34019 root      18   0  1392K   968K pause    0:00  0.00%  0.00% csh
32158 anwsmh    18   0  1412K   952K pause    0:00  0.00%  0.00% csh
34108 anwsmh    18   0  1352K   920K pause    0:00  0.00%  0.00% csh
34089 root       2   0  5288K  1388K sbwait   0:00  0.00%  0.00% sshd
32155 root       2   0  5288K  1380K sbwait   0:00  0.00%  0.00% sshd
69020 root      30   0  1868K   868K RUN      0:00  0.00%  0.00% top
  128 root       3   0   952K   472K ttyin    0:00  0.00%  0.00% getty
  130 root       3   0   952K   472K ttyin    0:00  0.00%  0.00% getty
  129 root       3   0   952K   472K ttyin    0:00  0.00%  0.00% getty

tssyd# 

Here is the old version, started exactly the same way, on an idle small
office (after hours) LAN.

tssyd# top -b
last pid: 69030;  load averages:  0.37,  0.43,  0.38  up 7+05:30:58
20:12:04
21 processes:  1 running, 20 sleeping

Mem: 23M Active, 17M Inact, 15M Wired, 5756K Cache, 15M Buf, 408K Free
Swap: 250M Total, 1160K Used, 249M Free


  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
69029 nobody     2   0 16324K  9348K poll     0:02 25.03%  6.49% ntop
   78 root       2   0  2584K   872K select   1:35  0.00%  0.00% sshd
   69 root       2   0  1296K   576K select   0:39  0.00%  0.00% ntpd
   81 root       2   0  3040K  1132K select   0:33  0.00%  0.00%
sendmail
   76 root      10   0   992K   484K nanslp   0:06  0.00%  0.00% cron
   66 root       2   0   940K   472K select   0:03  0.00%  0.00% syslogd
34107 anwsmh     2   0  5284K  1424K select   0:01  0.00%  0.00% sshd
32157 anwsmh     2   0  5284K  1380K select   0:01  0.00%  0.00% sshd
   84 smmsp     18   0  2920K   868K pause    0:01  0.00%  0.00%
sendmail
34019 root      18   0  1392K   968K pause    0:00  0.00%  0.00% csh
32158 anwsmh    18   0  1412K   952K pause    0:00  0.00%  0.00% csh
34108 anwsmh    18   0  1352K   920K pause    0:00  0.00%  0.00% csh
34089 root       2   0  5288K  1388K sbwait   0:00  0.00%  0.00% sshd
32155 root       2   0  5288K  1380K sbwait   0:00  0.00%  0.00% sshd
69030 root      30   0  1868K   868K RUN      0:00  0.00%  0.00% top
68991 anwsmh     2   0   892K   404K kqread   0:00  0.00%  0.00% tail
  128 root       3   0   952K   472K ttyin    0:00  0.00%  0.00% getty
  130 root       3   0   952K   472K ttyin    0:00  0.00%  0.00% getty

tssyd# 

Both versions were compiled on the same system with the same compiler
that ships with FreeBSD-RELEASE (2.95.4 20020320 [FreeBSD]).

The system is using the standard FreeBSD pthread library (not
linux-pthread emulation).

Both versions were built from source on this system (2.2 from the
SourceForge tar ball), 2.2.95 from the CVS. The latter version uses
gd-1.8.4,2.

Actually, 2.2 was compiled on 4.8-REL-p7 or earlier whereas the CVS was
built after a security upgrade to -p13. However, I think the upgrade was
only to userland programs (sshd, pam stuff) and not kernel related.

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.
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to