From: "Huang, Ying" <ying.huang@intel.com>
To: Jianlin Lv <iecedge@gmail.com>
Cc: tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org,
corbet@lwn.net, mhocko@kernel.org, roman.gushchin@linux.dev,
shakeelb@google.com, muchun.song@linux.dev,
akpm@linux-foundation.org, yosryahmed@google.com,
willy@infradead.org, linmiaohe@huawei.com,
wangkefeng.wang@huawei.com, laoar.shao@gmail.com,
yuzhao@google.com, wuyun.abel@bytedance.com, david@redhat.com,
peterx@redhat.com, vishal.moola@gmail.com, hughd@google.com,
cgroups@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
jianlv@ebay.com
Subject: Re: [PATCH] memcg: add interface to force disable swap
Date: Sun, 08 Oct 2023 09:14:54 +0800 [thread overview]
Message-ID: <87mswtkj8x.fsf@yhuang6-desk2.ccr.corp.intel.com> (raw)
In-Reply-To: <20231007130905.78554-1-jianlv@ebay.com> (Jianlin Lv's message of "Sat, 7 Oct 2023 21:09:05 +0800")
Jianlin Lv <iecedge@gmail.com> writes:
> From: Jianlin Lv <iecedge@gmail.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
next prev parent reply other threads:[~2023-10-08 1:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-07 13:09 Jianlin Lv
2023-10-08 1:14 ` Huang, Ying [this message]
2023-10-08 7:52 ` Jianlin Lv
2023-10-08 8:24 ` Huang, Ying
2023-10-08 9:34 ` Jianlin Lv
2023-10-09 5:58 ` Huang, Ying
2023-10-09 7:34 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mswtkj8x.fsf@yhuang6-desk2.ccr.corp.intel.com \
--to=ying.huang@intel.com \
--cc=akpm@linux-foundation.org \
--cc=cgroups@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=hughd@google.com \
--cc=iecedge@gmail.com \
--cc=jianlv@ebay.com \
--cc=laoar.shao@gmail.com \
--cc=linmiaohe@huawei.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lizefan.x@bytedance.com \
--cc=mhocko@kernel.org \
--cc=muchun.song@linux.dev \
--cc=peterx@redhat.com \
--cc=roman.gushchin@linux.dev \
--cc=shakeelb@google.com \
--cc=tj@kernel.org \
--cc=vishal.moola@gmail.com \
--cc=wangkefeng.wang@huawei.com \
--cc=willy@infradead.org \
--cc=wuyun.abel@bytedance.com \
--cc=yosryahmed@google.com \
--cc=yuzhao@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox