ganeti is losing ram?
the new shadow runner was created with 300G of memory (was that GiB or GB?), yet inside it says 295GiB are available:
root@ci-runner-x86-05:~# top -n 1 | grep MiB\ Mem; free -h | grep ^Mem
MiB Mem : 302104.9 total, 300003.9 free, 290.4 used, 1810.6 buff/cache
Mem: 295Gi 290Mi 292Gi 0.0Ki 1.8Gi 292Gi
Those are clearly marked 295 Gibyte, which is 295 * 2^30 bytes. Yet on the parent host, we see this:
root@chi-node-04:~# cat /proc/139683/stat | cut -d ' ' -f 23
329177686016
... that is field 23 of the stat
file in procfs, which according to Table 1-4 in this documentation is the vsize
fields, which seems to be in bytes. it would amount to 306GiB or 317GB.
I have so many questions...
- why is the vsize 306GiB and not 300GiB?
- why doesn't it match the available memory inside the VM?
I never noticed until now because the differences were insignificant, but 5GiB (or is it 10GiB?) seems like a lot of memory to just lose on your way to school...