From: "王欢(云痕)" <huan.wanghuan@alibaba-inc.com>
To: "cgroups" <cgroups@vger.kernel.org>, "tj" <tj@kernel.org>,
"lizefan" <lizefan@huawei.com>, "hannes" <hannes@cmpxchg.org>
Cc: "linux-mm" <linux-mm@kvack.org>
Subject: Can cgroup memory subsystem provide estimated available memory, just like /proc/meminfo: MemAvailable?
Date: Sat, 08 Oct 2022 17:29:59 +0800 [thread overview]
Message-ID: <3881133b-bf5e-4210-8392-5fa646cc2bc8.huan.wanghuan@alibaba-inc.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 649 bytes --]
Hello cgroup experts,
/proc/meminfo: MemAvailable is a very useful mertics that provides estimated available memory, calculated by MemFree, Active(file), Inactive(file), SReclaimable and Watermarks. It is implemented by the si_mem_available() function[1]. Can cgroup memory subsystem provide estimated available memory?
/proc/meminfo:
MemTotal: 63793888 kB
MemFree: 21124704 kB
MemAvailable: 39106088 kB
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773 <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773 >
[-- Attachment #2: Type: text/html, Size: 1709 bytes --]
next reply other threads:[~2022-10-08 9:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-08 9:29 王欢(云痕) [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-10-08 10:38 王欢(云痕)
2022-10-08 9:48 王欢(云痕)
2022-10-08 9:45 王欢(云痕)
2022-10-08 9:09 Can Cgroup " =?gb18030?B?xP6+srXEzOy/1Q==?=
2022-10-07 15:58 =?gb18030?B?xP6+srXEzOy/1Q==?=
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=3881133b-bf5e-4210-8392-5fa646cc2bc8.huan.wanghuan@alibaba-inc.com \
--to=huan.wanghuan@alibaba-inc.com \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=lizefan@huawei.com \
--cc=tj@kernel.org \
/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