[systemd-devel] Fwd: System fails to create zram on startup, but I can do so manually
Michal Koutný
mkoutny at suse.com
Thu Nov 7 18:35:43 UTC 2024
Hello Torstein.
On Tue, Nov 05, 2024 at 03:51:31PM GMT, Torstein Sørnes <t.soernes at gmail.com> wrote:
> I have a Fedora 41 laptop with 32GB of ram.
>
> On startup, this shows in the journal:
> ```
> nov. 05 13:58:32 D2S3Q34 zram-generator[1059]: Error: Failed to configure
> disk size into /sys/block/zram0/disksize
> nov. 05 13:58:32 D2S3Q34 zram-generator[1059]: Caused by:
> nov. 05 13:58:32 D2S3Q34 zram-generator[1059]: Cannot allocate memory
> (os error 12)
> nov. 05 13:58:32 D2S3Q34 kernel: zram-generator: vmalloc error: size
> 131072000000000, exceeds total pages, mode:0xdc0(GFP_KERNEL|__GFP_ZERO),
^^^^^^^^^^^^^^^
This value looks suspicious.
> After starting up, I can execute this series of commands, and successfully
> create a 32GB swap:
> ```
> sudo swapoff /dev/zram0
> sudo zramctl --reset /dev/zram0
> sudo zramctl --find --size 32G
Notice zramctl operation may differ from zram-generator,
perhaps try with:
/usr/lib/systemd/system-generators/zram-generator --setup-device /dev/zram0
and what is in your zram-generator.conf?
Thanks,
Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241107/a2bb4490/attachment.sig>
More information about the systemd-devel
mailing list