Re: Fwd: System fails to create zram on startup, but I can do so manually

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Torstein.

On Tue, Nov 05, 2024 at 03:51:31PM GMT, Torstein Sørnes <t.soernes@xxxxxxxxx> 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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux