I am currently testing for the introduction of HWOL and conntrack offload.
In this process, I am trying to apply CPU pinning to softirq and offload worker queue.
For CPU pinning of the offload worker queue, I am planning to apply it by entering the CPU bitmask in the
I have verified up to the part where the offload workqueue task is properly assigned with the CPU bitmask specified in this file.
root@Qaamdhost02:/opt/script# ll /sys/devices/virtual/workqueue/nf_ft_offload_*/cpumask drwxr-xr-x 3 root root 0 Jul 4 15:53 /sys/devices/virtual/workqueue/nf_ft_offload_add/cpumask drwxr-xr-x 3 root root 0 Jul 4 15:53 /sys/devices/virtual/workqueue/nf_ft_offload_del/cpumask drwxr-xr-x 3 root root 0 Jul 4 15:53 /sys/devices/virtual/workqueue/nf_ft_offload_stats/cpumask
I tried to automate the above setting, but the
/sys/devices/virtual/workqueue/nf_ft_offload_* type directory is only created when the conntrack offload task occurs, so it is difficult to automate before or after the VM is deployed.
I am curious if there is another way for CPU pinning of the offload worker queue, or if there is a way to create this directory immediately after the VM is deployed.