this post was submitted on 18 Jul 2024
141 points (100.0% liked)

Linux

48389 readers
1007 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

Related Communities

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

founded 5 years ago
MODERATORS
 

Ted Ts'o sent out the EXT4 updates today for Linux 6.11. He explained in that pull request:

"Many cleanups and bug fixes in ext4, especially for the fast commit feature. Also some performance improvements; in particular, improving IOPS and throughput on fast devices running Async Direct I/O by up to 20% by optimizing jbd2_transaction_committed()."

top 50 comments
sorted by: hot top controversial new old
[–] GolfNovemberUniform@lemmy.ml 29 points 4 months ago (3 children)

Wow my favorite FS is still being developed. Nice

[–] thingsiplay@beehaw.org 17 points 4 months ago (1 children)

Mine too. I could not bring myself to adopt a new or different FS at the moment. I wonder what "fast devices" and "slow" in this context means.

[–] entropicdrift@lemmy.sdf.org 6 points 4 months ago (1 children)

NVME SSDs vs HDDs, perhaps?

[–] thingsiplay@beehaw.org 1 points 4 months ago

Might be. It's just guess work. My guess was maybe NVME SSD vs SATA SSD. Or maybe they refer to the CPU+RAM too.

[–] boredsquirrel@slrpnk.net 10 points 4 months ago (15 children)

Fedora people would say that BTRFS is better because it allows maintenance that EXT4 doesnt even have :)

[–] thingsiplay@beehaw.org 7 points 4 months ago (2 children)

I really like the idea of BTRFS and what it can do. For my recent system, build in end of 2023 (not a year ago) I really thought about and compared the systems, but end up using EXT4. Here some thoughts I had:

I want to use BTRFS as my main system FS, but I wasn't sure which alternative FS to use (there are other contenders too), if I need the extra functionality, if its 100% stable for me on a non Fedora system and I also did not want to spent the time learning and experimenting with it, yet. But I will. And if other distributions I install or boot into would work well with BTRFS, if they are not on the newest Kernel yet.

[–] narc0tic_bird@lemm.ee 14 points 4 months ago (3 children)

I'm not quite sure why people are still worried about the stability of btrfs when it has been rock solid for years. Synology has been using it for quite a while now in their NAS systems, they surely wouldn't if it'd mean a lot of customers were at risk of losing their data.

There are valid reasons not to be using btrfs (although I'd argue most ordinary use cases don't have a valid reason), but stability certainly isn't one of them, independent of the distribution used (unless it's ancient).

[–] ArchAengelus@lemmy.dbzer0.com 3 points 4 months ago

Wait til your table with all the checksums gets messed up on an “older” btrfs install. Happened to me on a VM because I didn’t know copy-on-write should be disabled for large frequently partially updated files. It also slowed that VMs IO down a lot.

Like most file systems, BTRFS is great if you know the edge cases. I recently moved to ZFS on my new work system, which has been a great change in terms of in-line snapshots and the like.

If EXT4 meets your needs, that’s awesome. If you understand how to use a different FS well or are willing to learn (and risk), I would also encourage other options as well.

[–] thingsiplay@beehaw.org 2 points 4 months ago

Note my research of BTRFS is almost a year old now. And there was still a few headlines making round of problems with BTRFS in some cases. A controlled NAS system is not the same as random user configuration of a random desktop user. And as said in my comment, I was not sure if it would be stable for my installation (when I did my research) and did not claim it to be unstable. On the other side, I know for a fact that EXT4 is stable and I did not research more or experiment to find out which one is better for me.

Current state of BTRFS: https://btrfs.readthedocs.io/en/latest/Status.html (note when I did my research, Linux was at Kernel v6.4, therefore BTRFS was in a worse situation than today)

[–] leopold@lemmy.kde.social 2 points 4 months ago* (last edited 4 months ago)

Because of widespread fearmongering, itself caused by the filesystem taking too long to become stable and garnering a bad reputation as a result which it has never shaken off.

[–] drwho@beehaw.org 4 points 4 months ago (1 children)

If you're interested I have a fairly thorough "I use this" post on my website (last time I updated it was in early 2023) about btrfs.

[–] thingsiplay@beehaw.org 3 points 4 months ago (1 children)

Sure! I'm interested into the "current" state or real world experience of it. Wouldn't mind if you post it here. Although I am not sure how relevant it is 1 year later, because the filesystem is quite under development.

