Re: [PATCH v3 net-next 3/3] tcp: add one skb cache for rx

2019-04-03 Thread Eric Dumazet
On 04/02/2019 06:17 PM, Jakub Kicinski wrote: > On Fri, 22 Mar 2019 08:56:40 -0700, Eric Dumazet wrote: >> Often times, recvmsg() system calls and BH handling for a particular >> TCP socket are done on different cpus. >> >> This means the incoming skb had to be allocated on a cpu, >> but freed o

Re: [PATCH v3 net-next 3/3] tcp: add one skb cache for rx

2019-04-02 Thread Jakub Kicinski
On Fri, 22 Mar 2019 08:56:40 -0700, Eric Dumazet wrote: > Often times, recvmsg() system calls and BH handling for a particular > TCP socket are done on different cpus. > > This means the incoming skb had to be allocated on a cpu, > but freed on another. > > This incurs a high spinlock contention

[PATCH v3 net-next 3/3] tcp: add one skb cache for rx

2019-03-22 Thread Eric Dumazet
Often times, recvmsg() system calls and BH handling for a particular TCP socket are done on different cpus. This means the incoming skb had to be allocated on a cpu, but freed on another. This incurs a high spinlock contention in slab layer for small rpc, but also a high number of cache line ping