I’m having trouble understanding all the benefits of BTRFS and how they’ll apply to me.

Copy on Write and auto-compression seem like they will free up a bit of space.

What other practical benefits will I see from using BTRFS? Are there any noticeable performance benefits?

I use my computer to dual-boot. I don’t need snapshots because I have a custom script for a fresh install. I use my PC for gaming and work. I’ve got an NVMe, two SSD’s and one HDD.

Thanks in advance!

-3 points

Copy on write is likely to introduce significant performance decreases in cases where large or medium size files have a couple bytes changed. It’s usually recommended to turn CoW off on those files; I found it to be more hassle than it’s worth for a root filesystem. It is still a reasonable file system for file storage that looks more like archival - files land there and seldomly or never change. If you don’t have a specific need in mind though, I wouldn’t bother - in my opinion, it’s not great as a general purpose filesystem.

permalink
report
reply
2 points

Thanks for the advice!

How do you define medium or large files? What examples of these exist on root?

permalink
report
parent
reply
24 points

Copy on write is likely to introduce significant performance decreases in cases where large or medium size files have a couple bytes changed. It’s usually recommended to turn CoW off on those files

Do you happen to have a source or benchmark for this? My understanding of CoW is that the size of the file does not matter, as BTRFS works with blocks and not files. When a block is changed, it’s written to a new location. All the old blocks that are not changed are not written again - this wouldn’t even make sense in the context of how BTRFS deduplicates blocks anyway.

So:

  • 10 kB base file

  • modify 1kB of the content

  • == 11kB total “used” space, and 1kB of new written blocks.

that old 1kB that is no longer part of the file will eventually be cleaned up if needed, but there’s no reason to delete it early.

permalink
report
parent
reply
6 points

Why would OpenSuse/Fedora choose it as their default filesystem if it was as bad you describe?

permalink
report
parent
reply
2 points

Yes, a few examples of advantages here: https://lemmy.world/post/3197228

permalink
report
reply
5 points
*
Deleted by creator
permalink
report
reply
4 points

This is hearsay or you didn’t properly configure your snapshots, no way around that.

permalink
report
parent
reply
1 point

I found the “best of both worlds” setup is xfs for root fs and then btrfs for /home.

permalink
report
parent
reply
1 point

Is this arch?

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
3 points

Yeah, I assumed something similar. Arch (may be endeavor also) is very much a la carte build your own system, so coyld be some tweaks needed. I found Leap and Tumbleweed have no issues with btrfs because its integral to the whole distro. My NVME use on desktop and laptop have been going steady for 7 years.

permalink
report
parent
reply
17 points

For me, snapshots are the best part of BTRFS because you can easily roll back bad updates without doing a fresh install. It might not be worth reinstalling for, but there’s no reason not to on your next install.

permalink
report
reply
1 point

I know it’s all in my head, but there’s something about a fresh install that gives me comfort.

I do a fresh install every few months when something starts behaving funky and it’s normally faster than figuring out what’s wrong.

Snapshots just don’t have the same appeal to me lol

permalink
report
parent
reply
8 points
Deleted by creator
permalink
report
parent
reply
2 points

Damn bro, start learning about data recovery. I would be investing all my time into it.

permalink
report
parent
reply
6 points
*

You do a fresh install every couple months? Damn. I’m using the same install from like… 7 years ago? Which was also 3 laptops ago. I just keep copying the install partitions from one laptop drive to the next.

There is definitely something rewarding to figuring out an issue and fixing it, vs starting from scratch every time. Also, you realistically shouldn’t be having serious issues every few months, unless you’re running a rolling distro like arch and there’s issues with packages. I do think a bit of that might be in your head,or you’re experiencing some weird hardware issues/failure.

permalink
report
parent
reply
1 point

Switched hardware on my home server last week and moved to proxmox. My Ubuntu installation that was running before that was installed 2011.

permalink
report
parent
reply
2 points

the main advantage of snapshots is how fast it happen, in two reboots with little to no wait time you can get your system back

permalink
report
parent
reply

[This comment has been deleted by an automated system]

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.5K

    Monthly active users

  • 6.3K

    Posts

  • 175K

    Comments