lkml.org 
[lkml]   [2011]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH -v2 -mm] add extra free kbytes tunable
On 10/13/2011 01:35 AM, KAMEZAWA Hiroyuki wrote:
>
> I don't read full story but....how about adding a new syscall like
>
> ==
> sys_mem_shrink(int nid, int nr_scan_pages, int flags)
>
> This system call scans LRU of specified nodes and free pages on LRU.
> This scan nr_scan_pages in LRU and returns the number of successfully
> freed pages.
> ==
>
> Then, running this progam in SCHED_IDLE, a user can make free pages while
> the system is idle. If running in the highest priority, a user can keep
> free pages as he want. If a user run this under a memcg, user can free
> pages in a memcg.

This is interesting. We can make userspace kswapd as we like with
this syscall. But it seems harder to be accepted...

Regards,
Satoru

\
 
 \ /
  Last update: 2011-10-14 07:35    [W:2.123 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site