<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16588"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT face=Calibri>[hit send too soon...]</FONT></DIV>
<DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV><FONT face=Calibri>
<DIV><FONT face=Calibri>Can you please post the code that is 
failing?</FONT></DIV>
<DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV><FONT face=Calibri>Also, bigger buffers don't necessary mean better 
performance. Having bigger buffers helps to cope with sudden traffic spikes. It 
doesn't help if the WinPcap-based application is generally too slow at 
processing packets. </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Calibri>GV</FONT></DIV></FONT></DIV>
<DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><FONT size=3 face=Calibri></FONT><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A 
title=gianluca.varenni@cacetech.com 
href="mailto:gianluca.varenni@cacetech.com">Gianluca Varenni</A> </DIV>
<DIV><B>Sent:</B> Thursday, July 29, 2010 11:45 AM</DIV>
<DIV><B>To:</B> <A 
title="mailto:winpcap-users@winpcap.org&#10;CTRL + Click to follow link" 
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV><B>Subject:</B> Re: [Winpcap-users] PacketReceivePacket error out on 
allocating buffergerater than 4MB</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Calibri>Can you please post the code that is 
failing?</FONT></DIV>
<DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV><FONT face=Calibri>Also, bigger buffers don't necessary mean better 
performance. They just enlarg</FONT></DIV>
<DIV><FONT face=Calibri>GV</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=pushkartiwari@gmail.com 
href="mailto:pushkartiwari@gmail.com">Pushkar Tiwari</A> </DIV>
<DIV><B>Sent:</B> Thursday, July 29, 2010 11:37 AM</DIV>
<DIV><B>To:</B> <A title=winpcap-users@winpcap.org 
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV><B>Subject:</B> [Winpcap-users] PacketReceivePacket error out on allocating 
buffergerater than 4MB</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV>Hi,</DIV>
<DIV>I have written a piece of code to capture packets at very high speed. I 
have writen my code using Packet API.</DIV>
<DIV>To gain better performance I tried allocating large buffer using 
&nbsp;"PacketSetBuff" API. PacketSetBuff doesn't return any error on allocating 
buffer greater than 4MB.</DIV>
<DIV>But when I call PacketReceivePacket &nbsp;to retrieve the packet, the call 
fails.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Is there any restriction on the buffer that can be allocated? Is there some 
other wy through which we can allocate higher buffer and get the better 
performance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Whats is the kernel buffer size that winpcap allocate by default?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here are some of my environment details:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Winpacp Version : 4.1.1</DIV>
<DIV>OS : Win2k3</DIV>
<DIV>Memory : 8GB</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.</DIV>
<DIV><BR></DIV>
<DIV>Pushkar</DIV>
<P>
<HR>

<P></P>_______________________________________________<BR>Winpcap-users mailing 
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BODY></HTML>