lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87mswtkj8x.fsf@yhuang6-desk2.ccr.corp.intel.com>
Date:   Sun, 08 Oct 2023 09:14:54 +0800
From:   "Huang, Ying" <ying.huang@...el.com>
To:     Jianlin Lv <iecedge@...il.com>
Cc:     tj@...nel.org, lizefan.x@...edance.com, hannes@...xchg.org,
        corbet@....net, mhocko@...nel.org, roman.gushchin@...ux.dev,
        shakeelb@...gle.com, muchun.song@...ux.dev,
        akpm@...ux-foundation.org, yosryahmed@...gle.com,
        willy@...radead.org, linmiaohe@...wei.com,
        wangkefeng.wang@...wei.com, laoar.shao@...il.com,
        yuzhao@...gle.com, wuyun.abel@...edance.com, david@...hat.com,
        peterx@...hat.com, vishal.moola@...il.com, hughd@...gle.com,
        cgroups@...r.kernel.org, linux-doc@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-mm@...ck.org, jianlv@...y.com
Subject: Re: [PATCH] memcg: add interface to force disable swap

Jianlin Lv <iecedge@...il.com> writes:

> From: Jianlin Lv <iecedge@...il.com>
>
> Global reclaim will swap even if swappiness is set to 0.

Why?  Can you elaborate the situation?

> In particular
> case, users wish to be able to completely disable swap for specific
> processes. One scenario is that if JVM memory pages falls into swap,
> the performance will noticeably reduce and the GC pauses tend to increase
> to levels not tolerable by most applications.
> If it's possible to only disable swap out for specific processes, it can
> address the JVM GC pauses issues, and at the same time, memory reclaim
> pressure is also manageable.
>
> This patch adds "memory.swap_force_disable" control file to support disable
> swap for non-root cgroup. When process is associated with a cgroup,
> 'echo 1 > memory.swap_force_disable' will forbid anon pages be swapped out.
> This patch also adds read and write handler of the control file.

--
Best Regards,
Huang, Ying

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