From: "王欢(云痕)" <huan.wanghuan@alibaba-inc.com>
To: "cgroups" <cgroups@vger.kernel.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 18:38:05 +0800 [thread overview]
Message-ID: <e9c98d52-9291-48b8-8a11-b44abfcee62c.huan.wanghuan@alibaba-inc.com> (raw)
Hello experts,
/proc/meminfo: MemAvailable is a very useful mertics that provides estimated available memory. It is implemented by the si_mem_available() function[1] and calculated by MemFree, Active(file), Inactive(file), SReclaimable and Watermarks. 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
next reply other threads:[~2022-10-08 10:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-08 10:38 王欢(云痕) [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-10-08 9:48 王欢(云痕)
2022-10-08 9:45 王欢(云痕)
2022-10-08 9:29 王欢(云痕)
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=e9c98d52-9291-48b8-8a11-b44abfcee62c.huan.wanghuan@alibaba-inc.com \
--to=huan.wanghuan@alibaba-inc.com \
--cc=cgroups@vger.kernel.org \
--cc=linux-mm@kvack.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