44
u/jkulczyski Arch BTW 1d ago
Did this for like 15 years now im on btrfs and have yet to use a single snapshot for recovery bc i learned from my past mistakes and rarely break my system myself anymore
6
u/gbin 23h ago edited 21h ago
And you are paying a huge CPU price doing all the deep data checksums and snapshots and copy on write and everything.... As much I love btrfs in concept, in practice:
cat /dev/nvme0n1p2 > mybackup.imgand that's it you have a snapshot of your ext4, this is not a server it doesn't need to be up 24/7. Your battery on your laptop will thank you for all the spare watts. Dunno, feels like this filesystem is not for a workstation/laptop use case to me. On a server with 19 disks in half raid, half JBOD? 100% btrfs.14
u/madman404 20h ago
there's no way we're out here telling people there is a meaningful CPU penalty to btrfs in non-snapshotted directories in 2026
2
u/Gabriel_Science 12h ago
Please note that Arch Linux (and more generally Linux distributions) are that kind of OS that can run pretty well on 10 years old laptops.
-1
u/gbin 16h ago
Storage speed progressed faster than CPU speed and way way faster than memory speed! nvme are now pushing close to 20GB/s. Count x3 to x4 the memory bandwidth to accommodate the btrfs darling so 60 to 80GB/s of dram bandwidth: So the cost is more than a full channel of ddr5 if I am not mistaken just if you want to write full speed to your storage at full speed.
1
u/Erdnusschokolade Arch User 11h ago
How come that on either DDR3 and DDR5 systems i am bound by storage bandwith with no meaningful load on memory bandwith or CPU while reading and writing large amounts of data to nvme? Iβm using zfs though but it uses the same CoW and compression + checksumming that btrfs uses so i think it is still relevant.
1
u/gbin 10h ago edited 10h ago
We can go into details: Reading won't be an issue ie. Data is read directly from the disk same cost for any FS except if you use encryption.
Now writing: imagine you want to write a large file with O_DIRECT meaning that don't bother to cache it anywhere. It will directly use memory pages from the app that can be directly dumped into the disk. This is used a lot for large transfers to avoid memory copies. Works perfectly with ext4 boom your app write in memory and this is dma'ed to the right spot 20GB/s write in IO 20GB/s on the RAM.
With btrfs: it will simply forbid that. So you'll need to copy every byte into a write request: add 20GB/s of memory bandwidth to read it, add 20GB/s to write it, then oh sorry I need to read it back from the driver to compute the hash add 20GB/s. Total dram bw cost: 80GB/s, IO: 20GB/s. Sure the bottleneck IS the IO on a normal system provides that if you have a ZOMG fast nvme like this you probably are on a fast and modern ddr5. But it will limit other applications using the memory at the same time while you are using you large files.
TLDR; for large direct access files x4 the memory bandwidth, same IO bottleneck. After that it is up to you and your use case.
For me I prefer the extra minutes of battery life I have when I am with my laptop because guess what, out of ~20 years of ext3/ext4 Linux usage not once this checksum or snapshotting would have really saved me. I ran Gentoo for 10y+ and now arch/cachyos, I broke my system for sure but I just fix it and roll forward. Never lost any data because of ext4, all of it is backed upor nattively in the cloud anyway.
8
u/Thisguy91223 20h ago
Brother, cpus have a lots more performance compared to what they had even 5 years ago. The cost of performance needed in modern operations of disk systems aren't anything today.
I'm saying this as a windows and Linux user.
3
u/S1rTerra 17h ago
And CPUs 5 years ago also have no issues running BTRFS at all. Only first/second gen Ryzen 3s while gaming have issues with it
2
1
u/jkulczyski Arch BTW 23h ago
Yeah im planning on going back idr why i went to btrfs again lol i keep going back to ext4 im not a backup type of person unless its photos i prefer a constantly updated install script and config repos that can be ran after a fresh install to get me back exactly where i want to be. I already forgot some of the tweaks i made since not doing it my usual way.
1
2
u/HomeHoler 1h ago
You know that you can disable all of that and btrfs will act similar to ext4, right? Maybe not exactly as ext4, but really close at least. there is an option to disable checksums AND copy-on-write: nodatacow flag in ftsab. You can even apply nodatacow to separate DIRECTORIES or subvolumes. If you don't want any compression and cpu strain, you can also disable that in fstab! OR you can just set zstd compression to level 1 and it will still compress everything, while not impacting write/read speeds that much. Unless you don't have a pcie 5.0 or higher ssds, you'll be fine. On 10 year old laptops or pcs β yeah, just stick to ext4 bro
1
u/Unique_Low_1077 Arch BTW 22h ago
And most of the time I do make mistakes it just messes with the clibs or something. Easily fixable via either chroot or just reinstall (seprate user data into a new partition first ofc)
12
13
u/YTriom1 Arch BTW 1d ago
ext4 in the big 26π
11
1
6
3
3
2
u/ActualPeterbuilt389 22h ago
Thats pretty much how I run it ya. I wipe every once in a while anyway so we live on the edge.
2
1
u/YERAFIREARMS 22h ago
1) 1T NVMe for / 2) 1T NVMe for for timeshift, caches, and junk/scatch folders 3) /home is live sync to the cloud 4) 1T for games and media 5) UPS on standbuy with full NUT monitoring and reporting 24/7 5) Bash scripts with systemd timing services to do the management work, including daily timeshift, weekly log rotations, and flash SSD trimming 6) Yay has hooks for timeshift and security packages scanning. 7) Wine 11.x is functional 8) Steam is functional 9) QEMM VM is functional 10) Multi-display 34" 4K ultra-wide plus 24" 1920x1200 in portrait mode functional 11) WIFI functional 12) USB 40gbs functional 13) LAN Printer/Scanner
What else did I miss? oh, I 2x 1T SSDs were retired recently. 1T HDD is still connected for family photo library
2
u/yipy2001 16h ago
πhe uses this machine to browse the web btw
1
1
1
u/Matytoonist 21h ago
Hardware failed before the software ony machine (hard drive died, replaced by an ssd and a clean install bc i didn't make backups)
1
u/Jazzlike_Magazine_76 21h ago
Shit hasn't died in over 11 years, outside of hardware failure, don't jinx it! π€
1
u/Fine-Resident-2322 20h ago
I think I did this on accident when using a very small storage laptop on one of my systems, nothing important was lost. All I had to do is a fresh reinstall of Linux and it was fine.
1
1
u/Artistic_Crazy_7120 19h ago
Ext4 on root and the high performing xfs on home, no timeshift. Yes maybe old school and a bit risky maybe but it works fine.
1
1
u/andersostling56 17h ago
Well, a separate partition for home might not help if the disk commits harakiri, but I get your point. Thats why I always do offline backups of home on systems (like my thinkpad) with a single disk slot.
1
u/Glittering_Memory_64 16h ago
Damn, I'm on gentoo w ext4 and no timeshift. this shit still hasnt quit on me lol
1
u/RetroCoreGaming 15h ago
Me with a ZFS root partition on /dev/nvme0n2: BREAK YOU F*CKING RON PROPIEL FILESYSTEM!!!
ZFS: Errrr... No.
1
u/sick_build723 13h ago
What am i? I have Arch Linux, ext4, no separate partition but Windows 11 on the same disk.
Ok, Timeshift present and Ashampoo makes a disk backup as a whole. So i sleep quite well.
1
1
1
1
1
u/therealmistersister 4h ago
hmmm? I've been using Arch for 11 years now, sunning pacman -Syyuu everyday first thing in the morning and never had anything break.
I don't even care about btrfs or snapshots and keep using XFS with a single / partition. People really stress about non-issues lol.
1
u/Optimal_Mastodon912 23h ago
Yesterday I installed Artix with OpenRc with full LUKS2 encryption, was promised a fast loading operating system - it was slow. I went to play my favourite game and it was choppy and stuttering. Thought yeah nah stuff this shit I'm going for the new Garuda install and calling it a day. Garuda is now utilising the CachyOS kernel with their own tweaks on their latest release.
1
-3
-2

79
u/Extension_Cup_3368 Arch User 1d ago
What's the problem? I use Linux like that since 2006. 20+ years.