I recently switched hard drives on my laptop thinking my nvme drive was failing due to some pretty serious locking and freezing that randomly started about a week ago. Normally I would think it somes system level bit somewhere, but since I am using NixOS, I know for a fact my configuration hasn’t changed.
Anyway, I gave up trying to fix it and decided to move my system to another drive. I decided to give zfs a go, and it seemed to work out pretty well at first. But some of the issues I was having are reappearing. In particular, I ran
nix-collect-garbage about 15 minutes ago and it’s still working. This is actually even slower than it was getting on my previous drive. Some of that is to be expected as I downgraded to a sata ssd for now, but I didn’t think it would be this bad.
At least my system is no longer deadlocking and crashing (I think that drive really was having issues) but it seems pretty far from optimized at this point. In particular, I’ve noticed my browser freezing on heavy io tasks like garbage collection and it was never doing this before.
My laptop is featuring a full featured desktop grade i9-9900k, so I really wouldn’t expect anything like this from my CPU. I was hoping perhaps there are some zfs settings I could tune to improve things, wondering if anyone else has experienced this with zfs.
I have a replacement nvme drive coming and I’m gonna try to continue to use zfs once it arrives but I’m hoping I can at least fix the annoying lock ups by then.