this post was submitted on 19 Oct 2023
40 points (97.6% liked)
Linux
48247 readers
675 users here now
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
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have a WD black SN770 in my main desktop and it works no issues. I even have btrfs on it, and some people suggested that btrfs would have some issues with nvmes, but here I am over a year later with zero issues. Speed on these things is out of this world.
That's good news, but what if this affects wear leveling? Or efficiency in some other way, that would result in these dying sooner than expected (still years probably, but.. yeah)
I make back ups. If this dies, I'll get another one. They became very cheap lately. 1TB is like $55
Others may still be interested in longevity. Like me. $55 is, while not expensive, not cheap either for me, or at least not in the way that I would be comfortable replacing it every 1-2 years. I'm not swimming in money at that amount has a better place than a recurring spending. I doubt I am in a minority with this.
It's good to know what the quirks mean, and if it means any longevity problem, because if the above turns out as a problem, it may be cheaper in the long term to buy a better drive.
I ain't rich either. I just don't think the drive will die in a year or two. I've had mine for over a year now and it's still solid. It might die earlier if you keep distro-hopping with all that erasing and writing you put on it. I'm pretty sure it'll last a very long time. I also have a laptop from 2018 and it still has the same nvme drive running solid. I remember checking its life with some command in the terminal (don't remember what it is) and it was at 57%.
What were the reported problems of BTRFS on an NVME? There are actually a few upsides to BTRFS on flash: if you enable compression there will be less writing to the flash, and reflinking capabilities means that copy-pastes to the same partition won't cause extra writes.
I've heard about freezing. Screens going black and so on. Never had any of those issues
That's nonsense and couldn't be affected by BTRFS short of something catastrophic happening (probably in the kernel).
The main downside for NVME that I'd be aware of is that BTRFS is a lot slower to write lots of tiny files than something like XFS (which is generally the fastest filesystem available). I'd guess this is due to BTRFS's metadata overhead, which includes writing two copies of metadata for redundancy. I have a very fast gen 4 NVME and I can get ~2GBPS tiny file write speed with XFS and ~300MBPS tiny file write speed with BTRFS. IMO this is negligible though, because tiny files are inherently tiny - 300MB of tiny files is a lot of files for 1 second of effort. Also, usually read speed is more important than write speed for day-to-day tasks. Large file writes and large/small file reads are roughly the same though, with any small advantages going towards XFS.
BTRFS will never be faster than something like XFS because it has way more features - with how fast NVMEs are I personally think it's worth trading some of that ludicrous speed for features like data checksumming, compression, and snapshots. On the flip side, BTRFS is a very good idea to run on slow HDDs because its transparent compression will actually increase the drive's speed, as the act of compressing/decompressing is way faster than the act of reading physical data from rust.
I agree on the "nonsense" part, as I've had none of those issues for over a year using this drive. Shit has been amazing. Also, I appreciated the lecture. I didn't know any of what you said, so thank you. I did try xfs myself, but for my use case, I didn't see any difference at all. Like nothing. I'm just a casual user who gets into the terminal some times, but that's about it. So, btrfs works wonders for me with those sweet snapshots. Don't know if xfs has snapshots, too, but I'm familiar with btrfs and timeshift, so I stuck with it.
XFS doesn't support snapshots, but it does support reflinking like BTRFS. Reflinks allow data to be shared fully or partially between two files, which means that technically with a lot of elbow grease you could probably write a snapshotting system for XFS built on reflinks. There's actually a "filesystem" named Stratis that takes vanilla XFS and layers a ton of modern features from e.g. BTRFS/ZFS onto it. Unfortunately it's not as fast as XFS because of these features so it's not a silver bullet yet.
tl;dr, BTRFS's features are useful for most users, and I wouldn't worry about filesystem speed unless you've got a very specific usecase like a database.
Nice. Thank you. I've learned a ton from just a couple of comments. Much appreciated