tcpdump mailing list archives

Re: tcpdump vs libpcap : CPU usage shooting high for two simultaneous captures on wireless monitor interfaces


From: Guy Harris <guy () alum mit edu>
Date: Wed, 17 Apr 2013 19:38:01 -0700


On Apr 17, 2013, at 7:11 PM, abhinav narain <abhinavnarain10 () gmail com> wrote:

I am curious to know if tcpdump does something 
interesting to deal with such situation (I dint find anything 
when I last read the code..couple of months back)

It does absolutely nothing whatsoever to discover whether there are other versions of tcpdump are running.

Am I right to say that the two processes spin on some shared resource ?

Given that I don't know what routines in the programs or libraries they use are running when they're consuming that CPU 
time, I have absolutely no idea whether you're right or not to say that.  That's why I wanted the profiling data - so 
that we *know* what routines are consuming the CPU time, not just *guessing*.

Can you show us the source code to the parts of your program that make libpcap calls?
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: