Eric Dumazet
64bc17811b
ipv4: speedup ipv6 tunnels dismantle
Implement exit_batch() method to dismantle more devices
per round.
(rtnl_lock() ...
unregister_netdevice_many() ...
rtnl_unlock())
Tested:
$ cat add_del_unshare.sh
for i in `seq 1 40`
do
(for j in `seq 1 100` ; do unshare -n /bin/true >/dev/null ; done) &
done
wait ; grep net_namespace /proc/slabinfo
Before patch :
$ time ./add_del_unshare.sh
net_namespace 126 282 5504 1 2 : tunables 8 4 0 : slabdata 126 282 0
real 1m38.965s
user 0m0.688s
sys 0m37.017s
After patch:
$ time ./add_del_unshare.sh
net_namespace 135 291 5504 1 2 : tunables 8 4 0 : slabdata 135 291 0
real 0m22.117s
user 0m0.728s
sys 0m35.328s
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-19 16:32:24 -07:00
..
2017-09-05 12:50:00 -07:00
2017-09-14 20:01:41 -07:00
2017-09-08 18:26:49 -07:00
2017-09-15 20:43:33 -07:00
2017-09-19 15:20:22 -07:00
2017-09-07 12:53:14 -07:00
2017-09-19 16:32:24 -07:00
2017-09-09 13:31:49 -07:00
2017-09-13 10:47:14 -07:00
2017-09-10 20:40:00 -07:00
2017-09-07 12:44:53 -07:00
2017-09-16 11:28:59 -07:00
2017-09-14 17:30:49 -07:00
2017-08-31 09:45:55 -04:00