当前 Android 源代码中是否未使用“/proc/{pid}/reclaim”?

Does "/proc/{pid}/reclaim" not used in current Android source code?

Linux 内核具有通过将 1/2/3 写入 /proc/{pid}/reclaimhttps://lwn.net/Articles/548431/ 来回收进程内存的功能。但是当我检查当前 Android 源代码时,它不存在。所以我想知道这样的功能是否已弃用或移动?

最后我想我从提交消息中找到了原因:

https://android-review.googlesource.com/c/platform/frameworks/base/+/1730078

Edgar Arriaga  Edgar Arriaga, a year ago   (August 13th, 2020 4:03am) 

Migrate to use process_madvise syscall instead of procfs interface for memory compaction

Currently the system uses procfs and we are migrating to use a syscall called process_madvise
which makes the code upstreamable and will allow for making compaction widely available for multiple
android devices.

It also opens room for future developments that involve a finer grain VMA compressions
than the current procfs allows.