RE: Low crypto performance of AES-NI MB PMD on multi-core

2022-12-05 Thread De Lara Guarch, Pablo
Hi Koji,

> -Original Message-
> From: Koji Ikeura 
> Sent: Wednesday, October 5, 2022 5:51 AM
> To: users@dpdk.org
> Subject: Low crypto performance of AES-NI MB PMD on multi-core
> 
> Hi,
> 
> I am using dpdk-test-crypto-perf to measure the crypto performance of AES-
> NI MB PMD.
> The performance reports say "The SW PMD performance is linear scaling out
> with core numbers", but there are no result on multiple cores and this is not
> the case in my environment.
> What about your environment? Does anyone know how to improve it?
> 

Many thanks for reporting this. We are working on a fix and we will open a 
Bugzilla issue to track this.

Thanks,
Pablo


USB device support in DPDK

2022-12-05 Thread John Bize
Will DPDK support USB-Ethernet devices?

Thanks.



Re: USB device support in DPDK

2022-12-05 Thread Thomas Monjalon
02/12/2022 14:01, John Bize:
> Will DPDK support USB-Ethernet devices?

If there is a need and an advantage for USB devices
to be supported in DPDK, why not?

In general, DPDK supports what is contributed and maintained.




Re: Low crypto performance of AES-NI MB PMD on multi-core

2022-12-05 Thread Koji Ikeura

Hi Pablo,

Thanks for the replay.
I'm in no hurry as I fixed it temporarily, but I'm waiting for the glitch to be 
officially fixed.

Thanks,
Koji

On 2022/12/05 18:04, De Lara Guarch, Pablo wrote:

Hi Koji,


-Original Message-
From: Koji Ikeura 
Sent: Wednesday, October 5, 2022 5:51 AM
To: users@dpdk.org
Subject: Low crypto performance of AES-NI MB PMD on multi-core

Hi,

I am using dpdk-test-crypto-perf to measure the crypto performance of AES-
NI MB PMD.
The performance reports say "The SW PMD performance is linear scaling out
with core numbers", but there are no result on multiple cores and this is not
the case in my environment.
What about your environment? Does anyone know how to improve it?



Many thanks for reporting this. We are working on a fix and we will open a 
Bugzilla issue to track this.

Thanks,
Pablo




Re: USB device support in DPDK

2022-12-05 Thread Stephen Hemminger
On Fri, 2 Dec 2022 13:01:03 +
John Bize  wrote:

> Will DPDK support USB-Ethernet devices?
> 
> Thanks.
> 

Not directly. You could use one of the mechanisms to access
kernel devices like XDP.


Re: USB device support in DPDK

2022-12-05 Thread Stephen Hemminger
On Mon, 05 Dec 2022 10:07:44 +0100
Thomas Monjalon  wrote:

> 02/12/2022 14:01, John Bize:
> > Will DPDK support USB-Ethernet devices?  
> 
> If there is a need and an advantage for USB devices
> to be supported in DPDK, why not?
> 
> In general, DPDK supports what is contributed and maintained.
> 
> 

One recent Linux kernel thread was about removing all the RNDIS
USB devices because there are fundamental security problems with
the protocol.


How do you calculate DPDK mempool requirements?

2022-12-05 Thread Dylan Baros
How do you figure out what settings need to be used to correctly configure
a DPDK mempool for your application?

Specifically using rte_pktmbuf_pool_create():

- n, the number of elements in the mbuf pool
- cache_size
- priv_size
- data_room_size

EAL arguments:
- n number of memory channels
- r number of memory ranks
- m amount of memory to preallocate at startup
- in-memory no shared data structures
- IOVA mode
- huge-worker-stack

My setup:

   - 2 x Intel Xeon Gold 6348 CPU @ 2.6 Ghz
  - 28 cores per socket
  - Max 3.5 Ghz
  - Hyperthreading disabled
  - Ubuntu 22.04.1 LTS
  - Kernel 5.15.0-53-generic
  - Cores set to performance governor
  - 4 x Sabrent 2TB Rocket 4 Plus in RAID0 Config
  - 128 GB DDR4 Memory
  - 10 1GB HugePages (Can change to what is required)
   - 1 x Mellanox ConnectX-5 100gbe NIC
  - 31:00.0 Ethernet controller: Mellanox Technologies MT27800 Family
  [ConnectX-5]
  - Firmware-version: 16.35.1012
   - UDP Source:
  - 100 gbe NIC
  - 9000 MTU Packets
  - ipv4-udp packets

Will be receiving 10GB/s UDP packets over a 100gbe link. Right now trying
to get it working for 2GB/s to a single queue.

Reviewed the DPDK Programmers guide:
https://doc.dpdk.org/guides/prog_guide/mempool_lib.html Also searched
online but the resources seem limited. Would appreciate any help or a push
in the right direction.


Sincerely,

DB


Re: How do you calculate DPDK mempool requirements?

2022-12-05 Thread Stephen Hemminger
On Mon, 5 Dec 2022 11:32:40 -0600
Dylan Baros  wrote:

> How do you figure out what settings need to be used to correctly configure
> a DPDK mempool for your application?
> 
> Specifically using rte_pktmbuf_pool_create():
> 
> - n, the number of elements in the mbuf pool
> - cache_size
> - priv_size
> - data_room_size
> 
> EAL arguments:
> - n number of memory channels
> - r number of memory ranks
> - m amount of memory to preallocate at startup
> - in-memory no shared data structures
> - IOVA mode
> - huge-worker-stack
> 
> My setup:
> 
>- 2 x Intel Xeon Gold 6348 CPU @ 2.6 Ghz
>   - 28 cores per socket
>   - Max 3.5 Ghz
>   - Hyperthreading disabled
>   - Ubuntu 22.04.1 LTS
>   - Kernel 5.15.0-53-generic
>   - Cores set to performance governor
>   - 4 x Sabrent 2TB Rocket 4 Plus in RAID0 Config
>   - 128 GB DDR4 Memory
>   - 10 1GB HugePages (Can change to what is required)
>- 1 x Mellanox ConnectX-5 100gbe NIC
>   - 31:00.0 Ethernet controller: Mellanox Technologies MT27800 Family
>   [ConnectX-5]
>   - Firmware-version: 16.35.1012
>- UDP Source:
>   - 100 gbe NIC
>   - 9000 MTU Packets
>   - ipv4-udp packets
> 
> Will be receiving 10GB/s UDP packets over a 100gbe link. Right now trying
> to get it working for 2GB/s to a single queue.
> 
> Reviewed the DPDK Programmers guide:
> https://doc.dpdk.org/guides/prog_guide/mempool_lib.html Also searched
> online but the resources seem limited. Would appreciate any help or a push
> in the right direction.
> 
> 
> Sincerely,
> 
> DB

Compute the maximum number of live memory elements in the system.
This depends on the NIC card and the queue depths.
Add some additional overhead for packets in flight.

Size of mbuf depends on MTU, amount of reserved private area etc.