]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-util.c
util: when determining the amount of memory on this system, take cgroup limit into...
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Jun 2016 16:56:20 +0000 (18:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 14 Jun 2016 17:50:38 +0000 (19:50 +0200)
commitd9ab2bcf0591b496f1a4750c7ff790b33f9c7e59
treebf6ba42e885a9cd8e6baa55a8629f6bb28678eae
parent1d7100298c2a696d99f6fbd6ab858762aeb51ac7
util: when determining the amount of memory on this system, take cgroup limit into account

When determining the amount of RAM in the system, let's make sure we also read
the root-level cgroup memory limit into account. This isn't particularly useful
on the host, but in containers it makes sure that whatever memory the container
got assigned is actually used for RAM size calculations.
src/basic/util.c
src/test/test-util.c