Hi Damjan,
VFIO map function now can be called from work thread in some cases.  Like 
allocate physical memory for DMA batch and then do mapping for if no attached 
device, or a new session segment attached to VPP process.  So I use 
event-logger for vfio logging. 
These numbers are collected from my sample server, we are modifying CSTI case 
for DMA usage. Will see more official number later. 

1C memif l2patch No-DMA
64               128              256             512              1024         
  1518
8.00Mpps  6.49Mpps  4.69Mpps  3.23Mpps   2.37Mpps   1.96Mpps
4.09Gbps   6.65Gbps  9.62Gbps  13.24Gbps   19.43Gbps   23.86Gbps

1C memif l2patch DMA
64              128               256             512             1024          
   1518
8.65Mpps  8.60Mpps  8.54Mpps  8.22Mpps   8.36Mpps   7.61Mpps
4.43Gbps   8.81Gbps   8.54Mpps   33.67Gbps   68.51Gbps   92.39Gbps

Regards,
Marvin

> -----Original Message-----
> From: Damjan Marion <dmar...@0xa5.net>
> Sent: Tuesday, November 29, 2022 10:45 PM
> To: Liu, Yong <yong....@intel.com>
> Cc: vpp-dev@lists.fd.io
> Subject: Re: Gerrit review for memif DMA acceleration
> 
> 
> Hi Marvin,
> 
> for a start can you use standard vlib logging instead of elog, as all those
> logging stiuff are not perf critical.
> 
> Also, can you share some perf comparison between standard CPU path and
> DSA accelerated memif?
> 
> Thanks,
> 
> Damjan
> 
> 
> > On 29.11.2022., at 09:05, Liu, Yong <yong....@intel.com> wrote:
> >
> > Hi Damjan and community,
> > For extend the usage of latest introduced DMA infrastructure, I uploaded
> several patches for review.  Before your review, let me briefly introduce
> these patches.
> >  In review 37572, add a new vfio mapped function for extended memory.
> This kind of memory may come from another process like memif regions or
> dynamic allocated like hoststack shared segments.
> > In review 37573, support vfio based DSA device for the scenario that need
> fully control the resource of DSA. Compared to assign work queues from
> single idxd instance into multiple processes,  this way can guarantee 
> resource.
> > In review 37574, support CBDMA device which only support pci device
> model. The usage of CBDMA in hoststack and memif is depend on 37572.
> > In review 37572, add new datapath function in memif input and tx node.
> These functions followed async model and will be chosen if option “use_dma”
> added when creating memif interface.
> >  Gerrit link:
> > https://gerrit.fd.io/r/c/vpp/+/37572
> > https://gerrit.fd.io/r/c/vpp/+/37573
> > https://gerrit.fd.io/r/c/vpp/+/37574
> > https://gerrit.fd.io/r/c/vpp/+/37731
> >  Best Regards,
> > Marvin
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22258): https://lists.fd.io/g/vpp-dev/message/22258
Mute This Topic: https://lists.fd.io/mt/95330357/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to