On Thu, Jan 28, 2021 at 11:52 AM Adam Williamson
<adamwill(a)fedoraproject.org> wrote:
Probably relevant - we log the output of `free` shortly after system
install. Up to and including Fedora-Rawhide-20210124.n.0 , it looked
approximately like this:
total used free shared buff/cache available
Mem: 2024132 189668 1609448 4104 225016 1684936
Swap: 1011708 0 1011708
Particularly, "total" memory was reported as around 2000000 bytes. In
Fedora-Rawhide-20210127.n.1 and Fedora-Rawhide-20210128.n.0, though -
the two most recent composes - it looks like this:
total used free shared buff/cache available
Mem: 1417856 311908 852832 4104 253116 944752
Swap: 1417212 0 1417212
"total" memory is now reported as around 1400000 bytes. Not sure what
caused this to change.
I've seen this in the last few weeks but I haven't figured out the
pattern. A test system with 12G RAM was transiently reporting 8.5G RAM
(using the free command). That is the same fractional difference as
you're reporting above - 70% less total memory. That could be a kernel
bug.
The zram-generator sets the zram device size as a fraction of total
memory, it doesn't have a way to affect total memory.
--
Chris Murphy