Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread names #256

Merged
merged 3 commits into from
Jan 8, 2024
Merged

Thread names #256

merged 3 commits into from
Jan 8, 2024

Conversation

pspacek
Copy link
Contributor

@pspacek pspacek commented Jan 5, 2024

No description provided.

Unfortunately various systems use different function prototype, and on
Glibc it requires #define _GNU_SOURCE.
- `dnsperf`:
  - Set thread names to distinguish send and recv side
@pspacek
Copy link
Contributor Author

pspacek commented Jan 5, 2024

It's a minor thing, helpful mainly for debugging bottlenecks.

With the patch output in top -H looks like this:

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
 429060 pspacek   20   0   91412  18080   4960 R  36.1   0.0   0:09.72 perf-recv-0001 
 429062 pspacek   20   0   91412  18080   4960 R  35.2   0.0   0:09.72 perf-recv-0002 
 429058 pspacek   20   0   91412  18080   4960 R  34.3   0.0   0:09.68 perf-recv-0000 
 429064 pspacek   20   0   91412  18080   4960 R  34.3   0.0   0:09.56 perf-recv-0003 
 429059 pspacek   20   0   91412  18080   4960 R  18.5   0.0   0:05.06 perf-send-0000 
 429061 pspacek   20   0   91412  18080   4960 R  18.5   0.0   0:05.06 perf-send-0001 
 429063 pspacek   20   0   91412  18080   4960 S  18.5   0.0   0:05.05 perf-send-0002 
 429065 pspacek   20   0   91412  18080   4960 R  18.5   0.0   0:05.00 perf-send-0003 

- `os`: Move/rename thread set names function, don't include `config.h` in header files
- `dnsperf`: Set thread name to `dnsperf-...`
@jelu jelu merged commit db0893a into DNS-OARC:develop Jan 8, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants