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

Linux

47991 readers
1192 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
[–] [email protected] 1 points 3 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.

[–] [email protected] 1 points 3 months ago

There is a lot of development from China in the linux kernel. Also, to my knowledge there is a lot of chinese work in qemu and libvirt as well.

[–] [email protected] 4 points 3 months ago (1 children)

ext4 is better than btrfs in terms of speed right?

[–] [email protected] 6 points 3 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.

[–] [email protected] 8 points 3 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.

[–] [email protected] 14 points 3 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.

[–] [email protected] 6 points 3 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.

[–] [email protected] 4 points 3 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

[–] [email protected] 3 points 3 months ago

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

[–] [email protected] 11 points 3 months ago (3 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.

[–] [email protected] 0 points 3 months ago (1 children)

It is slower than btrfs and lacks protection against corruption

[–] [email protected] 4 points 3 months ago

It is slower than btrfs

What evidence supports your statement, given that it contradicts the overall results of tests conducted in the past year by both DJ Ware and Michael Larabel from Phoronix?

[–] [email protected] 5 points 3 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.

[–] [email protected] 5 points 3 months ago

Btrfs snapshots made me stop using ext4 all together.

[–] [email protected] 9 points 3 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.

[–] [email protected] 3 points 3 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.

[–] [email protected] 2 points 3 months ago

Btrfs is newer and has more features

load more comments
view more: next ›