a CGroup issue: a weird value in memory.memsw.limit_in_bytes

From: Toralf FÃrster
Date: Mon Jun 01 2020 - 04:04:25 EST


I do wonder about this value:

# grep ^9 /sys/fs/cgroup/memory/*/*/memory.memsw.limit_in_bytes
/sys/fs/cgroup/memory/tinderbox/17.1_developer-20200531-193248/memory.memsw.limit_in_bytes:9223372036854771712
/sys/fs/cgroup/memory/tinderbox/17.1_developer-libressl-20200531-194547/memory.memsw.limit_in_bytes:9223372036854771712
/sys/fs/cgroup/memory/tinderbox/17.1_hardened-20200531-195425/memory.memsw.limit_in_bytes:9223372036854771712

which are about 2^12 below 2^63 :

# echo "2^63 - 9223372036854771712" | bc
4096

b/c I do write much smaller values into it:

https://github.com/toralf/tinderbox/blob/75fcbe43f58dadfab94fdd67aef1f681bb74f451/bin/bwrap.sh#L34

This happens not always, just realized it yesterday at few files.
--
Toralf