Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-DAQ›Data collection #54603

DAQ - olserver52 CPU affinity of a running process : latency effect

The DAQ servers running on the olserver52 hosts have their CPU affinity well defined meaning that a each server remains running on a given CPU . If  the affinity of a task is not well defined  the task runs on the different CPUs according the system policy.

During the week-end the CPU affinity of the Metatron servers has been fixed.  This operation was complete around the 2022-01-23-11H-UTC . The detail of the CPU affinity for the olserver52 host can be find in  the ~virgorun/bin/DaqOlserver._taskset.sh script..

The following plots show according different CPU affinity policy applied

There is 3 main periods called

  • "fixed taskset" meaning that the CPU affinity for each of the DAQ and Metatron server is fixed
  • "free taskset" meaning that each of the DAQ and Metatron server can run and move on all the olserver52 CPUs
  • "mix taskset" meaning that the CPU affinity was not fixed only for the FbmFFE,FbmFE, FbmMain frame mergers and all the DAQ 50Hz servers

From the plots one can see that

  • the latency at the FbmMain level is lower by 0.5s  in the case  of the "free taskset"  period ,compare to the  "fixed taslkset" period
  • the global cpu_idle value is reduced by 5% in the case  of the "free taskset"  period ,compare to the  "fixed taslkset" period, meaning that all the CPUs are more used (32*0.05=1.6 CPU)
  • the olserver52 ganglia load value is reduced  from 24 to 18 in the case   the "free taskset"  period ,compare to the  "fixed taslkset" period,
  • in the case of the "mix taskset" , the latency remains at the same level as the "free taskset" period while  the global cpu_ilde value remains at the same level as the "fixed taskset" period .
  • the effect observed in the transition between "fixed taslkset" period and "free taskset" period seems repeatable

According to these observations,

  • in the first time  the CFG_SCHEDAFFINITY of the olserver52 tasks could be commented to run like the  "free taskset"period
  • in case of need one can run the olserver52 tasks as the  "mix taskset" period .
  • Now all the olserver52 servers are running as in  "free taskset" period but the olserver52 task configuration files are not yet updated

Storage host  CPU affinity state:

  • the CPUs affinity for the stol01 tasks remains as "fixed taskets" . The detail is available in the  ~virgorun/bin/DaqStol01._taskset.sh script.
  • the CPUs affinity for the stol02 tasks remains as "fixed taskets" . The detail is available in the  ~virgorun/bin/DaqStol02._taskset.sh script
  • the CPUs affinity for the stol03 tasks is now as "free taskets" . The detail is available in the  ~virgorun/bin/DaqStol03._taskset.sh script