Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29943

Clangd worker thread number limit does not work

    XMLWordPrintable

Details

    • Linux/X11
    • f4916b312 (13.0), 3b80da711 (master)

    Description

      Setting the limit of the number of clangd worker threads does not seem to have effect. In my settings, I have this limit set to 4 and still while editing C++ source code I can often see 100% CPU utilization on all 8 cores/16 threads by clangd processes.

      I've attached a screenshot of htop during one of these high CPU utilization spikes. In this screenshot, htop is configured to display userland threads separately, so you can see the number of active threads is definitely much more than 4.

      This is a regression in QtCreator 12. With QtCreator 11.0.3 CPU load during code editing is considerably lower.

      Attachments

        1. qtcreator_11.0.3-2024-03-11_15.02.20.mkv
          12.56 MB
          Andrey Semashev
        2. qtcreator_13.0.0b2-2024-03-11_15.08.34.mkv
          13.30 MB
          Andrey Semashev
        3. qtcreator_clangd_processes.png
          915 kB
          Andrey Semashev
        4. qtcreator_cpu_load_11.0.3.mkv
          15.27 MB
          Andrey Semashev
        5. qtcreator_cpu_load_12.0.1.mkv
          11.51 MB
          Andrey Semashev
        6. qtcreator11_clang_processes.png
          692 kB
          Andrey Semashev
        For Gerrit Dashboard: QTCREATORBUG-29943
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes