OpenFastPath / ofp

OpenFastPath project
BSD 3-Clause "New" or "Revised" License
349 stars 126 forks source link

odp classifier sample app issue #283

Closed savitakulk closed 1 year ago

savitakulk commented 1 year ago

We are trying to run odp_classifier sample application on VMs with the Mellanox platform and getting the following errors. Any suggestions would be helpful.

ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:594]:odp_pktio_start():DBG: Inside odp_pktio_start ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:599]:odp_pktio_start():DBG: calling get_pktio_entry ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:605]:odp_pktio_start():DBG: calling lock_entry ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:614]:odp_pktio_start():DBG:calling entry->s.ops->start mlx5_pci: port 0 empty mbuf pool mlx5_pci: port 0 Rx queue allocation failed: Cannot allocate memory ODP:27.12.2022(13:56:23):[ERROR]:[odp_packet_dpdk.c:1725]:dpdk_start():Device start failed: err=-12, port=0 ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:623]:odp_pktio_start():DBG: res of entry->s.ops->start -1 ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:625]:odp_pktio_start():DBG:calling ODP_PKTIN_MODE_SCHED ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:626]:odp_pktio_start():DBG:calling ODP_PKTIN_MODE_SCHED 1 mode 1 ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:633]:odp_pktio_start():DBG:num = 1 ODP:27.12.2022(13:56:23):[ERROR]:[../linux-generic/odp_packet_io.c:644]:odp_pktio_start():DBG:calling odp_sched_fn->pktio_start ODP:27.12.2022(13:56:23):[DEBUG]:[../linux-generic/odp_packet_io.c:650]:odp_pktio_start():interface: 0, input queues: 1, output queues: 1 odp_classifier.c:711:main():Error: unable to start pktio

P.S: We are running the classifier with the following command

./odp_classifier -i 1 -m 0 -p "ODP_PMR_SIP_ADDR:10.10.10.0:0xFFFFFF00:queue1" -p "ODP_PMR_SIP_ADDR:10.10.10.10:0xFFFFFFFF:queue1:queue2"

MatiasElo commented 1 year ago

Hi @savitakulk,

Looks like this issue belongs to ODP project. When you recreate the issue there, please list used SW versions (ODP, DPDK) and pktio type (normal or zero-copy).

bogdanPricope commented 1 year ago

Hi @savitakulk,

'odp_classifier' is an ODP application and is not part of OFP project. As @MatiasElo mentioned, this issue should be reported/investigated on ODP repositories (https://github.com/OpenDataPlane/odp or https://github.com/OpenDataPlane/odp-dpdk).

For reference, ODP is the software layer under the OFP network stack: see this OFP presentation for more details https://github.com/OpenFastPath/ofp/blob/master/docs/OpenFastPath_master_deck.pdf

However, if a network stack is what you need, you may try OFP classifier example or NFP project. NFP (https://github.com/NetInoSoftware/nfp) is an enhanced version of OFP. It contains many fixes and new features but the network stack is publicly available only in binary form (libs). See https://github.com/NetInoSoftware/nfp/blob/master/docs/NFP_performance_results.odt for performance results (including results for nfp_classifier example).

Best regards

savitakulk commented 1 year ago

zero-copy

Hi @savitakulk,

Looks like this issue belongs to ODP project. When you recreate the issue there, please list used SW versions (ODP, DPDK) and pktio type (normal or zero-copy).

Thanks a lot for the input. We are using DPDK version-dpdk-20.11.1 ,odp version as -release 2.9.1 and pktio type as normal.I will recreate the issue at https://github.com/OpenDataPlane/odp/issues mentioning all this.

savitakulk commented 1 year ago

However, if a network stack is what you need, you may try OFP classifier example or NFP project.

Thanks a lot for your suggestions/inputs.Currently we are trying with ODP classifier.