Dear all,
some of you reported that the latest ntop is slower (in terms of packet
processing) with respect to previous versions. I have to admit that
unfortunately this is true as I now sometimes experience packet losses
too. We (me, Burton and Dinesh) decided to postpone multi-threading
changes to 3.2.x, but I believe this problem needs to be tackled now.

In the past days I have created a new experimental ntop
(http://luca.ntop.org/ntop-ht.tgz) that:
- has small hash lockes (compared to the global lock that's inside ntop)
- spawns multiple (default 2) threads that fetch packets

Occording to my tests the new ntop is faster on Linux but more or less
the same on FreeBSD. This could be explained with the time ntop spends
with small-locks (mutex lock/unlock) that maybe on BSD take relatively
more time than on Linux.

I kindly ask all of you (you can simply override the .c/h files with
those part of the ntop-ht.tgz file and send your feedback. In fact I
don't want to commit any code before your feedback.

Cheers, Luca

-- 
Luca Deri <[EMAIL PROTECTED]>   http://luca.ntop.org/
Hacker: someone who loves to program and enjoys being
clever about it - Richard Stallman

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to