[PATCH v8] enhance NUMA affinity heuristic
    Burakov, Anatoly 
    anatoly.burakov at intel.com
       
    Mon May 29 12:37:52 CEST 2023
    
    
  
On 5/26/2023 6:50 PM, Stephen Hemminger wrote:
> On Fri, 26 May 2023 15:44:15 +0100
> "Burakov, Anatoly" <anatoly.burakov at intel.com> wrote:
> 
>>> +	/* Set control thread socket ID to SOCKET_ID_ANY as control
>>> +	 * threads may be scheduled on any NUMA node.
>>> +	 */
>>> +	RTE_PER_LCORE(_socket_id) = SOCKET_ID_ANY;
> 
> This is not always true. Read the control thread documentation.
> If DPDK application is run in a cgroup with cpuset, it maybe limited differently.
The point was more to highlight that control thread NUMA affinity is 
"undefined" (and depends on a lot of factors) rather than necessarily 
"uses all NUMA nodes". IMO the message is OK, even if technically it's 
not 100% accurate.
I mean, we could do some magic and figure out the effective NUMA node of 
a control thread, but do you think this would be worth the effort?
-- 
Thanks,
Anatoly
    
    
More information about the stable
mailing list