[PATCH] usertools: enhance logic to display NUMA
Ferruh Yigit
ferruh.yigit at amd.com
Wed Jun 14 12:48:02 CEST 2023
On 3/28/2022 3:56 AM, Varghese, Vipin wrote:
> Hi Thomas,
>
> <snipp>
>
> 26/03/2022 08:32, Vipin Varghese:
>>> enhance python logic to accomadate NUMA information. Current logic
>>> considers physical socket with CPU threads to core map. With new AMD
>>> SKU vairant NUMA is no longer same as SOCKET. Single physical socket
>>> can be partitioned to variant of 1,2 and 4.
>>>
>>> The changes address the new mapping with Socket-NUMA to CPU cores.
>>>
>>> Signed-off-by: Vipin Varghese <vipin.varghese at amd.com>
>>> ---
>>> usertools/cpu_layout.py | 76
>>> +++++++++++++++++++++++++----------------
>>> 1 file changed, 47 insertions(+), 29 deletions(-)
>> Honestly, I'm not sure it is a good idea to keep this script in the DPDK repo.
>> Can it be replaced with hwloc usage?
>
> thanks for the suggestion, it is genuine and useful. Following is my observations
>
> - It takes some effort to identify the NUMA with `Group`
> - One needs to install ` lstopo-no-graphics` on distro and manually build and add on custom Linux.
>
>
>> What is the output on the new AMD SKU for this command?
>> lstopo-no-graphics --merge
>
> I have tried ` lstopo-no-graphics --merge` on a ` 2 Socket AMD EPYC 7713 64-Core Processor` with
> possible NUMA configuration such as 1, 2 and 4.
>
Hi Thomas,
Should we document preferred tool and usage in DPDK, if so where is good
location for it?
Also @Dmitry, is there solution for Windows for this issue (a tool to
replace cpu_layout.py)?
Thanks,
ferruh
More information about the dev
mailing list