-
Notifications
You must be signed in to change notification settings - Fork 55
QUESTION : Why use a btrfs blank snapshot instead of tmpfs ? #11
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 s 8000 end you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello! I'm actually considering moving back to ext4+tmpfs, because of simplicity mostly. Btrfs does have a couple of goodies that might make it worth using:
|
(sorry for the open and close, was answering from my phone) I'm actually considering using both : tmpfs as root and everything else on btrfs. I found this blog post and I think I'll go this way |
would https://github.com/nix-community/disko not help with the "its complicated" part? didn't checked it out yet. |
Didn't checked it out either. I've seen it mentioned on the forum but i don't want to mess with it now. Maybe later |
Disko is pretty cool. Moving my setup to it is definitively on my todo-list. |
My issue with tmpfs is that you have to specify a size for the tmpfs root or be limited based on your RAM. Tmpfs defaults to half your system RAM (I believe). Some guides set tmpfs to 2GiB (example), but that means that you can only have up to 2GiB of files on root outside of the files you have persisted on a separate partition. Btrfs' logical volumes avoid this by having automatically resizing subvolumes so I never have to think about the size of individual subvolumes. |
Nice post! Wish I'd found it sooner! |
That I didn't know and if it's true it really sucks because I'm already using zram xD. |
I have been using tmpfs for a while, and to be honest it has its quirks, see for example nix-community/impermanence#124 . This issue is not present when root is on btrfs. |
How's the situation with tmpfs recently? Looking into impermanence, but ZFS/Btrfs is too much for me. |
Just asking, because i tought that snapshoting was bad for the SSD longetivity.
The text was updated successfully, but these errors were encountered: