Re: [PATCHv9 04/14] mm/page_alloc: Add sysfs handle to accept accept_memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 03, 2023 at 03:43:32PM +0200, Vlastimil Babka wrote:
> On 3/30/23 13:49, Kirill A. Shutemov wrote:
> > Write amount of memory to accept into the new sysfs handle
> > /sys/kernel/mm/page_alloc/accept_memory.
> > 
> > Write 'all' to the handle to accept all memory in the system.
> > 
> > It can be used to implement background memory accepting from userspace.
> > It is also useful for debugging.
> > 
> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
> 
> Somewhat similarly to patch 3, I'd think we don't need this patch in
> mainline without clear usecases first, although it's good to post for
> testing/debugging.

I thought about it as a way to implement #3 from 02/14 commit message:
users who want to accept all memory in background can use the mechanism.

But, again, we can leave out until later.

-- 
  Kiryl Shutsemau / Kirill A. Shutemov




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux