Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-30 Thread Giuseppe Scrivano
Andrew Morton writes: > On Wed, 29 Nov 2017 11:33:28 +0100 Giuseppe Scrivano > wrote: > >> Andrew Morton writes: >> >> > OK, but this simply moves the expense so it happens later on. Why is >> > that better? >> >> the optimization is for new IPC namespaces that don't use mq_open. In >> thi

Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-29 Thread Andrew Morton
On Wed, 29 Nov 2017 11:33:28 +0100 Giuseppe Scrivano wrote: > Andrew Morton writes: > > > OK, but this simply moves the expense so it happens later on. Why is > > that better? > > the optimization is for new IPC namespaces that don't use mq_open. In > this case there won't be any kern_mount

Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-29 Thread Giuseppe Scrivano
Andrew Morton writes: > OK, but this simply moves the expense so it happens later on. Why is > that better? the optimization is for new IPC namespaces that don't use mq_open. In this case there won't be any kern_mount_data cost at all. Regards, Giuseppe

Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-28 Thread Andrew Morton
On Mon, 27 Nov 2017 13:55:50 +0100 Giuseppe Scrivano wrote: > kern_mount_data is a relatively expensive operation when creating a > new IPC namespace, so delay the mount until its first usage when not > creating the the global namespace. > > On my machine, the time for creating 1000 new IPC nam

Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-27 Thread Davidlohr Bueso
This is akpm domain. On Mon, 27 Nov 2017, Giuseppe Scrivano wrote: kern_mount_data is a relatively expensive operation when creating a new IPC namespace, so delay the mount until its first usage when not creating the the global namespace. On my machine, the time for creating 1000 new IPC names

[RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-27 Thread Giuseppe Scrivano
kern_mount_data is a relatively expensive operation when creating a new IPC namespace, so delay the mount until its first usage when not creating the the global namespace. On my machine, the time for creating 1000 new IPC namespaces dropped from ~8s to ~2s. Signed-off-by: Giuseppe Scrivano ---