I recently just installed Manjaro on my PC. I set it up with BTRFS because I knew it has SSD and TRIM. Does ext4 have that stuff also? Should I reinstall since I don’t have much setup on it yet?
It’s on a Intel 520 128GB SSD.
I7 3770k
16GB ddr3 1866mhz
GTX 1070
There’s no reason to run BTRFS in my view. If you want the features it offers that supposedly make it better than say ext4 to actually work, you want to run ZFS instead.
btrfs is always going to be slow in write heavy workloads due to being a COW filesystem. If you need the extra speed in that specific workload why not just disable the COW features using chattrib. A even better setup would be running / on btrfs and /home on another filesystem that way you can have the best of both worlds. I think SUSE does this by default and I really like how that’s setup.
Maybe butter f s is a bit slow to right to (on spinning media) but the only real problem is the write hole.
Don’t throw the COW out with the bath water, it’s one of the key features of the system.
By all means disable it for a system that will be read only, if you do regular checks, and can replace the broken/corrupt bits as they become apparent…
Netapp filers for example are copy-on-write (WAFL). ZFS is COW.
COW doesn’t mean it copies a block to write, it just means the new write goes to another part of the disk. COW is by no means inherently slow - and if you’re doing things like parity RAID, COW will actually speed things up as it avoids the read-modify-write cycle to update in place (and also avoids the write hole problem).
Oracle basically bought SUN for ZFS, so the whole “disable COW on databases” for BTRFS is just an example of BTRFS being broken, not COW.
Some people will argue with you, but they’re wrong - out of the currently available options this is indeed the case. ZFS has some trivial (in today’s landscape) overheads on top of regular RAID, but it actually returns the same data you put into it - reliably. Which is kinda the point …
This is a shame but not entirely surprising to be honest. This is why my long term storage box is FreeNAS… and on Linux i run the gauntlet with Ext4. Anything important though is on the FreeNAS box.
Yes and BTRFS could be everything i want from a FS but nothing is up to par, I was looking at the github becose im getting getting two nvme drives in a week+.
I might just do ext4 or looking into xfs but i was hoping for snapshots of running sql dockers.