-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/cgroup: check cgroup.max/cgroup.high values #107
tests/cgroup: check cgroup.max/cgroup.high values #107
Conversation
77d2844
to
1a7db76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but this seemingly random number got me to scratching my head until I converted 512MiB into bytes ;)
Maybe we should use an expression like
MEM_LIMIT_MIB=512
lxc config set c1 -c limits.memory="${MEM_LIMIT_MIB}MiB"
...
[ "$(lxc exec c1 -- cat /sys/fs/cgroup/memory.max)" = $((MEM_LIMIT_MIB * 1024 * 1024)) ]
...
Update: if you do that ^, we should also replace the hardcoded 524288 kB
we have elsewhere.
1a7db76
to
71a98f0
Compare
Thanks, fixed! |
It is correct, that test is failed:
we need to merge canonical/lxd#13192 |
71a98f0
to
7728d50
Compare
7728d50
to
47fdcc6
Compare
canonical/lxd#13192 Signed-off-by: Alexander Mikhalitsyn <[email protected]>
47fdcc6
to
197b5d3
Compare
canonical/lxd#13192