67b07093 | 18-Jun-2022 |
Li Zhang <lizh@nvidia.com> |
vdpa/mlx5: add multi-thread management for configuration
The LM process includes a lot of objects creations and destructions in the source and the destination servers. As much as LM time increases,
vdpa/mlx5: add multi-thread management for configuration
The LM process includes a lot of objects creations and destructions in the source and the destination servers. As much as LM time increases, the packet drop of the VM increases. To improve LM time need to parallel the configurations for mlx5 FW. Add internal multi-thread management in the driver for it.
A new devarg defines the number of threads and their CPU. The management is shared between all the devices of the driver. Since the event_core also affects the datapath events thread, reduce the priority of the datapath event thread to allow fast configuration of the devices doing the LM.
Signed-off-by: Li Zhang <lizh@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
1f93bee4 | 06-Jan-2021 |
Xueming Li <xuemingl@nvidia.com> |
vdpa/mlx5: add hardware queue moderation
The next parameters control the HW queue moderation feature. This feature helps to control the traffic performance and latency trade-off.
Each packet comple
vdpa/mlx5: add hardware queue moderation
The next parameters control the HW queue moderation feature. This feature helps to control the traffic performance and latency trade-off.
Each packet completion report from HW to SW requires CQ processing by SW and triggers interrupt for the guest driver. Interrupt report and handling cost CPU cycles and time and the amount of this affects directly on packet performance and latency.
hw_latency_mode parameters [int] 0, HW default. 1, Latency is counted from the first packet completion report. 2, Latency is counted from the last packet completion. hw_max_latency_us parameters [int] 0 - 4095, The maximum time in microseconds that packet completion report can be delayed. hw_max_pending_comp parameter [int] 0 - 65535, The maximum number of pending packets completions in an HW queue.
Signed-off-by: Xueming Li <xuemingl@nvidia.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
05421ec9 | 02-Dec-2020 |
Xueming Li <xuemingl@nvidia.com> |
vdpa/mlx5: set default event mode to polling
For better performance and latency, this patch sets default event handling mode to polling mode which uses dedicate thread per device to poll and process
vdpa/mlx5: set default event mode to polling
For better performance and latency, this patch sets default event handling mode to polling mode which uses dedicate thread per device to poll and process event.
Signed-off-by: Xueming Li <xuemingl@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|