Re: [PATCH net-next V2] net ipv6: convert fib6_table rwlock to a percpu lock

2017-08-04 Thread David Miller
From: David Ahern Date: Fri, 4 Aug 2017 11:11:40 -0600 > On 8/4/17 11:07 AM, Eric Dumazet wrote: >> On Fri, 2017-08-04 at 09:38 -0700, Shaohua Li wrote: >>> From: Shaohua Li >>> >>> In a syn flooding test, the fib6_table rwlock is a significant >>> bottleneck. While converting the rwlock to rcu

Re: [PATCH net-next V2] net ipv6: convert fib6_table rwlock to a percpu lock

2017-08-04 Thread Wei Wang
On Fri, Aug 4, 2017 at 10:11 AM, David Ahern wrote: > On 8/4/17 11:07 AM, Eric Dumazet wrote: >> On Fri, 2017-08-04 at 09:38 -0700, Shaohua Li wrote: >>> From: Shaohua Li >>> >>> In a syn flooding test, the fib6_table rwlock is a significant >>> bottleneck. While converting the rwlock to rcu soun

Re: [PATCH net-next V2] net ipv6: convert fib6_table rwlock to a percpu lock

2017-08-04 Thread David Ahern
On 8/4/17 11:07 AM, Eric Dumazet wrote: > On Fri, 2017-08-04 at 09:38 -0700, Shaohua Li wrote: >> From: Shaohua Li >> >> In a syn flooding test, the fib6_table rwlock is a significant >> bottleneck. While converting the rwlock to rcu sounds straighforward, >> but is very challenging if it's possib

Re: [PATCH net-next V2] net ipv6: convert fib6_table rwlock to a percpu lock

2017-08-04 Thread Eric Dumazet
On Fri, 2017-08-04 at 09:38 -0700, Shaohua Li wrote: > From: Shaohua Li > > In a syn flooding test, the fib6_table rwlock is a significant > bottleneck. While converting the rwlock to rcu sounds straighforward, > but is very challenging if it's possible. A percpu spinlock (lglock has > been remov

[PATCH net-next V2] net ipv6: convert fib6_table rwlock to a percpu lock

2017-08-04 Thread Shaohua Li
From: Shaohua Li In a syn flooding test, the fib6_table rwlock is a significant bottleneck. While converting the rwlock to rcu sounds straighforward, but is very challenging if it's possible. A percpu spinlock (lglock has been removed from kernel, so I added a simple implementation here) is quite