Skip to contentSkip to conversation

drivers/dma/skeleton/ is not setting pthread affinity based on the lcore shared as arguments

Bug 1270 [email protected] 1 participant 2 messages Aug 2, 2023 – Oct 20, 2023

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1270

Bug ID: 1270
Summary: drivers/dma/skeleton/ is not setting pthread affinity
based on the lcore shared as arguments
Product: DPDK
Version: 23.07
Hardware: All
OS: Linux
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: other
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

Issue: when using dpdk skeleton DMA with lcore arguments, we expect the Software DMA to be affinitized to the selected lcore. Currently this is not working.

Example: ./buildgcc/app/dpdk-test-dma-perf --config app/test-dma-perf/my.ini --log-level=pmd.dma,8

Logs:

```
config file parsing...                                            
config file parsing complete.                                     

Running cases...                                                  
Running case 1                                                    
EAL: Detected CPU lcores: 32                                      
EAL: Detected NUMA nodes: 4                                       
EAL: Detected static linkage of DPDK                              
EAL: Selected IOVA mode 'VA'                                      
EAL: No free 2048 kB hugepages reported on node 0                 
EAL: No free 2048 kB hugepages reported on node 1                 
EAL: No free 2048 kB hugepages reported on node 2                 
EAL: No free 2048 kB hugepages reported on node 3                 
skeldma_parse_vdev_args(): Parse lcore_id = 20                    
skeldma_probe(): Create dma_skeleton dmadev with lcore-id 20      
TELEMETRY: No legacy callbacks, legacy socket not created         
Number of used lcores: 31.                                        
Running scenario 1                                                
Number of used dmadevs: 1.                                        
Start testing....                                                 
lcore 3, DMA dma_skeleton, DMA Ring Size: 1024, Kick Batch Size: 32.            
Average Cycles/op: 526, Buffer Size: 64 B, Buffer Number: 81920, Memory: 10.00
MB, Frequency: 3.840 Ghz.     
```

Current Behavior: currently dma core is running on free available core.

Configuration:

```
[case1]                                                                        
                                                                               
      │·································································
type=DMA_MEM_COPY                                                              
                                                                               
      │·································································
mem_size=10                                                                    
                                                                               
      │·································································
buf_size=64,8192,2,MUL                                                         
                                                                               
      │·································································
dma_ring_size=1024                                                             
                                                                               
      │·································································
kick_batch=32                                                                  
                                                                               
      │·································································
src_numa_node=0                                                                
                                                                               
      │·································································
dst_numa_node=0                                                                
                                                                               
      │·································································
cache_flush=0                                                                  
                                                                               
      │·································································
test_seconds=2                                                                 
                                                                               
      │·································································
lcore_dma=lcore3@dma_skeleton                                                  
                                                                               
      │·································································
eal_args=--in-memory  --vdev=dma_skeleton,lcore=20 --no-pci  -l1-31    
```
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1270

David Marchand ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #4 from David Marchand ([email protected]) --- Fixed in commit 2f9afbe4f6fc ("dma/skeleton: fix thread affinity").

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.