Re: [PATCH net-next 3/3] tcp: get rid of tcp_tso_should_defer() dependency on HZ/jiffies

2018-11-12 Thread Yuchung Cheng
On Sun, Nov 11, 2018 at 11:06 AM, Neal Cardwell wrote: > On Sun, Nov 11, 2018 at 9:41 AM Eric Dumazet wrote: >> >> tcp_tso_should_defer() first heuristic is to not defer >> if last send is "old enough". >> >> Its current implementation uses jiffies and its low granularity. >> >> TSO autodefer per

Re: [PATCH net-next 3/3] tcp: get rid of tcp_tso_should_defer() dependency on HZ/jiffies

2018-11-11 Thread Neal Cardwell
On Sun, Nov 11, 2018 at 9:41 AM Eric Dumazet wrote: > > tcp_tso_should_defer() first heuristic is to not defer > if last send is "old enough". > > Its current implementation uses jiffies and its low granularity. > > TSO autodefer performance should not rely on kernel HZ :/ > > After EDT conversion

[PATCH net-next 3/3] tcp: get rid of tcp_tso_should_defer() dependency on HZ/jiffies

2018-11-11 Thread Eric Dumazet
tcp_tso_should_defer() first heuristic is to not defer if last send is "old enough". Its current implementation uses jiffies and its low granularity. TSO autodefer performance should not rely on kernel HZ :/ After EDT conversion, we have state variables in nanoseconds that can allow us to proper