Re: [RFC PATCH] mm/page_alloc.c: micro-optimization reduce oom critical section size

2020-09-16 Thread Mateusz Nosek
Hello, Thank you for your comments. I will modify the patch where necessary and resend v2, but first I will make 100% sure about the lack of synchronization problem, that might potentially be there as you mentioned in previous mail , and try to check some numbers for my support. Sincerely yo

Re: [RFC PATCH] mm/page_alloc.c: micro-optimization reduce oom critical section size

2020-09-15 Thread Michal Hocko
On Tue 15-09-20 15:09:59, Mateusz Nosek wrote: > > > On 9/14/2020 4:22 PM, Michal Hocko wrote: > > On Mon 14-09-20 12:06:54, mateusznos...@gmail.com wrote: > > > From: Mateusz Nosek > > > > > > Most operations from '__alloc_pages_may_oom' do not require oom_mutex > > > hold. > > > Exception is

Re: [RFC PATCH] mm/page_alloc.c: micro-optimization reduce oom critical section size

2020-09-15 Thread Mateusz Nosek
On 9/14/2020 4:22 PM, Michal Hocko wrote: On Mon 14-09-20 12:06:54, mateusznos...@gmail.com wrote: From: Mateusz Nosek Most operations from '__alloc_pages_may_oom' do not require oom_mutex hold. Exception is 'out_of_memory'. The patch refactors '__alloc_pages_may_oom' to reduce critical sec

Re: [RFC PATCH] mm/page_alloc.c: micro-optimization reduce oom critical section size

2020-09-14 Thread Michal Hocko
On Mon 14-09-20 12:06:54, mateusznos...@gmail.com wrote: > From: Mateusz Nosek > > Most operations from '__alloc_pages_may_oom' do not require oom_mutex hold. > Exception is 'out_of_memory'. The patch refactors '__alloc_pages_may_oom' > to reduce critical section size and improve overall system p

[RFC PATCH] mm/page_alloc.c: micro-optimization reduce oom critical section size

2020-09-14 Thread mateusznosek0
From: Mateusz Nosek Most operations from '__alloc_pages_may_oom' do not require oom_mutex hold. Exception is 'out_of_memory'. The patch refactors '__alloc_pages_may_oom' to reduce critical section size and improve overall system performance. Signed-off-by: Mateusz Nosek --- mm/page_alloc.c | 4