Results 1 to 3 of 3

Thread: btrfs-clean using 100% CPU when I have no btrfs filesystems

  1. #1

    Default btrfs-clean using 100% CPU when I have no btrfs filesystems

    Today I boot my computer and It is really slow. I open a terminal (after a while) and run a top command, btrfs-clean and some others btrfs proccess are taking a lot of CPU time, but I have no btrfs filesystems at all. I had to kill a couple of this proccess by hand and the problem was gone, altough it left a lot of zombie process

    Code:
    andromeda:~ # ps aux |grep btrfs
    root       107  0.2  0.0      0     0 ?        I    08:34   0:02 [kworker/u12:1-btrfs-endio-write]
    root       113  0.3  0.0      0     0 ?        I    08:34   0:03 [kworker/u12:5-btrfs-endio]
    root       484  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-worker]
    root       486  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-worker-hi]
    root       487  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-delalloc]
    root       488  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-flush_del]
    root       489  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-cache]
    root       490  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-submit]
    root       491  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-fixup]
    root       492  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio]
    root       493  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-met]
    root       494  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-met]
    root       495  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-rai]
    root       496  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-rep]
    root       497  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-rmw]
    root       498  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-wri]
    root       499  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-freespace]
    root       500  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-delayed-m]
    root       501  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-readahead]
    root       502  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-qgroup-re]
    root       505 13.9  0.0      0     0 ?        S    08:34   2:21 [btrfs-cleaner]
    root       506 10.0  0.0      0     0 ?        S    08:34   1:42 [btrfs-transacti]
    root       741  0.2  0.0      0     0 ?        I    08:35   0:03 [kworker/u12:7-btrfs-endio-write]
    root       769  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-worker]
    root       770  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-worker-hi]
    root       771  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-delalloc]
    root       772  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-flush_del]
    root       773  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-cache]
    root       774  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-submit]
    root       775  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-fixup]
    root       776  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio]
    root       777  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-met]
    root       778  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-met]
    root       779  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-rai]
    root       780  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-rep]
    root       781  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-rmw]
    root       782  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-wri]
    root       783  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-freespace]
    root       784  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-delayed-m]
    root       785  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-readahead]
    root       786  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-qgroup-re]
    root      1042  0.0  0.0      0     0 ?        S    08:35   0:00 [btrfs-cleaner]
    root      1043  0.1  0.0      0     0 ?        S    08:35   0:01 [btrfs-transacti]
    root      9984  0.2  0.0      0     0 ?        I    08:46   0:00 [kworker/u12:0-btrfs-endio-write]
    root     10085  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:2-btrfs-endio-write]
    root     10086  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:3-btrfs-worker]
    root     10087  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:4-btrfs-endio-write]
    root     10088  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:6-btrfs-freespace-write]
    root     10204  0.0  0.0      0     0 ?        I    08:49   0:00 [kworker/u12:8-btrfs-endio-write]
    root     10328  0.0  0.0   7432   824 pts/2    R+   08:51   0:00 grep --color=auto btrfs
    andromeda:~ #

    why?


    best regards

  2. #2
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,923
    Blog Entries
    1

    Default Re: btrfs-clean using 100% CPU when I have no btrfs filesystems

    Quote Originally Posted by fperal View Post
    Today I boot my computer and It is really slow. I open a terminal (after a while) and run a top command, btrfs-clean and some others btrfs proccess are taking a lot of CPU time, but I have no btrfs filesystems at all. I had to kill a couple of this proccess by hand and the problem was gone, altough it left a lot of zombie process

    Code:
    andromeda:~ # ps aux |grep btrfs
    root       107  0.2  0.0      0     0 ?        I    08:34   0:02 [kworker/u12:1-btrfs-endio-write]
    root       113  0.3  0.0      0     0 ?        I    08:34   0:03 [kworker/u12:5-btrfs-endio]
    root       484  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-worker]
    root       486  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-worker-hi]
    root       487  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-delalloc]
    root       488  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-flush_del]
    root       489  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-cache]
    root       490  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-submit]
    root       491  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-fixup]
    root       492  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio]
    root       493  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-met]
    root       494  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-met]
    root       495  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-rai]
    root       496  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-rep]
    root       497  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-rmw]
    root       498  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-endio-wri]
    root       499  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-freespace]
    root       500  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-delayed-m]
    root       501  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-readahead]
    root       502  0.0  0.0      0     0 ?        I<   08:34   0:00 [btrfs-qgroup-re]
    root       505 13.9  0.0      0     0 ?        S    08:34   2:21 [btrfs-cleaner]
    root       506 10.0  0.0      0     0 ?        S    08:34   1:42 [btrfs-transacti]
    root       741  0.2  0.0      0     0 ?        I    08:35   0:03 [kworker/u12:7-btrfs-endio-write]
    root       769  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-worker]
    root       770  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-worker-hi]
    root       771  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-delalloc]
    root       772  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-flush_del]
    root       773  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-cache]
    root       774  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-submit]
    root       775  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-fixup]
    root       776  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio]
    root       777  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-met]
    root       778  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-met]
    root       779  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-rai]
    root       780  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-rep]
    root       781  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-rmw]
    root       782  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-endio-wri]
    root       783  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-freespace]
    root       784  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-delayed-m]
    root       785  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-readahead]
    root       786  0.0  0.0      0     0 ?        I<   08:35   0:00 [btrfs-qgroup-re]
    root      1042  0.0  0.0      0     0 ?        S    08:35   0:00 [btrfs-cleaner]
    root      1043  0.1  0.0      0     0 ?        S    08:35   0:01 [btrfs-transacti]
    root      9984  0.2  0.0      0     0 ?        I    08:46   0:00 [kworker/u12:0-btrfs-endio-write]
    root     10085  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:2-btrfs-endio-write]
    root     10086  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:3-btrfs-worker]
    root     10087  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:4-btrfs-endio-write]
    root     10088  0.0  0.0      0     0 ?        I    08:48   0:00 [kworker/u12:6-btrfs-freespace-write]
    root     10204  0.0  0.0      0     0 ?        I    08:49   0:00 [kworker/u12:8-btrfs-endio-write]
    root     10328  0.0  0.0   7432   824 pts/2    R+   08:51   0:00 grep --color=auto btrfs
    andromeda:~ #

    why?


    best regards
    Leap uses btrfsmaintenance 0.43, which is buggy. Remove it or fix it: https://en.opensuse.org/SDB:Fix_btrf...enance-refresh
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  3. #3

    Talking btrfs is still problematic - remove all.

    If you don't use btrfs, it is better to remove all btrfs-related utilities, libraries, etc from the installed packages.

    Besides the problem you observed, the btrfs packages cause other problems, even when no btrfs partition exists in the computer. One of them is prolonged shutdown.

    You will have to remove about seven packages. Some other packages, like gparted, will be left less functional, but that is without consequence.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •