Re: netmap overrun counters

2016-04-29 Thread Luigi Rizzo
On Thu, Apr 28, 2016 at 02:53:25PM -0700, bazzoola wrote: > Thanks Adrian, and thanks Luigi for the explanation: > > On 04/28/2016 01:15 PM, Luigi Rizzo wrote: > > > > please re-read the relevant part of the manual page: > > > >RECEIVE RINGS > > On receive rings, after a netmap system c

Re: netmap overrun counters

2016-04-28 Thread bazzoola
Thanks Adrian, and thanks Luigi for the explanation: On 04/28/2016 01:15 PM, Luigi Rizzo wrote: > > please re-read the relevant part of the manual page: > >RECEIVE RINGS > On receive rings, after a netmap system call, the slots in the range > head... tail-1 contain received packets

Re: netmap overrun counters

2016-04-28 Thread Luigi Rizzo
On Thu, Apr 28, 2016 at 9:15 PM, bazzoola wrote: > > > On 04/28/2016 12:06 PM, Luigi Rizzo wrote: > > > > > > On Thursday, April 28, 2016, bazzoola > > wrote: > > > > > > > > On 04/28/2016 11:35 AM, Navdeep Parhar wrote: > > > On 04/28/2016 11:13, bazzoola wrot

Re: netmap overrun counters

2016-04-28 Thread Adrian Chadd
It doesn't overwrite unread slots; it just hits the end and stops RX'ing (and is counted by the NIC as an RX overflow) until you've RX'ed some frames and told netmap what you've handed. -adrian ___ freebsd-net@freebsd.org mailing list https://lists.free

Re: netmap overrun counters

2016-04-28 Thread bazzoola
On 04/28/2016 12:06 PM, Luigi Rizzo wrote: > > > On Thursday, April 28, 2016, bazzoola > wrote: > > > > On 04/28/2016 11:35 AM, Navdeep Parhar wrote: > > On 04/28/2016 11:13, bazzoola wrote: > >> Hi! > >> > >> Two questions: > >> > >> (

Re: netmap overrun counters

2016-04-28 Thread Luigi Rizzo
On Thursday, April 28, 2016, bazzoola wrote: > > > On 04/28/2016 11:35 AM, Navdeep Parhar wrote: > > On 04/28/2016 11:13, bazzoola wrote: > >> Hi! > >> > >> Two questions: > >> > >> (1) Is there a way to know when netmap rx rings overrun? Most NIC > >> drivers provide MPC (missed packet count) an

Re: netmap overrun counters

2016-04-28 Thread bazzoola
On 04/28/2016 11:35 AM, Navdeep Parhar wrote: > On 04/28/2016 11:13, bazzoola wrote: >> Hi! >> >> Two questions: >> >> (1) Is there a way to know when netmap rx rings overrun? Most NIC >> drivers provide MPC (missed packet count) and sysctl for rx_overrun. >> >> I would like to know if my applica

Re: netmap overrun counters

2016-04-28 Thread Navdeep Parhar
On 04/28/2016 11:13, bazzoola wrote: > Hi! > > Two questions: > > (1) Is there a way to know when netmap rx rings overrun? Most NIC > drivers provide MPC (missed packet count) and sysctl for rx_overrun. > > I would like to know if my application is not reading as fast, i.e., no > frames are bein