Wireshark-bugs: [Wireshark-bugs] [Bug 6755] slow loading/processing of conversations with over 5

Date: Fri, 27 Jan 2012 03:16:47 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6755

--- Comment #17 from Cristian Constantin <const.crist@xxxxxxxxxxxxxx> 2012-01-27 03:16:46 PST ---
(In reply to comment #13)
> > cristian: yes, right. conversations are stored in the linked list; sorry, it was my mistake saying frames.
> 
> Then you probably also didn't mean to say "frames" in "slow loading/processing
> of conversations with over 500k frames."  If you truly have over 500k UDP or
> TCP packets going between {host1,port1} and {host2,port2}, that should result
> in one conversation, and if that's the only conversation, the linked lists
> should be very short and not see this problem.  If you have a *lot* of
> conversations between {host1,port1} and {host2,port2}, then the linked lists
> will be longer, and you'll see this problem.

cristian: I am lost, I do not understand anything anylonger :-(
what do you mean by: 

"a *lot* of conversations between {host1,port1} and {host2,port2}"

if it is the same protocol (udp for example), how exactly does
wireshark distinguish between them?

here are the statistics (Statistics/Conversation List/UDP) that I get after
loading the packets (exported to csv):

"Address A","Port A","Address B","Port B","Packets","Bytes","Packets
A→B","Bytes A→B","Packets A←B","Bytes A←B","Rel Start","Duration","bps
A→B","bps A←B"
"x.x.x.x","8060","y.y.y.y","sip","585744","269717531","117183","59920148","468561","209797383","0.001429000","390.6763","1227003.52","4296086.31"
"x.x.x.x","http-alt","y.y.y.y","sip","351456","205351530","0","0","351456","205351530","0.000301000","391.9773","N/A","4191090.31"
"z.z.z.z","35009","y.y.y.y","sip","117167","66196754","117167","66196754","0","0","0.001366000","390.6763","1355531.41","N/A"

what I saw during the profiling and in the code was that the list pointed
to by "conversation->next" becomes really huge and there two bottlenecks:
a. iterating over the list to get to the last element
b. looking up an element based on the "conversation->setup_frame"

bye now!
cristian

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.