btrbk icon indicating copy to clipboard operation
btrbk copied to clipboard

Anybody else having BTRBK slowing down system

Open msmafra opened this issue 7 months ago • 2 comments

Hello there! I have used BTRBK for a while, but since, what I'm assuming here, kernel updates since maybe 6.12, I notice that during some stages of the process of btrbk run or btrbk resume, it slows the rest of the system, making browsers, file managers, etc. unresponsive for some seconds, minutes sometimes. When I check its resource consumption, it doesn't look like it is taking too much. I am also assuming here that at some stage it consumes more I/O than it should. I'm trying to use btrbk run more than once a day because I also noticed that doing it sporadically, as I used to do, makes it worse too.

My laptop system info

OS: Fedora Linux 42 (Workstation Edition) x86_64
Host: 82CF (LEGION 5 15IMH)
Kernel: Linux 6.14.8-cachyos1.fc42.x86_64
WM: Hyprland 0.49.0 (Wayland)
CPU: Intel(R) Core(TM) i7-10750H (12) @ 5.00 GHz
GPU: NVIDIA GeForce RTX 2060 Mobile [Discrete]
Memory: 4.76 GiB / 15.52 GiB (31%)
Swap: 2.21 GiB / 15.52 GiB (14%)
Disk (/): 378.30 GiB / 929.50 GiB (41%) - btrfs
Disk (/mnt/Mnemosyne/Proton): 653.22 GiB / 931.50 GiB (70%) - btrfs

On both Fedora and CachyOS kernel and both Gnome and Hyprland it happens. I started noticing it when I used only Gnome.

msmafra avatar May 31 '25 15:05 msmafra

Are btrfs quotas enabled? If so, try disabling them.

richardm1 avatar Jun 12 '25 21:06 richardm1

Are btrfs quotas enabled? If so, try disabling them.

No, not enabled. I never used it.

doas btrfs filesystem usage /
Overall:
    Device size:                 929.50GiB
    Device allocated:            436.02GiB
    Device unallocated:          493.47GiB
    Device missing:                  0.00B
    Device slack:                    0.00B
    Used:                        408.09GiB
    Free (estimated):            510.12GiB      (min: 263.39GiB)
    Free (statfs, df):           510.12GiB
    Data ratio:                       1.00
    Metadata ratio:                   2.00
    Global reserve:              512.00MiB      (used: 0.00B)
    Multiple profiles:                  no

Data,single: Size:402.01GiB, Used:385.35GiB (95.86%)
   /dev/mapper/luks-drive         402.01GiB

Metadata,DUP: Size:17.00GiB, Used:11.37GiB (66.87%)
   /dev/mapper/luks-drive          34.00GiB

System,DUP: Size:8.00MiB, Used:64.00KiB (0.78%)
   /dev/mapper/luks-drive          16.00MiB

msmafra avatar Jun 12 '25 22:06 msmafra