Re: [PATCH net-next V3 0/3] Introduce and use NUMA distance metrics

From: Tariq Toukan
Date: Sun Jul 24 2022 - 08:09:26 EST




On 7/19/2022 7:23 PM, Tariq Toukan wrote:
Hi,

Implement and expose CPU spread API based on the scheduler's
sched_numa_find_closest(). Use it in mlx5 and enic device drivers. This
replaces the binary NUMA preference (local / remote) with an improved one
that minds the actual distances, so that remote NUMAs with short distance
are preferred over farther ones.

This has significant performance implications when using NUMA-aware
memory allocations, improving the throughput and CPU utilization.

Regards,
Tariq

v3:
- Introduce the logic as a common API instead of being mlx5 specific.
- Add implementation to enic device driver.
- Use non-atomic version of __cpumask_clear_cpu.


Comments on V2 were addressed.
Please let me now of any other comments on this V3.