1

I have a process, shell. It's affinity mask is 1 (I have 3 CPUs) On redundant machine (almost mirror - it is 7 - ALL CPUs) Who is deciding which mask to set or where it is configured?

[root@h1-nms ~]# ps $$
  PID TTY      STAT   TIME COMMAND
 7605 pts/2    Ss     0:00 -bash
[root@h1-nms ~]# taskset -p $$
pid 7605's current affinity mask: 1
  • bash(7605)───pstree(21743) – ALZ Mar 2 '18 at 16:22
  • with - p. -s give error (pstree: invalid option -- 's') – ALZ Mar 2 '18 at 16:41
0

I found that on a specific machine affinity was managed by Cgroups (https://en.wikipedia.org/wiki/Cgroups)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.