lkml.org 
[lkml]   [2021]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm/vmalloc: try alloc_pages_bulk first to get order 0 pages fast
On Fri, Jul 09, 2021 at 05:28:31PM +0800, Yang Huan wrote:
> Vmalloc may offen get pages by loop invoke alloc_pags, this is
> cost too much time in count watermark/cpuset or something.
> Let's just try alloc by alloc_pages_bulk, if failed, fullback in
> original path.
>
> With my own test, simulate loop alloc_page and alloc_pages_bulk_array,
> get this:
> size 1M 10M 20M 30
> normal 44 1278 3665 5581
> test 34 889 2167 3300
> optimize 22% 30% 40% 40%
> And in my vmalloc top sort, zram/f2fs may alloc more than 20MB, so,
> It's worth to use alloc_pages_bulk.
>
> Signed-off-by: Yang Huan <link@vivo.com>

Thanks. I suggest you take a look at the current merge window and check
if anything additional needs to be done after the vmalloc bulk allocation
by Uladzislau Rezki.

--
Mel Gorman
SUSE Labs

\
 
 \ /
  Last update: 2021-07-09 11:39    [W:0.081 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site