Re: [PATCH v1] mm/vmalloc: add a node corresponding to cached_hole_size

2017-07-21 Thread Michal Hocko
On Fri 21-07-17 04:39:48, Matthew Wilcox wrote: > On Fri, Jul 21, 2017 at 06:01:41PM +0800, Zhaoyang Huang wrote: > > we just record the cached_hole_size now, which will be used when > > the criteria meet both of 'free_vmap_cache == NULL' and 'size < > > cached_hole_size'. However, under above

Re: [PATCH v1] mm/vmalloc: add a node corresponding to cached_hole_size

2017-07-21 Thread Michal Hocko
On Fri 21-07-17 04:39:48, Matthew Wilcox wrote: > On Fri, Jul 21, 2017 at 06:01:41PM +0800, Zhaoyang Huang wrote: > > we just record the cached_hole_size now, which will be used when > > the criteria meet both of 'free_vmap_cache == NULL' and 'size < > > cached_hole_size'. However, under above

Re: [PATCH v1] mm/vmalloc: add a node corresponding to cached_hole_size

2017-07-21 Thread Matthew Wilcox
On Fri, Jul 21, 2017 at 06:01:41PM +0800, Zhaoyang Huang wrote: > we just record the cached_hole_size now, which will be used when > the criteria meet both of 'free_vmap_cache == NULL' and 'size < > cached_hole_size'. However, under above scenario, the search will > start from the rb_root and then

Re: [PATCH v1] mm/vmalloc: add a node corresponding to cached_hole_size

2017-07-21 Thread Matthew Wilcox
On Fri, Jul 21, 2017 at 06:01:41PM +0800, Zhaoyang Huang wrote: > we just record the cached_hole_size now, which will be used when > the criteria meet both of 'free_vmap_cache == NULL' and 'size < > cached_hole_size'. However, under above scenario, the search will > start from the rb_root and then

[PATCH v1] mm/vmalloc: add a node corresponding to cached_hole_size

2017-07-21 Thread Zhaoyang Huang
we just record the cached_hole_size now, which will be used when the criteria meet both of 'free_vmap_cache == NULL' and 'size < cached_hole_size'. However, under above scenario, the search will start from the rb_root and then find the node which just in front of the cached hole. free_vmap_cache

[PATCH v1] mm/vmalloc: add a node corresponding to cached_hole_size

2017-07-21 Thread Zhaoyang Huang
we just record the cached_hole_size now, which will be used when the criteria meet both of 'free_vmap_cache == NULL' and 'size < cached_hole_size'. However, under above scenario, the search will start from the rb_root and then find the node which just in front of the cached hole. free_vmap_cache