fix available memory calculation in cgroup2
commit516d51c5659cd0234c9479c99f4e6c203d2204a5
authorBin Liu <binliu@meta.com>
Tue, 15 Nov 2022 17:53:17 +0000 (15 09:53 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 15 Nov 2022 17:53:17 +0000 (15 09:53 -0800)
tree4fa0bce68ca601cd3ef27c7e8dd53c8b40f643c3
parent6f9d9ad3bcbdc93423fe999719550569dcd5b777
fix available memory calculation in cgroup2

Summary: If available memory calculated from container stats is lower, use the lower value.

Reviewed By: ottoni

Differential Revision: D41101605

fbshipit-source-id: 896f9ebac0bd3bcc0c16a7d504a0ec3ba0212aa8
hphp/util/process.cpp
hphp/util/process.h