lkml.org 
[lkml]   [2020]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] memcg: Add swappiness to cgroup2
From
Date


> 在 2020年1月1日,07:16,Andrew Morton <akpm@linux-foundation.org> 写道:
>
> On Wed, 25 Dec 2019 13:36:48 +0800 Hui Zhu <teawater@gmail.com> wrote:
>
>> Even if cgroup2 has swap.max, swappiness is still a very useful config.
>> This commit add swappiness to cgroup2.
>>
>> ...
>>
>> --- a/mm/memcontrol.c
>> +++ b/mm/memcontrol.c
>> @@ -7143,6 +7143,11 @@ static struct cftype swap_files[] = {
>> .file_offset = offsetof(struct mem_cgroup, swap_events_file),
>> .seq_show = swap_events_show,
>> },
>> + {
>> + .name = "swappiness",
>> + .read_u64 = mem_cgroup_swappiness_read,
>> + .write_u64 = mem_cgroup_swappiness_write,
>> + },
>> { } /* terminate */
>> };
>
> There should be a Documentation/ update with this?
>

Hi Andrew,

I will post a new version with Documentation/ update.

Thanks,
Hui

>
>



\
 
 \ /
  Last update: 2020-01-02 02:45    [W:0.142 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site