Results 1 to 5 of 5

Thread: btrfs on ssd maintenance

  1. #1
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    436

    Default btrfs on ssd maintenance

    hi

    i installed tumbleweed a few week ago on a ssd 1tb (samsing 850 pro) .

    often i see

    btrfs balance start -v -dusage 30 /
    btrfs-transacti

    only 31% of / is used

    that take hours


    in dmsg i see

    found 6930 extents
    qgrounp scan completed (inconsistency flag cleared)
    is there something to do?
    www.laboiteaprog.com

  2. #2
    Join Date
    Feb 2016
    Location
    Berlin
    Posts
    357

    Default Re: btrfs on ssd maintenance

    please say how large root actually is (1tb!?) how much space is in use? [you dont have home on btrfs?]. I have 30gb and balance takes a few minutes. There is a bug on some systems regards quotas being activated (now the default, easy to switch off if this is the cause). The message you receive i believe is just standard log blurb.

  3. #3
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    436

    Default Re: btrfs on ssd maintenance

    i use btrfs + lvm (default config for suse i thing)



    16 gig used on 32 gig


    home is on xfs fs

    ps aux | grep btrfs
    root 697 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-worker]
    root 698 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-worker-hi]
    root 699 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-delalloc]
    root 700 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-flush_del]
    root 701 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-cache]
    root 702 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-submit]
    root 703 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-fixup]
    root 704 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio]
    root 705 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-met]
    root 706 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-met]
    root 707 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-rai]
    root 708 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-rep]
    root 709 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-rmw]
    root 710 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-wri]
    root 711 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-freespace]
    root 712 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-delayed-m]
    root 713 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-readahead]
    root 714 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-qgroup-re]
    root 715 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-extent-re]
    root 716 0.0 0.0 0 0 ? S Jan31 0:00 [btrfs-cleaner]
    root 717 19.8 0.0 0 0 ? S Jan31 393:00 [btrfs-transacti]
    root 1531 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-worker]
    root 1532 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-worker-hi]
    root 1533 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-delalloc]
    root 1534 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-flush_del]
    root 1535 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-cache]
    root 1536 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-submit]
    root 1537 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-fixup]
    root 1538 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio]
    root 1539 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-met]
    root 1540 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-met]
    root 1541 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-rai]
    root 1542 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-rep]
    root 1543 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-rmw]
    root 1544 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-endio-wri]
    root 1545 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-freespace]
    root 1546 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-delayed-m]
    root 1547 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-readahead]
    root 1548 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-qgroup-re]
    root 1549 0.0 0.0 0 0 ? I< Jan31 0:00 [btrfs-extent-re]
    root 1550 0.0 0.0 0 0 ? S Jan31 0:00 [btrfs-cleaner]
    root 1551 0.0 0.0 0 0 ? S Jan31 0:00 [btrfs-transacti]
    root 4602 0.0 0.0 12528 3228 ? Ss Feb01 0:00 /bin/sh /usr/share/btrfsmaintenance/btrfs-balance.sh
    root 4606 0.0 0.0 12528 2560 ? S Feb01 0:00 /bin/sh /usr/share/btrfsmaintenance/btrfs-balance.sh
    root 4607 0.0 0.0 12528 2232 ? S Feb01 0:00 /bin/sh /usr/share/btrfsmaintenance/btrfs-balance.sh
    root 4621 47.6 0.0 18576 1356 ? R Feb01 364:02 btrfs balance start -v -dusage 30 /
    www.laboiteaprog.com

  4. #4
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    436

    Default Re: btrfs on ssd maintenance

    after 14 hours... cpu is ok....

    hope there is solution to avoid that again
    www.laboiteaprog.com

  5. #5
    Join Date
    Feb 2016
    Location
    Berlin
    Posts
    357

    Default Re: btrfs on ssd maintenance

    the balance start command probably originates from btrfsmaintenance which runs from 30 to 1% and is controlled by systemd timers which you can view. Not sure if 14 hours is total that it ran for? you might try disabling quotas (look up the issue) and inspect the next time the timer runs. If you choose to disable permanently you should also then check/modify your snapper config.

Tags for this Thread

Posting Permissions

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