Skip to content

UI hang, 100% CPU usage #12

@pwaller

Description

@pwaller

Hi,

This is on version v0.3.1, running on NixOS - I'm aware you've got a newer version, but I don't have a chance to try this out right now and thought you may be interested in the report anyway. Please feel free to close this issue for any reason.

I've used btdu a fair amount without problems. Today I tried applying it to new disk, larger than I normally use it on, which is NVMe. I observe a hang (instantly) after ~1000 samples (not repeatable exactly), where the UI subsequently doesn't update nor respond to input.

CPU usage remains at 100% though. I captured the following report of what btdu is doing using sudo perf record --all-user --call-graph dwarf,65528 -F 100 btdu and perf report.

-   92.63%     0.00%  btdu     btdu                  [.] _start                                                                                                              ▒
     _start                                                                                                                                                                  ▒
     __libc_start_main_alias_2 (inlined)                                                                                                                                     ▒
     __libc_start_call_main                                                                                                                                                  ◆
     _d_run_main                                                                                                                                                             ▒
     _d_run_main2                                                                                                                                                            ▒
     _D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv                                                                                                                       ▒
     _Dmain                                                                                                                                                                  ▒
     _D2ae5utils6funopt__TQkS_D4btdu4main7programFSQBsQBsQBp__T11_OptionImplVEQCtQCtQCq10OptionTypei2TAyaVQea45_5061746820746f2074686520726f6f74206f66207468652066696c6573797▒
   - _D4btdu4main7programFS2ae5utils6funopt__T11_OptionImplVEQBiQBiQBf10OptionTypei2TAyaVQea45_5061746820746f2074686520726f6f74206f66207468652066696c6573797374656d20746f2061▒
      - 88.54% _D4btdu7subproc10Subprocess11handleInputMFZv                                                                                                                  ▒
         - 88.46% _D4btdu5proto__T5parseTSQw7subproc10SubprocessZQBfFKAhKQBgZm                                                                                               ▒
            - 56.05% _D4btdu7subproc10Subprocess13handleMessageMFSQBr5proto13ResultMessageZv                                                                                 ▒
               - _D4btdu5paths7SubPath8__mixin210appendNameMFIAaZPSQBwQBuQBr                                                                                                 ▒
                    19.93% __memcmp_avx2_movbe                                                                                                                               ▒
                    0.81% bcmp@plt                                                                                                                                           ▒
            - 32.25% _D4btdu7subproc10Subprocess13handleMessageMFSQBr5proto16ResultEndMessageZv                                                                              ▒
               - 31.45% _D4btdu5paths11BrowserPath8__mixin710appendPathMFIPSQByQBw7SubPathZ7recurseMFPSQCzQCxQCuIQBnZQq                                                      ▒
                  - 29.91% _D4btdu5paths11BrowserPath8__mixin710appendNameMFSQBwQBu__T9InlineArrTyaVmi23ZQtZPSQDdQDbQCy                                                      ▒
                       10.13% __memcmp_avx2_movbe                                                                                                                            ▒
                  - 1.54% _D4btdu5paths11BrowserPath8__mixin710appendPathMFIPSQByQBw7SubPathZ7recurseMFPSQCzQCxQCuIQBnZQq                                                    ▒
                       1.30% _D4btdu5paths11BrowserPath8__mixin710appendNameMFSQBwQBu__T9InlineArrTyaVmi23ZQtZPSQDdQDbQCy                                                    ▒
      + 4.05% _D4btdu6sample14subprocessMainFAyaZv     

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions