BTRFS Slowness


So this is going to be a quick post.

For anyone who is running BTRFS on their computer, they MAY be getting occasional stalls at regular intervals.

You’ll go looking in HTOP and such for what’s killing it, but you’ll notice that the CPU will only eat about one whole core at most and your disk IO will be getting slammed hard.

It’s the fault of this guy…

assistant

https://forum.garudalinux.org/t/btrfs-cleaner-gobbling-up-cpu-but-quota-is-disabled/16437

If you disable quotas, the issue goes away. The more snapshots you have, the slower your system will run.

You’ll want to also grab btrfs-assistant, this thing is magic.

That being said, if your not running BTRFS and Timeshift, you’re really setting yourself up for failure if you like to tinker. Just make sure you don’t fill your disk with snapshots, or you’ll be in for a very bad time.

💡 Tip

Just make sure you don’t forget to clean your apt snapshots as well.

💡 Tip

Docker can cause issues as well, so be sure to check that too!

sudo apt-btrfs-snapshot delete-older-than 0d

You also may want to check out this NCDU-like tool as well!


Prev
Publishing CLI Apps (with Apt & YUM)
Publishing CLI Apps (with Apt & YUM)

Comments




Kudos:

@ Feed 📰 @ Mast 🐘