On 15/02/2023 05:50, ChangLimin wrote:
Before enable dpdk, all ovs-vswitch threads were affinitied to cpu 0-27. Cpu 
28-31 were isolated in grub, will used for pmd.
After enable dpdk, many threads were affinitied only to the first lcore cpu.

Below is the output:
# ovs-vsctl --no-wait set Open_vSwitch . 
other_config:dpdk-socket-mem="4096,4096"
# ovs-vsctl --no-wait set Open_vSwitch . other_config:pmd-cpu-mask="0xf0000000" 
 # cpu 28-31
# ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-lcore-mask=2         
 # cpu 1
# ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
# taskset -apc `pidof ovs-vswitchd`
pid 260702's current affinity list: 1      "ovs-vswitchd" main thread
pid 260709's current affinity list: 0-27   "urcu4"
pid 260742's current affinity list: 0-27   "ct_clean39"
pid 260743's current affinity list: 0-27   "ipf_clean40"
pid 260836's current affinity list: 0,2-27 "eal-intr-thread"
pid 260837's current affinity list: 0,2-27 "telemetry-v2"
pid 260838's current affinity list: 1      "dpdk_watchdog69"
pid 260839's current affinity list: 1      "ovs_vhost70"
pid 260840's current affinity list: 30     "pmd-c30/id:71"
pid 260841's current affinity list: 31     "pmd-c31/id:72"
pid 260842's current affinity list: 28     "pmd-c28/id:73"
pid 260843's current affinity list: 29     "pmd-c29/id:74"
pid 260856's current affinity list: 1      "handler75"      for netdev dataplane
pid 260857's current affinity list: 1      "revalidator76"  for netdev dataplane
pid 260861's current affinity list: 1      "handler77"      for system dataplane
pid 260862's current affinity list: 1      "handler78"      for system dataplane
pid 260863's current affinity list: 1      "revalidator79"  for system dataplane

Is there anying wrong here ?

It is the expected behaviour that threads are pinned to core 1 because dpdk-lcore-mask is set. This mask is optional, you can just not set it and you should have 0-27 affinity when dpdk is enabled.

Regards.
Chang Limin
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to