Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-153088

[RFE] Add OS-level thread names to all server threads

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.3
    • None
    • 389-ds-base
    • None
    • None
    • rhel-idm-ds
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Goal

      As a support engineer examining a customer's pstack, top -H, or perf output, I need each thread to have a meaningful OS-visible name so I can immediately tell what it does without correlating raw thread IDs against internal data structures.

      Every thread created by ns-slapd should get a name via pthread_setname_np. Workers become worker-0 through worker-N, the listener becomes listener, replication threads become repl-prot, repl-inc-res, and so on. All names must stay within the Linux 15-character limit (16 bytes with the null terminator).

      Acceptance criteria

      • Verify every worker thread shows as worker-N in /proc/<pid>/task/*/comm
      • Verify the listener thread, replication threads, and other named threads appear with correct names in ps -eLf and top -H output
      • Verify all names are 15 characters or fewer

              spichugi@redhat.com Simon Pichugin
              spichugi@redhat.com Simon Pichugin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: