redhat-performance / tuned

Tuning Profile Delivery Mechanism for Linux
GNU General Public License v2.0
847 stars 180 forks source link

Add Contrail vRouter DPDK threads to the excluded list (blacklisted) in cpu-partitioning profile configuration file #297

Open PrzemekGrygiel opened 4 years ago

PrzemekGrygiel commented 4 years ago

Hello

In line https://github.com/redhat-performance/tuned/blob/5444669800cda9944533fcc5b38f904e370cbded/profiles/cpu-partitioning/tuned.conf#L61 we need to have added Contrail vRouter DPDK threads as provided bellow

[scheduler]
isolated_cores=${isolated_cores}
ps_blacklist=lcore*;

The same was requested for OVS in the bug https://bugzilla.redhat.com/show_bug.cgi?id=1403309

kirankn80 commented 4 years ago

The name "lcore*" is not just for contrail, but any DPDK lcore/pthread.

ldurandadomia commented 4 years ago

In fact, ps_blacklist is broswing Thread name ... So, in order to protect all our DPDK vrouter thread the best is to use this regular expression: ^contrail-vroute$;^lcore-slave-.*;^rte_mp_handle$;^eal-intr-thread$"

This is a pity as vRouter agent threads are aslo named contrail-vroute :-( But, has there is no pinning enforced for vRouter agent threads, they a assigned to CPU defined in systemd CPUAffinity.

kirankn80 commented 4 years ago

@ldurandadomia - Yes, pl check this case for agent. Hope it is assigned all non isolated cores even after tuned restart.