On 12/5/24 03:59, wangyan4 wrote: > This approach not only ensures a relatively balanced distribution of traffic > across the transmission queues of the port but also maintains high > transmission performance.
Hi, wangyan4. Thanks for the patch! It is an interesting idea. However, I'm not sure if it's a good approach in a general case. The main problem is that performance in this mode becomes unpredictable if the number of queues is not divisable by the number threads. Some threads will have more queues available to them and so they will have higher performance. If auto load-balancing is enabled, moving ports from one thread to another may change performance characteristics unpredictably, breaking the load balancing, since threads are not equal in performance with this new mode. So, we should either only use it when the number of queues is divisable by the number of threads or somehow alloate the queues dynamically. Both approaches seems hard to track, since different ports may have different numbers of queues and dynamic allocation per-hash would hardly be useful with a large variety of traffic. Best regards, Ilya Maximets. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
