-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Using swap for install #450
Comments
For clarity, I immediately get an "Out of memory" error after swap is turned off and my zpools do not get exported. |
Some ideas:
Any thoughts? |
Swap on zpool isn't really supported by upstream ZFS BTW. It's known to have deadlock issues when memory pressure is high, or when certain features like hibernate and suspend are used. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using nixos-anywhere to install NixOS on a machine with 1GB of memory. During the Disko phase the
/nix/store
runs out of space (tmpfs
filesystem running in memory). So I've taken to using a larger (30GB) external disk for swap. And this works, but when it gets to the reboot phase it fails. This is because I'm configuring zpools using Disko, and nixos-anywhere runsswapoff -a
if it detects zpools. I understand this was added because of #420 (@TilCreator is using swap on a zpool) which makes sense... but maybe we can add a flag to disable this behavior. This flag would be useful when you are using swap for the install and not using swap on a zpool.The text was updated successfully, but these errors were encountered: