The Fiordland kernel

linux-fiord is Fiordland's own kernel. It is a fork of the CachyOS kernel packaging, built from the same signed CachyOS kernel source, with defaults picked so one package works well on a ten year old laptop and on a current gaming desktop.

It ships as two packages:

PackageWhat it has
linux-fiordThe kernel image, modules and /usr/lib/sysctl.d/70-linux-fiord.conf. Provides NTSYNC-MODULE, WIREGUARD-MODULE, KSMBD-MODULE, V4L2LOOPBACK-MODULE, VHBA-MODULE, VIRTUALBOX-GUEST-MODULES, ADIOS-MODULE.
linux-fiord-headersEverything DKMS needs to build out of tree modules (NVIDIA, VirtualBox, ZFS and so on). Provides LINUX-HEADERS.

uname -r shows the flavour, for example 7.3.6-1-fiord.

Defaults

Settinglinux-fiordlinux-cachyos PKGBUILD defaultArch linux
CPU schedulerBORE on top of EEVDFEEVDF (BORE is a build option)EEVDF
sched_extononon
Timer1000 Hz, tickless1000 Hz, tickless300 Hz
Preemptionfull, with PREEMPT_DYNAMICfulldynamic
CompilerGCC, -O2, no LTOClang ThinLTO, -O3GCC, -O2
CPU targetx86_64 baseline (v1)native for local builds, v3/v4 in the CachyOS reposx86_64 baseline
TCP congestion controlBBRv3 with the fq qdiscCUBICCUBIC
NTSYNCbuilt inmodulemodule
Transparent huge pagesmadvisealways
zswapbuilt in, off by default, zstdon by default, zstd
zramlz4 and zstd backends, zstd defaultsame
MGLRUononon
Module compressionzstdzstdzstd

Security hardening is kept as CachyOS ships it: the lockdown LSM is built in and can be enabled with lockdown=integrity or lockdown=confidentiality, landlock and yama are active, init_on_alloc is on by default, kernel stack offsets are randomised on every syscall, and Intel IBT, the strong stack protector, hardened usercopy and hardened freelists stay on. Clang CFI is not enabled in CachyOS's config and stays off here, since the default build uses GCC.

Why these choices

The sysctl file sets vm.max_map_count = 1048576, which some games and Proton titles need. This is the same value Arch's filesystem package uses; shipping it with the kernel keeps it if that changes.

Everything above is a config fragment (packages/linux-fiord/fiord.config) applied over the CachyOS config, plus the BORE patch from CachyOS's kernel-patches repo. There are no Fiordland specific kernel patches. The build stops if any line of the fragment does not end up in the final config.

Changing behaviour at runtime

WhatHow
Preemption modelpreempt=none, voluntary, full or lazy on the kernel command line
BOREsysctl kernel.sched_bore=0 to fall back to plain EEVDF
sched_ext schedulersinstall scx-scheds and run one, for example sudo scx_lavd
TCP congestion controlsysctl net.ipv4.tcp_congestion_control=cubic
Transparent huge pagesecho always | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
zswapzswap.enabled=1 on the kernel command line

Switching to linux-fiord

Keep a second kernel installed (the stock Arch linux or linux-cachyos) so you can boot it if something goes wrong.

sudo pacman -S linux-fiord linux-fiord-headers
sudo grub-mkconfig -o /boot/grub/grub.cfg

mkinitcpio builds the initramfs as part of the install. Reboot and pick linux-fiord under "Advanced options" in GRUB, then check with uname -r. To boot it by default, add GRUB_TOP_LEVEL="/boot/vmlinuz-linux-fiord" to /etc/default/grub and run grub-mkconfig again.

NVIDIA

The prebuilt linux-cachyos-nvidia-open module only matches the CachyOS kernel. With linux-fiord, use the DKMS module, which builds against linux-fiord-headers on every kernel update:

sudo pacman -S nvidia-open-dkms

Other DKMS modules (virtualbox-host-dkms, zfs-dkms, v4l2loopback-dkms) work the same way. Modules built by DKMS are not signed with the kernel's build key, so they will not load if you enable lockdown or module.sig_enforce=1.

Going back

sudo pacman -Rns linux-fiord linux-fiord-headers
sudo grub-mkconfig -o /boot/grub/grub.cfg

Remove GRUB_TOP_LEVEL from /etc/default/grub first if you set it.

Building

cd packages/linux-fiord
gpg --import keys/pgp/*.asc
makepkg -s

Build options, set in the environment:

VariableValuesDefault
_processor_optgeneric_v1, generic_v2, generic_v3, generic_v4, zen4, nativegeneric_v1
_use_llvm_ltonone, thin, fullnone

For example _processor_opt=generic_v3 makepkg -s builds for Haswell, Zen 1 and newer. A thin or full LTO build uses Clang, and its headers package then depends on Clang so DKMS can build modules.

./build.sh reuses the published linux-fiord packages when their version is already in the repo, and only builds the kernel when pkgver or pkgrel changed. REBUILD=1 does not rebuild the kernel; use REBUILD_KERNEL=1 for that.

Updating to a new CachyOS release

  1. Set _major, _minor and _tagrel to the new CachyOS/linux tag and reset pkgrel to 1.
  2. Take config from the same version of linux-cachyos, and point _patchcommit at the kernel-patches commit that matches it.
  3. Run updpkgsums, then makepkg --verifysource to check the source signature against the keys in keys/pgp. The dkms-clang.patch hashes in the LTO branch of the PKGBUILD are not touched by updpkgsums; update them by hand with sha256sum and b2sum.
  4. Push a branch. The kernel workflow applies the patches and the config fragment, builds both packages, runs namcap and builds nvidia-open-dkms against the new headers.

Questions?

Fiordland is a small project. Ask in the Discord, search the wiki or open an issue.