Re: [tcpdump-workers] pcap_next_ex() and pcap_dump() performance decreases over time...

2015-08-23 Thread Ander Juaristi
> Are there any numbers that you think would be useful in analyzing this 
> problem?

Have you completely discarded algorithmical issues?

This looks like something is being constantly doubled. Probably in logarithmic 
time.

Sent from my smartphone. Excuse my brevity.
___
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Re: [tcpdump-workers] pcap_next_ex() and pcap_dump() performance decreases over time...

2015-08-23 Thread barcaroller

On 2015-08-23 09:39:19 +, Ander Juaristi said:


Have you completely discarded algorithmical issues?

This looks like something is being constantly doubled. Probably in 
logarithmic time.


The timers are wrapped around the pcap functions:

   timer before_dump;
   pcap_dump();
   timer after_dump;
   duration_dump = after_dump - before_dump;

   timer before_next;
   pcap_next_ex();
   timer after_next;
   duration_next = after_next - before_next;

   // Now calculate total, average, maximum, and minimum durations


No matter what the rest of the code does, I would expect the durations 
above to be relatively constant.



___
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers