DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1270] drivers/dma/skeleton/ is not setting pthread affinity based on the lcore shared as arguments
@ 2023-08-02 12:26 bugzilla
  2023-10-20  6:39 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2023-08-02 12:26 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 5894 bytes --]

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: dev@dpdk.org
          Reporter: vipin.varghese@amd.com
  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    
```

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 7797 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug 1270] drivers/dma/skeleton/ is not setting pthread affinity based on the lcore shared as arguments
  2023-08-02 12:26 [Bug 1270] drivers/dma/skeleton/ is not setting pthread affinity based on the lcore shared as arguments bugzilla
@ 2023-10-20  6:39 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2023-10-20  6:39 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

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

David Marchand (david.marchand@redhat.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |david.marchand@redhat.com
         Resolution|---                         |FIXED

--- Comment #4 from David Marchand (david.marchand@redhat.com) ---
Fixed in commit 2f9afbe4f6fc ("dma/skeleton: fix thread affinity").

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 2928 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-20  6:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-02 12:26 [Bug 1270] drivers/dma/skeleton/ is not setting pthread affinity based on the lcore shared as arguments bugzilla
2023-10-20  6:39 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).