Re: Three questions about busy poll

2019-02-22 Thread Samudrala, Sridhar
On 2/15/2019 11:18 AM, Cong Wang wrote: On Thu, Feb 14, 2019 at 4:43 PM Samudrala, Sridhar wrote: On 2/14/2019 12:15 PM, Cong Wang wrote: Hello, While looking into the busy polling in Linux kernel, three questions come into my mind: 1. In the document[1], it claims sysctl.net.busy_poll de

Re: Three questions about busy poll

2019-02-19 Thread Willem de Bruijn
On Mon, Feb 18, 2019 at 11:30 PM Cong Wang wrote: > > On Fri, Feb 15, 2019 at 2:47 PM Willem de Bruijn > wrote: > > > > > > > 2. Why there is no socket option for sysctl.net.busy_poll? Clearly > > > > > sysctl_net_busy_poll is global and SO_BUSY_POLL only works for > > > > > sysctl.net.busy_read.

Re: Three questions about busy poll

2019-02-18 Thread Cong Wang
On Fri, Feb 15, 2019 at 2:47 PM Willem de Bruijn wrote: > > > > > 2. Why there is no socket option for sysctl.net.busy_poll? Clearly > > > > sysctl_net_busy_poll is global and SO_BUSY_POLL only works for > > > > sysctl.net.busy_read. > > > > > > I guess because of how sock_poll works. In that case

Re: Three questions about busy poll

2019-02-15 Thread Willem de Bruijn
> > > 2. Why there is no socket option for sysctl.net.busy_poll? Clearly > > > sysctl_net_busy_poll is global and SO_BUSY_POLL only works for > > > sysctl.net.busy_read. > > > > I guess because of how sock_poll works. In that case it is not needed. > > The poll duration applies more to the pollset

Re: Three questions about busy poll

2019-02-15 Thread Cong Wang
On Thu, Feb 14, 2019 at 4:39 PM Willem de Bruijn wrote: > > On Thu, Feb 14, 2019 at 3:15 PM Cong Wang wrote: > > > > Hello, > > > > While looking into the busy polling in Linux kernel, three questions > > come into my mind: > > > > 1. In the document[1], it claims sysctl.net.busy_poll depends on

Re: Three questions about busy poll

2019-02-15 Thread Cong Wang
On Thu, Feb 14, 2019 at 4:43 PM Samudrala, Sridhar wrote: > > > On 2/14/2019 12:15 PM, Cong Wang wrote: > > Hello, > > While looking into the busy polling in Linux kernel, three questions > come into my mind: > > 1. In the document[1], it claims sysctl.net.busy_poll depends on > either SO_BUSY_POL

Re: Three questions about busy poll

2019-02-14 Thread Willem de Bruijn
On Thu, Feb 14, 2019 at 3:15 PM Cong Wang wrote: > > Hello, > > While looking into the busy polling in Linux kernel, three questions > come into my mind: > > 1. In the document[1], it claims sysctl.net.busy_poll depends on > either SO_BUSY_POLL or sysctl.net.busy_read. However, from the code in >