Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2877

Add locking diagnostics to cf-serverd (libpromises)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-serverd
    • Labels:

      Description

      As can be seen e.g. in CFE-2846, cf-serverd is doing quite a lot of locking which seems to block (because it results into a futex() syscall). However it's basically impossible to identify the problematic userspace locks from the strace output. It would be great, if we could run cf-serverd with some option/flag causing it to record the times spent in (blocking) pthread_mutex_lock calls and dump it periodically, when terminated or on a specific signal receive.

        Attachments

          Activity

            People

            • Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              vpodzime Vratislav Podzimek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel