Hi!
I currently really struggle to pin down the issue. On Sunday I added the nix-unstable channel
# nix-channel --list
nixos https://channels.nixos.org/nixos-24.11
nixos-unstable https://nixos.org/channels/nixos-unstable
and added the unstable version of typst
{pkgs, config, ...}: {
# Allow unstable packages.
nixpkgs.config = {
packageOverrides = pkgs: {
unstable = import <nixos-unstable> {
config = config.nixpkgs.config;
};
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# typst
unstable.typst
# (if config.services.xserver.enable then [
# tinymist
# ])
(if config.services.xserver.enable || config.services.xserver.wayland.enable then pkgs.unstable.tinymist else null)
];
}
I don’t think that this should have any impact on global system performance since it is a normal app. I think the --upgrade also updated some other stuff though - but typically this should be done regularly by my systemd service.
A few hours later, nixos suddenly became really slow, but RAM&SWAP usage was normal, CPU 100%. I rebooted and it was still extremely slow, even unlocking my full-disk-encryption LUKS took ~10s (it felt like this; compared to ~1.5s). I booted an old generation and it was still slow, LUKS seemed to unlock in reasonable time. New update, maybe a little bit faster? Still barely usable for office work (sometimes even scrolling in less is slow).
On journalctl there were a few errors where I don’t think they are the cause - e.g. xapp-status segvaulting. htop is using ~40%-60% CPU.
How to best debug this? There seems to be a very fundamental issue if unlocking LUKS is slow. Or multiple issues?
# uname -a
Linux abc 6.12.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 7 17:25:47 UTC 2025 x86_64 GNU/Linux
I use systemd-boot on UEFI with disabled Secure Boot.
Smart shows nearly perfect results of my SSD.
On a higher level I have LUKS → LVM → ZFS with ~300 GB of empty space (of 1 TB) and cinnamon on X11.
Edit: Log of the incredibly slow boot process until mounting volumes (as the rest won’t be interesting): Log slow boot - Pastebin.com
Thanks!
Thomas131