Thread (5 messages) 5 messages, 4 authors, 2018-08-12

Re: [PATCH v2 net-next 0/2] virtio_net: Expand affinity to arbitrary numbers of cpu and vq

flat view

From: David Miller <davem@davemloft.net>
Date: 2018-08-11 19:03:24
Also in: linux-crypto

From: Caleb Raitto <redacted>
Date: Thu,  9 Aug 2018 18:18:27 -0700
Virtio-net tries to pin each virtual queue rx and tx interrupt to a cpu if
there are as many queues as cpus.

Expand this heuristic to configure a reasonable affinity setting also
when the number of cpus != the number of virtual queues.

Patch 1 allows vqs to take an affinity mask with more than 1 cpu.
Patch 2 generalizes the algorithm in virtnet_set_affinity beyond
the case where #cpus == #vqs.

v2 changes:
Renamed "virtio_net: Make vp_set_vq_affinity() take a mask." to
"virtio: Make vp_set_vq_affinity() take a mask."

Tested:
 ...

Yes, this is so much better than the NAPI module parameter thing!

I'll apply this, and we can adjust/tweak the logic if necessary
on top of these changes.

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help