-
chrismorgan pushed 1 commit(s) to refs/heads/master in the sharppcap Git repository of the SharpPcap project.
2010-01-07 07:17:47 UTC by chrismorgan
-
Whoops.
I was running my test with another thread to artificially increase cpu usage in the queue example. I removed that and I'm seeing ratios like 300k packets captured 22k packets dropped, significantly better than the numbers I posted. Of course I'm not actually processing those packets in any way but in terms of raw capture speed its an interesting number.
Chris.
2010-01-07 01:36:56 UTC by chrismorgan
-
Hi Fredrik.
I've done some more testing on windows with a scp between the host os(Linux) and the vm os (Windows) that I use for development here. With transfer rates around 3MB/s I see that wireshark is dropping a good deal of packets, 68k packets captured, 35k packets dropped. With the queueing capture example from sharppcap I'm seeing 71k packets captured but only 13k packets dropped. So...
2010-01-07 01:23:56 UTC by chrismorgan
-
chrismorgan pushed 1 commit(s) to refs/heads/master in the sharppcap Git repository of the SharpPcap project.
2010-01-06 21:03:13 UTC by chrismorgan
-
chrismorgan pushed 1 commit(s) to refs/heads/master in the sharppcap Git repository of the SharpPcap project.
2010-01-06 20:14:49 UTC by chrismorgan
-
Hi Fredrik.
I've added a new example, QueuingPacketsForBackgroundProcessing to the sharppcap git repository. If you could run this and report the output from the stats line that is periodically printed that would be great. This example, like yours, does a minimal amount of processing in the callback.
If you are running into trouble with git I can build you a source or binary package...
2010-01-06 18:43:16 UTC by chrismorgan
-
chrismorgan pushed 2 commit(s) to refs/heads/master in the sharppcap Git repository of the SharpPcap project.
2010-01-06 18:39:54 UTC by chrismorgan
-
Hi Fredrik.
What kind of output do you get from a Console.WriteLine(device.Statistics.ToString()) that you call periodically from the capture routine? I know you are comparing things with wireshark to see if packets are dropped and while offhand I might be inclined to agree that packets are being lost I think the device statistics should provide concrete values that will indicate whether this...
2010-01-06 17:59:22 UTC by chrismorgan
-
Hi Chris,
I've not experienced any performance issues up to now, but I intend to run my app in front of a web server with a lot more traffic than i'm currently seeing. What particularly caught my eye was the option to use a circular buffer of files to dump traffic to.
Your completly right about taking measurements first though. I'll look into it and get back to you when I have something...
2010-01-06 17:26:28 UTC by dcam1
-
I tried your suggestion. Snippets below:
void _dev_OnPacketArrival(object sender, PcapCaptureEventArgs e)
{
lock (_queueLock)
{
_packets.Enqueue(e.Packet);
}
}
//This snippet run in a loop on a low priority thread
Queue newq = new...
2010-01-06 14:44:07 UTC by f_palsson