opened
youssefazrak
username_0
To assist with additional debugging around processor affinity, we are
adding the Taskset command to the bugtool.

Fixes: #14566
Bugtool: add taskset 
issue
created
youssefazrak
username_0
@username_1 
I added the `-pc` flag instead of the simple `-pc` as this gives back a more "user-friendly" result for the cpu affinity instead of the hexadecimal value.

Btw, `numactl -H` seems to give some useful information at a higher-level as it is aware of the processor topology and how the CPU cores map to CPU sockets.
comment
created
joestringer
username_1
`numactl -H` looks kinda interesting, if we were to add it we'd have to also extend the container image to include the tool. 

Though that said I'm not sure it necessarily matters so much for general debugging. The reason I proposed `taskset` is because it observes state that Go uses to detect the number of CPUs and therefore could impact BPF map initialization and so on. Not sure whether the NUMA layout is likely to impact those kinds of things in such a way that it's important to retrospectively analyse rather than an active investigation into e.g. performance, queue configuration, etc.?
comment
created
joestringer
username_1
PR LGTM, doesn't impact CI so merging.
comment
created
twpayne
username_2
Marking this PR for backport, as it's another useful addition.
comment