Code Monkey home page Code Monkey logo

Comments (9)

Misterio77 avatar Misterio77 commented on June 8, 2024 1

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:

  • Snapshots: useful to have lightweight "backups" (for human error situation, that is) for your data
  • Transparent compression: shaves off about 20-30% storage with negligible performance impact
  • Subvolumes: you can have logical volumes within the same physical partition, making it pretty painless to organize stuff into different mountpoints if needed

from nix-config.

omernaveedxyz avatar omernaveedxyz commented on June 8, 2024 1

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.

from nix-config.

threddast avatar threddast commented on June 8, 2024 1

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.

from nix-config.

Nandicre2 avatar Nandicre2 commented on June 8, 2024

(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

from nix-config.

luxus avatar luxus commented on June 8, 2024

would https://github.com/nix-community/disko not help with the "its complicated" part? didn't checked it out yet.

from nix-config.

Nandicre2 avatar Nandicre2 commented on June 8, 2024

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

from nix-config.

Misterio77 avatar Misterio77 commented on June 8, 2024

would https://github.com/nix-community/disko not help with the "its complicated" part? didn't checked it out yet.

Disko is pretty cool. Moving my setup to it is definitively on my todo-list.

from nix-config.

NerdHusky avatar NerdHusky commented on June 8, 2024

(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

Nice post! Wish I'd found it sooner!
No really, I went with btrfs because it's really cool, I could make a raid with it without LVM it has compression (really 0 performance decrease with raid0) and...COW! ;)
Plus yeah some snapshotting for backup purposes do no harm I guess! ;) not to /nix of course, but /home and maybe /persist (especially when I'll wipe out even home at boot - the original post doesn't but I'll go for it once my home-manager configuration is really solid).

from nix-config.

NerdHusky avatar NerdHusky commented on June 8, 2024

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.

That I didn't know and if it's true it really sucks because I'm already using zram xD.

from nix-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.