aboutsummaryrefslogtreecommitdiffstats
path: root/docs/report/introduction/test_environment_sut_conf_2.rst
blob: 79aaff660e7c0e2d09aea4076f3695d244dd2b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Linux CFS tunings
~~~~~~~~~~~~~~~~~

Linux CFS scheduler tunings are applied to all QEMU vCPU worker threads
(the ones handling testpmd PMD threads) and VPP data plane worker
threads. List of VPP data plane threads can be obtained by running:

::

    $ for psid in $(pgrep vpp)
    $ do
    $     for tid in $(ps -Lo tid --pid $psid | grep -v TID)
    $     do
    $         echo $tid
    $     done
    $ done

Or:

::

    $ cat /proc/`pidof vpp`/task/*/stat | awk '{print $1" "$2" "$39}'

CFS round-robin scheduling with highest priority is applied using:

::

    $ for psid in $(pgrep vpp)
    $ do
    $     for tid in $(ps -Lo tid --pid $psid | grep -v TID)
    $     do
    $         chrt -r -p 1 $tid
    $     done
    $ done

More information about Linux CFS can be found in `Sched manual pages
<http://man7.org/linux/man-pages/man7/sched.7.html>`_.