zunzuncito

wolf

My main desktop PC tracks the latest LTS release of the Linux kernel which very recently switched to the 5.15 line. Along with neat new features like the NTSF3 driver it also includes experimental support for Link Time Optimization through LLVM's clang compiler.

I'm not really one to shy away from weird experiments, so I decided to run a full LTO kernel for a while. If you have a recent version of clang and the lld linker, building one is as easy as toggling CONFIG_LTO_CLANG_FULL and exporting the right flags to make:

make CC=clang LLVM=1 menuconfig
	# CONFIG_LTO_CLANG_FULL=y
make CC=clang LLVM=1

Subsequent steps are the same as with a normal build:

sudo make install
sudo make modules_install

Keep in mind, however, that any out-of-tree modules such as ZFS must also be built with clang. Here I ran into this bug which should soon be fixed upstream. For now I backported that fix locally to ZFS 2.1.2 and am building it like so:

sudo CC=clang LLVM=1 emerge zfs-kmod

Build times and memory usage when building are increased dramatically with full LTO. Optimizing vmlinux.o alone allocates about 3 to 4 GiB of memory. If you rely a lot on incremental builds, thin LTO might be the better option here.

wolf

I didn't expect this to actually work, but as half-jokingly mentioned in the previous post , here's a Minecraft server running on a machine from around 25 years ago. Pretty much worked out of the box with icedtea assembled by the build VM and a 512MiB swapfile (of which only around 50MiB was actually used).

nortti in the overworld on the syys
Minecraft server
nortti in the overworld on the syys Minecraft server

The game was surprisingly playable, and we made it all the way to finding diamonds.

nortti in the Minecraft on syys
looking at a diamond deposit in the ceiling
We found diamonds!
wolf

I spent the last few days building a cursed Gentoo system with my partner. We named it "syys", after "syyskuu" - the Finnish word for September.

This post was written, committed, and pushed on that system, using only software that was built on it natively. For some heavier parts that were not involved in the making of this post (links, fish, both of which need cmake, which would take hours to build) we set up a portage binary host on a VM that is nearly identical to the actual Pentium II system.

The next logical step, of course, is to try and get Minecraft running on it...