netns: uevent performance tweaks
Subsystems (4)
cover netns: uevent performance tweaks
Hey,
This series deals with a bunch of performance improvements when sending out uevents that have been extensively discussed here:
https://lkml.org/lkml/2018/4/10/592
- Only record uevent sockets from network namespaces owned by the initial user namespace in the global uevent socket list. Eric, this is the exact patch we agreed upon in
https://lkml.org/lkml/2018/4/10/592.
**A very detailed rationale is present in the commit message for
[PATCH 1/2] netns: restrict uevents**
- Decouple the locking for network namespaces in the global uevent socket list from the locking for network namespaces not in the global uevent socket list.
**A very detailed rationale is present in the commit message
[PATCH 2/2] netns: isolate seqnums to use per-netns locks**
Thanks!
Christian
Christian Brauner (2):
netns: restrict uevents
netns: isolate seqnums to use per-netns locks
include/linux/kobject.h | 3 - include/net/net_namespace.h | 3 + kernel/ksysfs.c | 3 +- lib/kobject_uevent.c | 118 ++++++++++++++++++++++++++++-------- net/core/net_namespace.c | 13 ++++ 5 files changed, 110 insertions(+), 30 deletions(-)
Signature · 1 line
2.17.0
PATCH 1/2 netns: restrict uevents
commit 07e98962fa77 ("kobject: Send hotplug events in all network namespaces")
enabled sending hotplug events into all network namespaces back in 2010. Over time the set of uevents that get sent into all network namespaces has shrunk a little. We have now reached the point where hotplug events for all devices that carry a namespace tag are filtered according to that namespace. Specifically, they are filtered whenever the namespace tag of the kobject does not match the namespace tag of the netlink socket. One example are network devices. Uevents for network devices only show up in the network namespaces these devices are moved to or created in.
However, any uevent for a kobject that does not have a namespace tag associated with it will not be filtered and we will broadcast it into all network namespaces. This behavior stopped making sense when user namespaces were introduced.
This patch restricts uevents to the initial user namespace for a couple of reasons that have been extensively discusses on the mailing list [1].
- Thundering herd:
Broadcasting uevents into all network namespaces introduces significant overhead.
All processes that listen to uevents running in non-initial user namespaces will end up responding to uevents that will be meaningless to them. Mainly, because non-initial user namespaces cannot easily manage devices unless they have a privileged host-process helping them out. This means that there will be a thundering herd of activity when there shouldn't be any.
- Uevents from non-root users are already filtered in userspace:
Uevents are filtered by userspace in a user namespace because the received uid != 0. Instead the uid associated with the event will be 65534 == "nobody" because the global root uid is not mapped. This means we can safely and without introducing regressions modify the kernel to not send uevents into all network namespaces whose owning user namespace is not the initial user namespace because we know that userspace will ignore the message because of the uid anyway. I have
a) verified that is is true for every udev implementation out there b) that this behavior has been present in all udev implementations from the very beginning.
- Removing needless overhead/Increasing performance:
Currently, the uevent socket for each network namespace is added to the global variable uevent_sock_list. The list itself needs to be protected by a mutex. So everytime a uevent is generated the mutex is taken on the list. The mutex is held *from the creation of the uevent (memory allocation, string creation etc. until all uevent sockets have been handled*. This is aggravated by the fact that for each uevent socket that has listeners the mc_list must be walked as well which means we're talking O(n^2) here. Given that a standard Linux workload usually has quite a lot of network namespaces and - in the face of containers - a lot of user namespaces this quickly becomes a performance problem (see "Thundering herd" above). By just recording uevent sockets of network namespaces that are owned by the initial user namespace we significantly increase performance in this codepath.
- Injecting uevents:
There's a valid argument that containers might be interested in receiving device events especially if they are delegated to them by a privileged userspace process. One prime example are SR-IOV enabled devices that are explicitly designed to be handed of to other users such as VMs or containers.
This use-case can now be correctly handled since
commit 692ec06d7c92 ("netns: send uevent messages"). This commit introduced the ability to send uevents from userspace. As such we can let a sufficiently privileged (CAP_SYS_ADMIN in the owning user namespace of the network namespace of the netlink socket) userspace process make a decision what uevents should be sent. This removes the need to blindly broadcast uevents into all user namespaces and provides a performant and safe solution to this problem.
- Filtering logic:
This patch filters by *owning user namespace of the network namespace a given task resides in* and not by user namespace of the task per se. This means if the user namespace of a given task is unshared but the network namespace is kept and is owned by the initial user namespace a listener that is opening the uevent socket in that network namespace can still listen to uevents.
[1]: https://lkml.org/lkml/2018/4/4/739
--- lib/kobject_uevent.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
lib/kobject_uevent.c +12 -6
@@ -703,9 +703,13 @@ static int uevent_net_init(struct net *net) net->uevent_sock = ue_sk; -mutex_lock (&uevent_sock_mutex); -list_add_tail (&ue_sk->list, &uevent_sock_list); -mutex_unlock (&uevent_sock_mutex); +/* Restrict uevents to initial user namespace. */ +if (sock_net (ue_sk->sk)->user_ns == &init_user_ns) { +mutex_lock (&uevent_sock_mutex); +list_add_tail (&ue_sk->list, &uevent_sock_list); +mutex_unlock (&uevent_sock_mutex); + } +return 0 ; }
@@ -713,9 +717,11 @@ static void uevent_net_exit(struct net *net) {struct uevent_sock *ue_sk = net->uevent_sock; -mutex_lock (&uevent_sock_mutex); -list_del (&ue_sk->list); -mutex_unlock (&uevent_sock_mutex); +if (sock_net (ue_sk->sk)->user_ns == &init_user_ns) { +mutex_lock (&uevent_sock_mutex); +list_del (&ue_sk->list); +mutex_unlock (&uevent_sock_mutex); + }netlink_kernel_release (ue_sk->sk);kfree (ue_sk);
Signature · 1 line
2.17.0
PATCH 2/2 netns: isolate seqnums to use per-netns locks
In reply to Christian BraunerNow that it's possible to have a different set of uevents in different network namespaces, per-network namespace uevent sequence numbers are introduced. This increases performance as locking is now restricted to the network namespace affected by the uevent rather than locking everything.
Since commit 692ec06 ("netns: send uevent messages") network namespaces not owned by the intial user namespace can be sent uevents from a sufficiently privileged userspace process.
In order to send a uevent into a network namespace not owned by the initial user namespace we currently still need to take the *global mutex* that locks the uevent socket list even though the list *only contains network namespaces owned by the initial user namespace*. This needs to be done because the uevent counter is a global variable. Taking the global lock is performance sensitive since a user on the host can spawn a pool of n process that each create their own new user and network namespaces and then go on to inject uevents in parallel into the network namespace of all of these processes. This can have a significant performance impact for the host's udevd since it means that there can be a lot of delay between a device being added and the corresponding uevent being sent out and available for processing by udevd. It also means that each network namespace not owned by the initial user namespace which userspace has sent a uevent to will need to wait until the lock becomes available.
Implementation:
This patch gives each network namespace its own uevent sequence number. Each network namespace not owned by the initial user namespace receives its own mutex. The struct uevent_sock is opaque to callers outside of kobject.c so the mutex *can* and *is* only ever accessed in lib/kobject.c. In this file it is clearly documented which lock has to be taken. All network namespaces owned by the initial user namespace will still share the same lock since they are all served sequentially via the uevent socket list. This decouples the locking and ensures that the host retrieves uevents as fast as possible even if there are a lot of uevents injected into network namespaces not owned by the initial user namespace. In addition, each network namespace not owned by the initial user namespace does not have to wait on any other network namespace not sharing the same user namespace.
--- include/linux/kobject.h | 3 -- include/net/net_namespace.h | 3 ++ kernel/ksysfs.c | 3 +- lib/kobject_uevent.c | 100 ++++++++++++++++++++++++++++-------- net/core/net_namespace.c | 13 +++++ 5 files changed, 98 insertions(+), 24 deletions(-)
include/linux/kobject.h +0 -3
@@ -36,9 +36,6 @@extern char uevent_helper[];#endif -/* counter to tag the uevent, read only except for the kobject core */ -extern u64 uevent_seqnum; -/* * The actions here must match the index to the string array * in lib/kobject_uevent.c
include/net/net_namespace.h +3 -0
@@ -85,6 +85,8 @@ struct net {struct sock *genl_sock;struct uevent_sock *uevent_sock;/* uevent socket */ +/* counter to tag the uevent, read only except for the kobject core */ +u64 uevent_seqnum;struct list_head dev_base_head;struct hlist_head *dev_name_head;
@@ -189,6 +191,7 @@ extern struct list_head net_namespace_list;struct net *get_net_ns_by_pid (pid_t pid);struct net *get_net_ns_by_fd (int fd); +u64 get_ns_uevent_seqnum_by_vpid (void );#ifdef CONFIG_SYSCTL void ipx_register_sysctl (void );
kernel/ksysfs.c +2 -1
@@ -19,6 +19,7 @@#include <linux/sched.h> #include <linux/capability.h> #include <linux/compiler.h> +#include <net/net_namespace.h> #include <linux/rcupdate.h> /* rcu_expedited and rcu_normal */
@@ -33,7 +34,7 @@ static struct kobj_attribute _name##_attr = \static ssize_t uevent_seqnum_show (struct kobject *kobj,struct kobj_attribute *attr,char *buf) { -return sprintf (buf,"%llu\n" , (unsigned long long )uevent_seqnum); +return sprintf (buf,"%llu\n" , (unsigned long long )get_ns_uevent_seqnum_by_vpid ()); }KERNEL_ATTR_RO (uevent_seqnum);
lib/kobject_uevent.c +80 -20
188 lines not on this page · raw message
net/core/net_namespace.c +13 -0
@@ -618,6 +618,19 @@ struct net *get_net_ns_by_pid(pid_t pid) }EXPORT_SYMBOL_GPL (get_net_ns_by_pid); +u64 get_ns_uevent_seqnum_by_vpid (void ) +{ +pid_t cur_pid; +struct net *net; + + cur_pid =task_pid_vnr (current); + net =get_net_ns_by_pid (cur_pid); +if (IS_ERR (net)) +return 0 ; + +return net->uevent_seqnum; +} +static __net_init int net_ns_net_init (struct net *net) {#ifdef CONFIG_NET_NS
Signature · 1 line
2.17.0
Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks
Quoted 5 lines · Christian Brauner
Now that it's possible to have a different set of uevents in different network namespaces, per-network namespace uevent sequence numbers are introduced. This increases performance as locking is now restricted to the network namespace affected by the uevent rather than locking everything.
Numbers please. I personally expect that the netlink mc_list issues will swamp any benefit you get from this.
Eric
Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks
Quoted 10 lines · Eric W. Biederman
Quoted 5 lines · Christian Brauner
Now that it's possible to have a different set of uevents in different network namespaces, per-network namespace uevent sequence numbers are introduced. This increases performance as locking is now restricted to the network namespace affected by the uevent rather than locking everything.
Numbers please. I personally expect that the netlink
mc_listissues will swamp any benefit you get from this.
I wouldn't see how this would be the case. The gist of this is:
Everytime you send a uevent into a network namespace *not* owned by init_user_ns you currently *have* to take mutex_lock(uevent_sock_list) effectively blocking the host from processing uevents even though
- the uevent you're receiving might be totally different from the uevent that you're sending
- the uevent socket of the non-init_user_ns owned network namespace isn't even recorded in the list.
The other argument is that we now have properly isolated network namespaces wrt to uevents such that each netns can have its own set of uevents. This can either happen by a sufficiently privileged userspace process sending it uevents that are only dedicated to that specific netns. Or - and this *has been true for a long time* - because network devices are *properly namespaced*. Meaning a uevent for that network device is *tied to a network namespace*. For both cases the uevent sequence numbering will be absolutely misleading. For example, whenever you create e.g. a new veth device in a new network namespace it shouldn't be accounted against the initial network namespace but *only* against the network namespace that has that device added to it.
Thanks!
Christian
Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks
Quoted 21 lines · Christian Brauner
Quoted 10 lines · Eric W. Biederman
Quoted 5 lines · Christian Brauner
Now that it's possible to have a different set of uevents in different network namespaces, per-network namespace uevent sequence numbers are introduced. This increases performance as locking is now restricted to the network namespace affected by the uevent rather than locking everything.
Numbers please. I personally expect that the netlink
mc_listissues will swamp any benefit you get from this.I wouldn't see how this would be the case. The gist of this is:
Everytime you send a uevent into a network namespace *not* owned byinit_user_nsyou currently *have* to takemutex_lock(uevent_sock_list)effectively blocking the host from processing uevents even though
- the uevent you're receiving might be totally different from the uevent that you're sending
- the uevent socket of the non-init_user_ns owned network namespace isn't even recorded in the list.
Quoted 11 lines
The other argument is that we now have properly isolated network namespaces wrt to uevents such that each netns can have its own set of uevents. This can either happen by a sufficiently privileged userspace process sending it uevents that are only dedicated to that specific netns. Or - and this *has been true for a long time* - because network devices are *properly namespaced*. Meaning a uevent for that network device is *tied to a network namespace*. For both cases the uevent sequence numbering will be absolutely misleading. For example, whenever you create e.g. a new veth device in a new network namespace it shouldn't be accounted against the initial network namespace but *only* against the network namespace that has that device added to it.
Eric, I did the testing. Here's what I did:
I compiled two 4.17-rc1 Kernels:
- one with per netns uevent seqnums with decoupled locking
- one without per netns uevent seqnums with decoupled locking
# Testcase 1:
Only Injecting Uevents into network namespaces not owned by the initial user namespace.
- created 1000 new user namespace + network namespace pairs
- opened a uevent listener in each of those namespace pairs
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
67 μs
- *with* uevent sequence number namespacing:
55 μs
- makes a difference of 12 μs
# Testcase 2:
Injecting Uevents into network namespaces not owned by the initial user namespace and network namespaces owned by the initial user namespace.
- created 500 new user namespace + network namespace pairs
- created 500 new network namespace pairs
- opened a uevent listener in each of those namespace pairs
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
572 μs
- *with* uevent sequence number namespacing:
514 μs
- makes a difference of 58 μs
So there's performance gain. The third case would be to create a bunch of hanging processes that send SIGSTOP to themselves but do not actually open a uevent socket in their respective namespaces and then inject uevents into them. I expect there to be an even more performance benefits since the rtnl_table_lock() isn't hit in this case because there are no listeners.
Christian
Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks
Quoted 71 lines · Christian Brauner
Quoted 21 lines · Christian Brauner
Quoted 10 lines · Eric W. Biederman
Quoted 5 lines · Christian Brauner
Now that it's possible to have a different set of uevents in different network namespaces, per-network namespace uevent sequence numbers are introduced. This increases performance as locking is now restricted to the network namespace affected by the uevent rather than locking everything.
Numbers please. I personally expect that the netlink
mc_listissues will swamp any benefit you get from this.I wouldn't see how this would be the case. The gist of this is:
Everytime you send a uevent into a network namespace *not* owned byinit_user_nsyou currently *have* to takemutex_lock(uevent_sock_list)effectively blocking the host from processing uevents even though
- the uevent you're receiving might be totally different from the uevent that you're sending
- the uevent socket of the non-init_user_ns owned network namespace isn't even recorded in the list.Quoted 11 lines
The other argument is that we now have properly isolated network namespaces wrt to uevents such that each netns can have its own set of uevents. This can either happen by a sufficiently privileged userspace process sending it uevents that are only dedicated to that specific netns. Or - and this *has been true for a long time* - because network devices are *properly namespaced*. Meaning a uevent for that network device is *tied to a network namespace*. For both cases the uevent sequence numbering will be absolutely misleading. For example, whenever you create e.g. a new veth device in a new network namespace it shouldn't be accounted against the initial network namespace but *only* against the network namespace that has that device added to it.
Eric, I did the testing. Here's what I did:
I compiled two 4.17-rc1 Kernels:
- one with per netns uevent seqnums with decoupled locking
- one without per netns uevent seqnums with decoupled locking# Testcase 1:
Only Injecting Uevents into network namespaces not owned by the initial user namespace.
- created 1000 new user namespace + network namespace pairs
- opened a uevent listener in each of those namespace pairs
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
67 μs
- *with* uevent sequence number namespacing:
55 μs
- makes a difference of 12 μs# Testcase 2:
Injecting Uevents into network namespaces not owned by the initial user namespace and network namespaces owned by the initial user namespace.
- created 500 new user namespace + network namespace pairs
- created 500 new network namespace pairs
- opened a uevent listener in each of those namespace pairs
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
572 μs
- *with* uevent sequence number namespacing:
514 μs
- makes a difference of 58 μs
Quoted 6 lines
So there's performance gain. The third case would be to create a bunch of hanging processes that send SIGSTOP to themselves but do not actually open a uevent socket in their respective namespaces and then inject uevents into them. I expect there to be an even more performance benefits since the
rtnl_table_lock()isn't hit in this case because there are no listeners.
I did the third test-case as well so:
- created 500 new user namespace + network namespace pairs *without uevent listeners*
- created 500 new network namespace pairs *without uevent listeners*
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
206 μs
- *with* uevent sequence number namespacing:
163 μs
- makes a difference of 43 μs
So this test-case shows performance improvement as well.
Thanks!
Christian
Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks
Quoted 93 lines · Christian Brauner
Quoted 71 lines · Christian Brauner
Quoted 21 lines · Christian Brauner
Quoted 10 lines · Eric W. Biederman
Quoted 5 lines · Christian Brauner
Now that it's possible to have a different set of uevents in different network namespaces, per-network namespace uevent sequence numbers are introduced. This increases performance as locking is now restricted to the network namespace affected by the uevent rather than locking everything.
Numbers please. I personally expect that the netlink
mc_listissues will swamp any benefit you get from this.I wouldn't see how this would be the case. The gist of this is:
Everytime you send a uevent into a network namespace *not* owned byinit_user_nsyou currently *have* to takemutex_lock(uevent_sock_list)effectively blocking the host from processing uevents even though
- the uevent you're receiving might be totally different from the uevent that you're sending
- the uevent socket of the non-init_user_ns owned network namespace isn't even recorded in the list.Quoted 11 lines
The other argument is that we now have properly isolated network namespaces wrt to uevents such that each netns can have its own set of uevents. This can either happen by a sufficiently privileged userspace process sending it uevents that are only dedicated to that specific netns. Or - and this *has been true for a long time* - because network devices are *properly namespaced*. Meaning a uevent for that network device is *tied to a network namespace*. For both cases the uevent sequence numbering will be absolutely misleading. For example, whenever you create e.g. a new veth device in a new network namespace it shouldn't be accounted against the initial network namespace but *only* against the network namespace that has that device added to it.
Eric, I did the testing. Here's what I did:
I compiled two 4.17-rc1 Kernels:
- one with per netns uevent seqnums with decoupled locking
- one without per netns uevent seqnums with decoupled locking# Testcase 1:
Only Injecting Uevents into network namespaces not owned by the initial user namespace.
- created 1000 new user namespace + network namespace pairs
- opened a uevent listener in each of those namespace pairs
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
67 μs
- *with* uevent sequence number namespacing:
55 μs
- makes a difference of 12 μs# Testcase 2:
Injecting Uevents into network namespaces not owned by the initial user namespace and network namespaces owned by the initial user namespace.
- created 500 new user namespace + network namespace pairs
- created 500 new network namespace pairs
- opened a uevent listener in each of those namespace pairs
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
572 μs
- *with* uevent sequence number namespacing:
514 μs
- makes a difference of 58 μsQuoted 6 lines
So there's performance gain. The third case would be to create a bunch of hanging processes that send SIGSTOP to themselves but do not actually open a uevent socket in their respective namespaces and then inject uevents into them. I expect there to be an even more performance benefits since the
rtnl_table_lock()isn't hit in this case because there are no listeners.I did the third test-case as well so:
- created 500 new user namespace + network namespace pairs *without uevent listeners*
- created 500 new network namespace pairs *without uevent listeners*
- injected uevents into each of those network namespaces 10,000 times meaning 10,000,000 (10 million) uevents were injected. (The high number of uevent injections should get rid of a lot of jitter.)
- Calculated the mean transaction time.
- *without* uevent sequence number namespacing:
206 μs
- *with* uevent sequence number namespacing:
163 μs
- makes a difference of 43 μs
Quoted 1 line
So this test-case shows performance improvement as well.
Just for fun, I did a simple statistical anlysis using t-tests and they all show significant differences at alpha-level 0.001 (Which I chose because it seemed 0.05 is a bit too lax.).
Testcase 1:
Welch Two Sample t-test
data: x1 and y1
t = 405.16, df = 18883000, p-value < 2.2e-16 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval:
12.14949 12.26761
sample estimates:
mean of x mean of y
68.48594 56.27739
Testcase 2:
Welch Two Sample t-test
data: x2 and y2
t = 38.685, df = 19682000, p-value < 2.2e-16 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval:
55.10630 60.98815
sample estimates:
mean of x mean of y
572.9684 514.9211
Testcase 3:
Welch Two Sample t-test
data: x3 and y3
t = 58.37, df = 17711000, p-value < 2.2e-16
alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval:
41.77860 44.68178
sample estimates:
mean of x mean of y
207.2632 164.0330
Thanks!
Christian
kbuild test robot
build botRe: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks
In reply to Christian BraunerThank you for the patch! Yet something to improve:
Hi Christian,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Christian-Brauner/netns-uevent-performance-tweaks/20180420-013717
config: alpha-alldefconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=alpha
All errors (new ones prefixed by >>):
kernel/ksysfs.o: In function `uevent_seqnum_show':
>> (.text+0x18c): undefined reference to `get_ns_uevent_seqnum_by_vpid'
(.text+0x19c): undefined reference to `get_ns_uevent_seqnum_by_vpid'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks
Quoted 15 lines · kbuild test robot
Hi Christian,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Christian-Brauner/netns-uevent-performance-tweaks/20180420-013717
config: alpha-alldefconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=alpha
Quoted 5 lines
All errors (new ones prefixed by >>):
kernel/ksysfs.o: In function `uevent_seqnum_show':Quoted 1 line
Quoted 1 line
(.text+0x18c): undefined reference to `get_ns_uevent_seqnum_by_vpid'
(.text+0x19c): undefined reference to `get_ns_uevent_seqnum_by_vpid'
Right, this happens when CONFIG_NET=n. I am about to send out the second version of the patch that includes all of the test results in the commit message and also accounts for kernels compiled without CONFIG_NET.
Thanks!
Christian
Quoted 4 lines
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation