From: =?gb18030?B?xP6+srXEzOy/1Q==?= <497692757@qq.com>
To: =?gb18030?B?a2VybmVsbmV3Ymllcw==?= <kernelnewbies@kernelnewbies.org>
Subject: Can Cgroup memory subsystem provide estimated available memory, just like /proc/meminfo: MemAvailable?
Date: Sat, 8 Oct 2022 14:59:56 +0800 [thread overview]
Message-ID: <tencent_2D50F64531CB7B8E845BB3316544413E7B09@qq.com> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: Type: text/plain; charset="gb18030", Size: 603 bytes --]
Hello cgroup experts,
/proc/meminfo: MemAvailable is a very useful mertics, provide estimated available memory, caculated 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
[-- Attachment #1.2: Type: text/html, Size: 885 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
reply other threads:[~2022-10-08 7:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=tencent_2D50F64531CB7B8E845BB3316544413E7B09@qq.com \
--to=497692757@qq.com \
--cc=kernelnewbies@kernelnewbies.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).