this post was submitted on 11 Aug 2025
61 points (100.0% liked)

Linux

9892 readers
630 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

It's becoming easy to see why Linus didn't merge anything from bcachefs for 6.17. And Kent isn't gaining himself any supporters by tearing down other filesystems in his tantrum.

you are viewing a single comment's thread
view the rest of the comments
[–] moonpiedumplings@programming.dev 10 points 2 months ago* (last edited 2 months ago) (2 children)

I'll say it again and again. The problem is neither Linus, nor Kent, but the lack of resources for independent developers to do the kind of testing that is expected of the big corporations.

Like, one of the issues that Linus yelled at Kent about was that bcachefs would fail on big endian machines. You could spend your limited time and energy setting up an emulator of the powerPC architecture, or you could buy it at pretty absurd prices — I checked ebay, and it was $2000 for 8 GB of ram...

But the big corpos are different. They have these massive CI/CD systems, which automatically build and test Linux on every architecture under the sun. Then they have an extra, internal review process for these patches. And then they push.

But Linux isn't like that for independent developers. What they do, is just compile the software on their own machine, boot into the kernel, and if it works it works. This is how some of the Asahi developers would do it, where they would just boot into their new kernel on their macs, and it's how I'm assuming Overstreet is doing it. Maybe there is some minimal testing involved.

So Overstreet gets confused when he's yelled at for not having tested on big endian architectures, because where is he supposed to get a big endian machine that he can afford that can actually compile the linux kernel in less than 10 years? And even if you do buy or emulate a big endian CPU, then you'll just get hit with "yeah your patch has issues on machines with 2 terabytes or more of ram" and yeah.

One option is to drop standards. The Asahi developers were allowed to just merge code without being subjected to the scrutiny that Overstreet has been subjected to. This was in part due to having stuff in rust, and under the rust subsystem — they had a lot more control over the parts of Linux they could merge too. The other was being specific to macbooks. No point testing the mac book-specific patches on non-mac CPU's.

But a better option, is to make the testing resources that these corporations use, available to everybody. I think the Linux foundation should spin up a CI/CD service, so people like Kent Overstreet can test their patches on architectures and setups they don't have at home, and get it reviewed before it is dumped to the mailing list — exactly like what happens at the corporations who contribute to the Linux kernel.

[–] FuckBigTech347@lemmygrad.ml 2 points 2 months ago

You could spend your limited time and energy setting up an emulator of the powerPC architecture, or you could buy it at pretty absurd prices — I checked ebay, and it was $2000 for 8 GB of ram…

You're acting as if setting up a ppc64 VM requires insane amounts of effort, when in reality it's really trivial. It took me like a weekend to figure out how to set up a PowerPC QEMU VM and install FreeBSD in it, and I'm not at all an expert when it comes to VMs or QEMU or PowerPC. I still use it to test software for big endian machines:

start.sh

#!/usr/bin/env sh

if [ "$(id -u)" -ne 0 ]; then
    printf "Must be run as root.\n"
    exit 1
fi

# Note: The "-netdev" parameter forwards the guest's port 22 to port 10022 on the host. 
# This allows you to access the VM by SSHing the host on port 10022.
qemu-system-ppc64 \
    -cpu power9 \
    -smp 8 \
    -m 3G \
    -device e1000,netdev=net0 \
    -netdev user,id=net0,hostfwd=tcp::10022-:22 \
    -nographic \
    -hda /path/to/disk_image.img \
#    -cdrom /path/to/installation_image.iso -boot d

Also you don't usually compile stuff inside VMs (unless there is no other way). You use cross-compilation toolchains which are just as fast as native toolchains, except they spit out machine code for the architecture that you're compiling for. Testing on real hardware is only really necessary if you're like developing a device driver, or the hardware has certain quirks to it that are just not there in VMs.

load more comments (1 replies)