Re: [PATCHv2] mm/page_owner: use kvmalloc instead of kmalloc

2018-10-28 Thread Matthew Wilcox
On Mon, Oct 29, 2018 at 10:16:43AM +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 kvmalloc() so we can also allocate

Re: [PATCHv2] mm/page_owner: use kvmalloc instead of kmalloc

2018-10-28 Thread Matthew Wilcox
On Mon, Oct 29, 2018 at 10:16:43AM +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 kvmalloc() so we can also allocate

[PATCHv2] mm/page_owner: use kvmalloc instead of kmalloc

2018-10-28 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 kvmalloc() so we can also allocate kbuf from normal/hihghmem on 32bit kernel. Clamp the kbuf size to

[PATCHv2] mm/page_owner: use kvmalloc instead of kmalloc

2018-10-28 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 kvmalloc() so we can also allocate kbuf from normal/hihghmem on 32bit kernel. Clamp the kbuf size to