Re: [PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area()

2018-02-21 Thread Andy Lutomirski
On Wed, Feb 21, 2018 at 7:23 AM, Konstantin Khlebnikov wrote: > > > On 21.02.2018 03:16, Andrew Morton wrote: >> >> On Tue, 23 Jan 2018 16:57:21 +0300 Konstantin Khlebnikov >> wrote: >> >>> # stress-ng --clone 100 -t 10s --metrics-brief >>> at 32-core machine shows boost 35000 -> 36000 bogo ops >

Re: [PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area()

2018-02-20 Thread Konstantin Khlebnikov
On 21.02.2018 03:16, Andrew Morton wrote: On Tue, 23 Jan 2018 16:57:21 +0300 Konstantin Khlebnikov wrote: # stress-ng --clone 100 -t 10s --metrics-brief at 32-core machine shows boost 35000 -> 36000 bogo ops Patch 4/4 is a kind of RFC. Actually per-cpu cache of preallocated stacks works fa

Re: [PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area()

2018-02-20 Thread Andrew Morton
On Tue, 23 Jan 2018 16:57:21 +0300 Konstantin Khlebnikov wrote: > # stress-ng --clone 100 -t 10s --metrics-brief > at 32-core machine shows boost 35000 -> 36000 bogo ops > > Patch 4/4 is a kind of RFC. > Actually per-cpu cache of preallocated stacks works faster than buddy > allocator thus > p

Re: [PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area()

2018-01-23 Thread Konstantin Khlebnikov
# stress-ng --clone 100 -t 10s --metrics-brief at 32-core machine shows boost 35000 -> 36000 bogo ops Patch 4/4 is a kind of RFC. Actually per-cpu cache of preallocated stacks works faster than buddy allocator thus performance boots for it happens only at completely insane rate of clones. On 23

[PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area()

2018-01-23 Thread Konstantin Khlebnikov
This gives as pointer vm_struct without calling find_vm_area(). And fix comment about that task holds cache of vm area: this cache used for retrieving actual stack pages, freeing is done by vfree_deferred(). Signed-off-by: Konstantin Khlebnikov --- kernel/fork.c | 37 +++--