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
zswap: loading modules to late #44901
Comments
Yes, if you set But as you've found out, you can set both of those in |
@dezgeg This seems to work on other distros (ubuntu,arch). That's why i believe our boot-up has some ordering issue that will pop up every now and then. i could just override my kernel config, if I was sure that (early) loading of kernel modules works exactly the same as everywhere else. Maybe i'll install arch next to nixos, to test this myself. |
Huh. I guess what can happen then is the kernel can request module loading even before the initrd init script is running. And the probable reason why that doesn't work in NixOS is the initrd doesn't contain a |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Still important to me. It's easy enough to work around but it would be nice if it wasn't an issue at all. |
@lunik1 the way forward would be a PR to either:
I've set up a kernel override for all of my machines and since i'm recompiling a few custom packages it doesn't really add a lot of overhead for me. i have no time to investigate this, but |
Were you able to figure what specifically about NixOS causes this problem as arch and ubuntu don't have the issue? |
i think they had these modules built in. setting this up in userspace after loading the os is the sane way of doing it for now. we should join the |
Looks like |
I marked this as stale due to inactivity. → More info |
how to workaround this? |
Here what I have: https://github.com/kurnevsky/nixfiles/blob/master/modules/zswap.nix |
Basically the same thing but using |
It works. Thanks for the wonderful examples. |
@lunik1 is there a reason to apply it via |
Not really. It will activate earlier, but I doubt it will make any practical difference under realistic circumstances. |
Issue description
At least these missing in the early steps of the boot process:
This is the same issue as #18533. There is of course the easy solution of compiling those modules into the kernel, but other distributions seem to be able to do this with modules - so what are we doing different in our early startup scripts? Is it just a problem with zswap, or are there other modules (fs, md/dm, ...) affected?
I'll look into this later, but im happy about any leads people give me.
Steps to reproduce
Technical details
The text was updated successfully, but these errors were encountered: