-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zram_generator::setup[…]: Warning: algorithm "…" supplemental data "…" not written: Invalid argument (os error 22) #215
Comments
You should be seeing
and then something related to the global config... which we aren't writing anywhere... for some reason (that reason being i forgor 💀 in a refactor). You should be able to inspect the configuration by reading back those files. And the warnings are coming from (probably!) the recompress parameter config. (You can verify this with running Can you try #216? That should at least log correctly. |
Fwiw
I'll figure out how to try your PR out when I get home. Cheers! |
There's a bit of a progress, modified
|
Okay so that's good that's fixed. As for the errors themselves... the documentation was misleading? seemingly? and yeah that doesn't work, and could never work. the original submitter signed off on it, but clearly didn't actually test it, so you're the tester unfortunately sorry conferring with the drivers/block/zram/zram_drv.c implementation, i've hopefully fixed this? (all the parameters need to go to .../algorithm_params, priority= is always valid). please try updated PR? |
Running |
Ugh, I just realized I have slightly different configs at home and at work: I didn't have
|
Yeah, that's probably correct. The documentation implies there's actual, persistent settable parameters, but this is not true, and |
Right. I've fiddled with it for a bit and also came to the conclusion that this feature is rather manual (or cronable). I also ran |
This is a consistent through-line of the kernel side of the zram experience, yeah. |
My
/etc/systemd/zram-generator.conf
is as follows:When restarting
dev-zram0.swap
or rebooting the machine, the following lines appear in the journal:Am I “holding it wrong”, lack some kernel modules, or something else? I'm also not sure how to check/verify if the zram recompress machinery works as expected.
Arch Linux, kernel 6.12.4-zen1-1-zen
The text was updated successfully, but these errors were encountered: