RE: [RFC 1/2] eal: add llc aware functions

2024-10-21 Thread Varghese, Vipin
[AMD Official Use Only - AMD Internal Distribution Only] > > > > > > > 1. if there are specific SoC which do not populate the information > > > > at all? If yes are they in DTS? > > > > > > This information is populated correctly for all SOCs, comment was on > > > the script. > > > > Please note,

RE: [RFC 1/2] eal: add llc aware functions

2024-09-12 Thread Wathsala Wathawana Vithanage
> > > > For instance, in Neoverse N1 can disable the use of SLC as LLC (a BIOS > > setting) If SLC is not used as LLC, then your script would report the > > unified L2 > as an LLC. > > Does `disabling SLC as LLC` disable L3? I think not, and what you are > implying is > the ` ls -d /sys/bus/cpu

RE: [RFC 1/2] eal: add llc aware functions

2024-09-06 Thread Varghese, Vipin
[AMD Official Use Only - AMD Internal Distribution Only] > >Some SOCs may only show upper-level caches here, therefore > > cannot be use blindly without knowing the SOC. > > > > Can you please help us understand > > > > For instance, in Neoverse N1 can disable the use of SLC as LLC (a B

Re: [RFC 1/2] eal: add llc aware functions

2024-09-04 Thread Bruce Richardson
On Tue, Sep 03, 2024 at 05:54:22PM +, Wathsala Wathawana Vithanage wrote: > > Some SOCs may only show upper-level caches here, therefore cannot > > be use blindly without knowing the SOC. > > > > Can you please help us understand > > > > For instance, in Neoverse N1 can disable the use

RE: [RFC 1/2] eal: add llc aware functions

2024-09-03 Thread Wathsala Wathawana Vithanage
>Some SOCs may only show upper-level caches here, therefore cannot > be use blindly without knowing the SOC. > > Can you please help us understand > For instance, in Neoverse N1 can disable the use of SLC as LLC (a BIOS setting) If SLC is not used as LLC, then your script would report th

Re: [RFC 1/2] eal: add llc aware functions

2024-09-01 Thread Varghese, Vipin
-unsigned int rte_get_next_lcore(unsigned int i, int skip_main, int wrap) +#define LCORE_GET_LLC \ + "ls -d /sys/bus/cpu/devices/cpu%u/cache/index[0-9] | sort -r | grep -m1 index[0-9] | awk -F '[x]' '{print $2}' " This won't work for some SOCs. Thank you for your response. ple

Re: [RFC 1/2] eal: add llc aware functions

2024-09-01 Thread Varghese, Vipin
+ "ls -d /sys/bus/cpu/devices/cpu%u/cache/index[0-9] | sort -r | grep -m1 index[0-9] | awk -F '[x]' '{print $2}' " NAK Running shell commands from EAL is non-portable and likely to be flagged by security scanning tools. Do it in C please. Thank you Stephen, for pointing this ou

RE: [RFC 1/2] eal: add llc aware functions

2024-08-27 Thread Wathsala Wathawana Vithanage
> -unsigned int rte_get_next_lcore(unsigned int i, int skip_main, int wrap) > +#define LCORE_GET_LLC \ > + "ls -d /sys/bus/cpu/devices/cpu%u/cache/index[0-9] | sort -r > | grep -m1 index[0-9] | awk -F '[x]' '{print $2}' " > This won't work for some SOCs. How to ensure the index yo

Re: [RFC 1/2] eal: add llc aware functions

2024-08-27 Thread Stephen Hemminger
On Tue, 27 Aug 2024 20:40:13 +0530 Vipin Varghese wrote: > + "ls -d /sys/bus/cpu/devices/cpu%u/cache/index[0-9] | sort -r > | grep -m1 index[0-9] | awk -F '[x]' '{print $2}' " NAK Running shell commands from EAL is non-portable and likely to be flagged by security scanning tools.