[–] drwho@beehaw.org 2 points 4 months ago (1 children)

Here you go: https://drwho.virtadpt.net/archive/2019-11-04/experimenting-with-btrfs-in-production/

That its under development means that it's being maintained. EXT4 is still being developed, so is xfs. And the other ones that are fairly popular, for that matter.

[–] thingsiplay@beehaw.org 3 points 4 months ago* (last edited 4 months ago) (2 children)

Thanks. But it's important to note your experience report is based on the experience of 2019 and the slight edits aren't changing that. That its being developed is not the same as under maintenance. EXT4 is fully developed and there are only optimizations in performance expected, if anything, while BTRFS still needs active development to improve compatibility and some other features.

I'm still curious to how to work with it and such a report is still welcome. I'll give it a read. Edit: Hopefully my reply didn't sound too negative. I'm interested in the process of going all of this, so the article is useful in a practical sense.

[–] soundconjurer@mstdn.social 3 points 4 months ago (1 children)

@thingsiplay @drwho , as soon as RAID5/6 is fully ready (and I am aware it looks like it'll never be), I'll be switching over to it.

[–] drwho@beehaw.org 1 points 4 months ago (1 children)

What's your use case? Do you need the storage capacity and parity of RAID-5 or -6? The write performance?

[–] soundconjurer@mstdn.social 1 points 4 months ago (1 children)

@drwho I have a data server with data I hold dear and want to ensure losing drives (using RAID6) won't lead to me losing my data.

[–] drwho@beehaw.org 1 points 4 months ago

That's entirely fair.

[–] drwho@beehaw.org 2 points 4 months ago (1 children)

My experience is based on running that btrfs array since 2019. It's still running in production on my server, I still use it daily, and the data I keep on it is still accessed, processed, indexed, and backed up every day. It's not an experiment for the sake of a blog post, it's a thing that is part of my personal infrastructure. The reason I update that post periodically is because I learn something new, or something minor has changed and the text should be updated to reflect that. If using btrfs on a busy server every day is the experience of 2019, I don't know what to say to that.

[–] thingsiplay@beehaw.org 2 points 4 months ago (1 children)

Oh that's hugely different then. It was not apparent that you were using this setup since the initial blog post. Maybe make a note at the top of the post, so your message (like here) is understood. Don't get me wrong, I appreciate the clear information you give here and your feedback on how this works. From your report and given its the default FS for Fedora, its absolutely clear that I need to review my bias and view as BTRFS as a contender for my next system drive.

[–] drwho@beehaw.org 2 points 4 months ago

I had intended that the dates on the edits would have suggested otherwise (the last was 20230422), but I also get how easy it is to miss them if you're looking for something specific. I can't change the publication datestamp because that's part of the slug, and it would break links both internal and any that are external.

[–] narc0tic_bird@lemm.ee 3 points 4 months ago

Tumbleweed people like me would say it's a great filesystem because it enables snapper to work effortlessly.

[–] Swedneck@discuss.tchncs.de 2 points 3 months ago

i'm using fedora on ext4 lol, the single unavoidable problem with BTRFS is that i'd have to switch to it :P

load more comments (12 replies)
[–] teawrecks@sopuli.xyz 2 points 4 months ago (2 children)

I understand ext4 being dependable, but favorite? I'm curious what makes it your favorite.

[–] laurelraven@lemmy.blahaj.zone 5 points 4 months ago (1 children)

Is dependable not a good enough reason to be someone's favorite?

[–] teawrecks@sopuli.xyz 2 points 4 months ago

That's fine, I just consider that the absolute bare minimum for a FS to be usable.

[–] GolfNovemberUniform@lemmy.ml 2 points 4 months ago (1 children)

It's stable and well refined. Imo these are the most important things for a file system.

[–] teawrecks@sopuli.xyz 3 points 4 months ago

Sure, yeah, I would say you should only trust stable, well refined filesystems as a daily driver. Which is why I was curious what set ext4 apart from the rest for you.

[–] lemmyreader@lemmy.ml 9 points 4 months ago (1 children)

Huge news 🎉 Thanks OP for sharing.

It feels like a relief after reading earlier Lemmy comments in other posts about btrfs vs ext4 and having read this Wikipedia page paragraph :

In 2008, the principal developer of the ext3 and ext4 file systems, Theodore Ts'o, stated that although ext4 has improved features, it is not a major advance, it uses old technology, and is a stop-gap. Ts'o believes that Btrfs is the better direction because "it offers improvements in scalability, reliability, and ease of management".[29] Btrfs also has "a number of the same design ideas that reiser3/4 had".[30] 😢

Oh no, wait a minute, I overlooked the next sentence last time 😀 :

However, ext4 has continued to gain new features such as file encryption and metadata checksums.

[–] beejjorgensen@lemmy.sdf.org 3 points 4 months ago (1 children)

On the last system I put together I used xfs because I was thinking ext4 development was waning. TBH I can't really tell the difference in my regular usage.

Word on the street is that xfs sometimes corrupts files, but I'm not sure if that's true anymore.

Maybe on the next system I'll be back to ext4.

[–] possiblylinux127@lemmy.zip 2 points 4 months ago

Btrfs is newer and has more features

[–] autotldr@lemmings.world 8 points 4 months ago

This is the best summary I could come up with:


With the maturity of the EXT4 file-system it's not too often seeing any huge feature additions for this commonly used Linux file-system but there's still the occasional wild performance optimization to uncover... With Linux 6.11 the EXT4 file-system can see upwards of a 20% performance boost in some scenarios.

Ted Ts'o sent out the EXT4 updates today for Linux 6.11.

He explained in that pull request: "Many cleanups and bug fixes in ext4, especially for the fast commit feature.

Up to 20% faster for fast devices using async direct I/O thanks to JBD2 optimizations.

Indeed the patch from Huawei's Zhang Yi to speed up jbd2_transaction_committed() shows off some great improvements:

It's great continuing to see EXT4 uncover new performance optimizations.


The original article contains 144 words, the summary contains 120 words. Saved 17%. I'm a bot and I'm open source!

[–] peppy@lemmy.ml 4 points 4 months ago (1 children)

ext4 is better than btrfs in terms of speed right?

[–] addie 6 points 4 months ago (2 children)

Yes, because it doesn't do as much to protect you from data corruption.

If you have a use case where a barely-measurable increase in speed is essential, but not so essential that you wouldn't just pay for more RAM to keep it in cache, and also it doesn't matter if you get the wrong answer because you've not noticed the disk is failing, and you can afford to lose everything in the case of a power cut, then sure, use a legacy filesystem. Otherwise, use a modern one.

[–] thingsiplay@beehaw.org 14 points 4 months ago (1 children)

Ext4 is not legacy, just because something newer is out there. Ext4 is proven and rock solid, not without reason the standard for most Linux systems. It doesn't randomly corrupt your files. If someone would read your reply, one would think that Ext4 is abandoned since decades and a risk to use.

If one has to ask and don't understand Btrfs, should just use Ext4 by default; a safe and good option without risking anything. There are no downsides to this. Use Btrfs only, if you know what you are doing, if you understand it and actually need the extra functionality.

[–] bsergay@discuss.online 6 points 4 months ago

Use Btrfs only, if you know what you are doing, if you understand it and actually need the extra functionality.

And, may I add, if your chosen distro defaults to it.

[–] jeremias@social.jears.at 8 points 4 months ago

and you can afford to lose everything in the case of a power cut

But ext4 is a journaling filesystem, so a power cut shouldn't harm it.

[–] possiblylinux127@lemmy.zip 4 points 4 months ago (2 children)

For those who still use it.

Ok I'm just giving it a hard time as I still use it for VMs

[–] thingsiplay@beehaw.org 11 points 4 months ago (4 children)

I still use it (Ext4) exclusively and its great. How can you have a hard time with Ext4? It's the most proven and most polished FS. Its not like slowing down your system or being buggy or like that.

[–] shirro@aussie.zone 5 points 4 months ago

Same here. Ext4 is an excellent general purpose file systems and a sensible default. It lacks features that are useful, even critical, for some use cases which sometimes rules it out but it certainly isn't obsolete.

[–] Samueru@lemmy.ml 5 points 4 months ago

Btrfs snapshots made me stop using ext4 all together.

load more comments (2 replies)
[–] PrivateNoob@sopuli.xyz 3 points 4 months ago

Well that's the default for debian based systems. So a lot of us use it.

[–] LeFantome@programming.dev 1 points 4 months ago (1 children)

I notice that this is from Huawei. If it was commercial software, this could not be used by anybody using US federal funding. Because this is Open Source, it will probably be put into use by the NSA, CIA, FBI, and NASA. Fascinating.

load more comments (1 replies)
load more comments
view more: next ›