* random thoughts on optmizing network namespace exit.
@ 2016-11-23 23:52 Eric W. Biederman
0 siblings, 0 replies; only message in thread
From: Eric W. Biederman @ 2016-11-23 23:52 UTC (permalink / raw)
To: Andrei Vagin; +Cc: netdev
Fundamentally if we want things to get better we have to remove
unnecessary serialization. It is entirely too easy to sleep when
cleaning up a networking subsystem and create long hold times on
net_mutex for no particular reasons.
What probably makes sense to do is to add the concept of a
non-serialized pernet_operation. And then work through the networking
stack converting all of the pernet_operations. That should allow
network namespace exits to overlap while they clean up, and it should
allow the net_mutex to be dropped at the same point we drop rtnl_lock
in cleanup_net.
It might be a touch tricky during the transition period to take
advantage of an early drop of net_mutex, but that is where I would
start.
Once net_mutex is no longer used to serialize initialization/cleanup
methods for a network namespace. We can look at other bottlenecks.
Eric
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-23 23:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 23:52 random thoughts on optmizing network namespace exit Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox