Re: [PATCH] mm: Free unused pages in kmalloc_order()

2020-06-28 Thread Matthew Wilcox
On Sun, Jun 28, 2020 at 01:17:59PM +0200, Markus Elfring wrote: > > kmalloc(1024, GFP_HIGHUSER) can allocate memory normally, > > kmalloc(64*1024, GFP_HIGHUSER) will cause a memory leak, > > Would you like to explain the influence of the selected allocation size > in a different way? Markus, this

Re: [PATCH] mm: Free unused pages in kmalloc_order()

2020-06-28 Thread Markus Elfring
> kmalloc(1024, GFP_HIGHUSER) can allocate memory normally, > kmalloc(64*1024, GFP_HIGHUSER) will cause a memory leak, Would you like to explain the influence of the selected allocation size in a different way? > because alloc_pages returns highmem physical pages, but it cannot be directly > con