Re: [PATCH] mm/page_owner: use vmalloc instead of kmalloc

2018-10-26 Thread Michal Hocko
On Thu 25-10-18 12:27:01, Matthew Wilcox wrote: > On Fri, Oct 26, 2018 at 02:34:41AM +0800, miles.c...@mediatek.com wrote: > > The kbuf used by page owner is allocated by kmalloc(), > > which means it can use only normal memory and there might > > be a "out of memory" issue when we're out of normal

Re: [PATCH] mm/page_owner: use vmalloc instead of kmalloc

2018-10-26 Thread Miles Chen
On Thu, 2018-10-25 at 12:27 -0700, Matthew Wilcox wrote: > On Fri, Oct 26, 2018 at 02:34:41AM +0800, miles.c...@mediatek.com wrote: > > The kbuf used by page owner is allocated by kmalloc(), > > which means it can use only normal memory and there might > > be a "out of memory" issue when we're out

Re: [PATCH] mm/page_owner: use vmalloc instead of kmalloc

2018-10-26 Thread Miles Chen
On Thu, 2018-10-25 at 11:44 -0700, Joe Perches wrote: > On Fri, 2018-10-26 at 02:34 +0800, miles.c...@mediatek.com wrote: > > From: Miles Chen > > > > The kbuf used by page owner is allocated by kmalloc(), > > which means it can use only normal memory and there might > > be a "out of memory" issu

Re: [PATCH] mm/page_owner: use vmalloc instead of kmalloc

2018-10-25 Thread Matthew Wilcox
On Fri, Oct 26, 2018 at 02:34:41AM +0800, miles.c...@mediatek.com wrote: > The kbuf used by page owner is allocated by kmalloc(), > which means it can use only normal memory and there might > be a "out of memory" issue when we're out of normal memory. > > Use vmalloc() so we can also allocate kbuf

Re: [PATCH] mm/page_owner: use vmalloc instead of kmalloc

2018-10-25 Thread Joe Perches
On Fri, 2018-10-26 at 02:34 +0800, miles.c...@mediatek.com wrote: > From: Miles Chen > > The kbuf used by page owner is allocated by kmalloc(), > which means it can use only normal memory and there might > be a "out of memory" issue when we're out of normal memory. > > Use vmalloc() so we can al

[PATCH] mm/page_owner: use vmalloc instead of kmalloc

2018-10-25 Thread miles.chen
From: Miles Chen The kbuf used by page owner is allocated by kmalloc(), which means it can use only normal memory and there might be a "out of memory" issue when we're out of normal memory. Use vmalloc() so we can also allocate kbuf from highmem on 32bit kernel. Signed-off-by: Miles Chen ---