CSIT-1488: Add data to the Report 1904
[csit.git] / docs / report / introduction / test_environment_sut_conf_2.rst
1
2 Linux CFS Tunings
3 ~~~~~~~~~~~~~~~~~
4
5 Linux CFS scheduler tunings are applied to all QEMU vCPU worker threads
6 (the ones handling testpmd PMD threads) and VPP data plane worker
7 threads. List of VPP data plane threads can be obtained by running:
8
9 ::
10
11     $ for psid in $(pgrep vpp)
12     $ do
13     $     for tid in $(ps -Lo tid --pid $psid | grep -v TID)
14     $     do
15     $         echo $tid
16     $     done
17     $ done
18
19 Or:
20
21 ::
22
23     $ cat /proc/`pidof vpp`/task/*/stat | awk '{print $1" "$2" "$39}'
24
25 CFS round-robin scheduling with highest priority is applied using:
26
27 ::
28
29     $ for psid in $(pgrep vpp)
30     $ do
31     $     for tid in $(ps -Lo tid --pid $psid | grep -v TID)
32     $     do
33     $         chrt -r -p 1 $tid
34     $     done
35     $ done
36
37 More information about Linux CFS can be found in `Sched manual pages
38 <http://man7.org/linux/man-pages/man7/sched.7.html>`_.