Re: [PATCH] ns: move free_nsproxy() out of do_exit() path

2012-07-13 Thread Kirill A. Shutemov
On Fri, Jul 13, 2012 at 02:08:06PM -0700, Andrew Morton wrote: > On Fri, 13 Jul 2012 14:48:08 +0300 > "Kirill A. Shutemov" wrote: > > > From: "Kirill A. Shutemov" > > > > free_nsproxy() is too heavy to be on exit path. Let's free namespaces > > asynchronously to not block exit_group() syscall.

Re: [PATCH] ns: move free_nsproxy() out of do_exit() path

2012-07-13 Thread Andrew Morton
On Fri, 13 Jul 2012 14:48:08 +0300 "Kirill A. Shutemov" wrote: > From: "Kirill A. Shutemov" > > free_nsproxy() is too heavy to be on exit path. Let's free namespaces > asynchronously to not block exit_group() syscall. Please be specific, and complete. Why is it "too heavy"? Where is the time

[PATCH] ns: move free_nsproxy() out of do_exit() path

2012-07-13 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" free_nsproxy() is too heavy to be on exit path. Let's free namespaces asynchronously to not block exit_group() syscall. Microbenchmark: : #define _GNU_SOURCE : #include : #include : #include : #include : : int : main(void) : { : int i; : for (i = 0; i