[Winpcap-users] Using WipCap to reduce CPU%
Donald Woo
dwoo at ra.rockwell.com
Tue Aug 29 11:55:59 GMT 2006
I believe it's from the socket read.
dw
Loris Degioanni <loris.degioanni at cacetech.com>
Sent by: winpcap-users-bounces at winpcap.org
08/29/2006 12:34 AM
Please respond to winpcap-users
To: winpcap-users at winpcap.org
cc:
Subject: Re: [Winpcap-users] Using WipCap to reduce CPU%
Is the cpu load caused by winpcap or by the read from the socket?
If the cause is WinPcap, You're definitely polling, and you should check
the to_ms parameter of pcap_open_live().
Loris
Donald Woo wrote:
>
> I'm writing a VB .Net app to captured TCP/IP data from a source, it is
> sending 406 byte packets approx. every 1 msec. I can perform this
> capture but at a very high cost to the
> cpu, somewhere between 98-100% !!!! This is just from calling the
> stream read off the socket
>
> 'read data from socket
> Dim nNumReadBytes As Integer =
> m_nsReadStream.Read(m_bReadBuffer, 0, g_nNumBytesToRead)
>
> Can I use this to take the load off the cpu or do I need a packet
> capture card?
>
>
> dw
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060829/380f69a3/attachment.htm
More information about the Winpcap-users
mailing list