Skip to content

Add a descriptive name to the process threads #6974

@ancarpan

Description

@ancarpan
  • Program: Authoritative, Recursor, dnsdist
  • Issue type: Feature request

Short description

It would be nice if the single threads in the applications had a descriptive name so that debugging and tracing would be easier.

Usecase

While debugging performance issues it would be easier to spot threads actual job and identify possible bottlenecks. Anything that could help identify the process current role/usage would be nice.

Description

Currently:

# pgrep -law pdns_recursor
16701 /usr/sbin/pdns_recursor --daemon=no --write-pid=no --disable-syslog --log-timestamp=no
16703 /usr/sbin/pdns_recursor --daemon=no --write-pid=no --disable-syslog --log-timestamp=no
16704 /usr/sbin/pdns_recursor --daemon=no --write-pid=no --disable-syslog --log-timestamp=no
16705 /usr/sbin/pdns_recursor --daemon=no --write-pid=no --disable-syslog --log-timestamp=no

Nice to have:

# pgrep -law pdns_recursor
16701 pdns_recursor/distributor
16703 pdns_recursor/resolver
16704 pdns_recursor/resolver
16705 pdns_recursor/resolver

Or for dnsdist something like:

$ pgrep -law dnsdist
1934 dnsdist/parent
2162 dnsdist/addlLocal[127.0.0.1:53]
2163 dnsdist/addlLocal[127.0.0.1:53]
2164 dnsdist/newServer[192.169.1.10:5300]
2165 dnsdist/newServer[192.169.1.11:5300]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions