Hi Amir
yes, that’s the way it should work, if this is not the case, some debugging is 
needed to identify the problem

Alfredo

> On 26 Oct 2017, at 10:14, Amir Kaduri <akadur...@gmail.com> wrote:
> 
> Basically, the functionality that I would like to have is even if less than 
> poll-watermark-threshold (default: 128) packets arrives the socket, they will 
> be forwarded to userland if 1 millisecond has passed.
> How can I gain this? Isn't it by using  pfring_set_poll_duration()?
> 
> Alfredo, could you please clarify?
> 
> Thanks,
> Amir
> 
> On Wed, Oct 18, 2017 at 8:48 PM, Amir Kaduri <akadur...@gmail.com 
> <mailto:akadur...@gmail.com>> wrote:
> Hi,
> 
> I'm using pf_ring 6.6.0 (no ZC) on CentOS 7, on 10G interfaces (ixgbe 
> drivers).
> As far as I understand the relation between poll-watermark and poll-duration, 
> packets will be queued untill one of comes first: or passing the 
> poll-watermark packets threshold, or a poll-duration milliseconds has passed.
> I set poll-watermark to the maximum (4096) (using 
> pfring_set_poll_watermark()) and set poll-duration to the minimum (1) (using 
> pfring_set_poll_duration()).
> I've sent 400 packets to the socket. I see that they are received by the NIC, 
> but they didn't pass to userland. Only when passing 500 packets, a chunk of 
> them passed to userland.
> I don't quite understand the behavior: since poll-duration is 1 (millisecond 
> I assume), I've expected all the packets to pass to userland immediately, 
> even though poll-watermark is much higher.
> 
> Can anyone shed some light on the above?
> 
> Thanks,
> Amir
> 
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to