mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-14 22:03:24 +01:00
nixos-installer swapfile #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bananabr34d on GitHub (Jan 10, 2024).
Hi Ryan,
I've really enjoyed your book and reading your thorough notes in the config files. When reviewing your nixos-installer I noticed that you are creating a 96g swapfile. This seemed excessive to me and I was wondering what the rationale is. I know you are using impermanence and loading into tmpfs, so perhaps its due to system compiling downloads?
Also, sorry if this question isn't appropriate for github issues. Feel free to close and delete if you don't want to answer.
@ryan4yin commented on GitHub (Jan 10, 2024):
NixOS uses /tmp for compilation, and I have mount a btrfs subvolume to it, so it is sufficient.
This 96G swapfile is used for loading some big LLM models. Some LLM models are often 30G ~ 80G in size, and I don't have enough memory.
It's true that such a big swapfile is not common.
@bananabr34d commented on GitHub (Jan 10, 2024):
Thanks for the feedback and again, thanks so much for your NixOS book and this repository. You have greatly helped me on my Nix journey.