diff options
| author | Eric Dumazet <[email protected]> | 2017-09-19 16:27:09 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-09-19 16:32:24 -0700 |
| commit | 64bc17811b72758753e2b64cd8f2a63812c61fe1 (patch) | |
| tree | 484826d20103aa296586883918c1ba6a3e74ef0b /tools/perf/scripts/python | |
| parent | bb401caefe9d2c65e0c0fa23b21deecfbfa473fe (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions