Bug 248802 - net/dpdk: hang issues at func rte_delay_ms
Summary: net/dpdk: hang issues at func rte_delay_ms
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-21 07:29 UTC by shamsher
Modified: 2020-08-25 05:25 UTC (History)
2 users (show)

See Also:
bruce.richardson: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shamsher 2020-08-21 07:29:19 UTC
Hi,
I am using dpdk 19.11.3 using port in FreeBSD 10.4.
When executing dpdk test cases then it getting hanged at function rte_delay_ms(...);

Ex: 1. like in testpmd it's getting hanged at rte_delay_ms(CHECK_INTERVAL);
2. or if added rte_delay_ms(10); in examples/helloworld/main.c test app then also getting hanged in same function call.

Other details:
sysctl hw.model hw.machine hw.ncpu
hw.model: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
hw.machine: amd64
hw.ncpu: 12

uname -r
10.4-RELEASE

Thanks & regards,
shamsher
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2020-08-21 08:51:14 UTC
FreeBSD 10.4 is not supported anymore, can you upgrade your base system to newer supported version?
Comment 2 Bruce Richardson 2020-08-21 09:19:52 UTC
I ran a quick test similar to what you describe and didn't see any issues. I installed the 19.11.3 package of DPDK using "pkg install dpdk", and then took the source-code of the helloworld example app - adding in an "rte_delay_ms(10);" call. It compiled with "gmake" and then ran without issues.

I'll investigate a little more to double check on my end.
Comment 3 shamsher 2020-08-21 10:03:10 UTC
Ohk.
One more thing in addition to that. I build all in ports/net/work/dpdk...
with helloworld changes. Then passing all required images (contigmem.ko,nic_uio.ko,helloworld,testpmd) to DUT (device under test). In DUT all required changes in load.conf done and modules loaded. If i remove (rte_delay_ms(...)) either in helloworld (where edited) or testpmd (already present) then everything is showing as expected. Like hellworld o/p or in testpmd getting testpmd> prompt. Which seems to be very strange to me. Let me know if any process/image i missed.

Note: yes we are about to migrate to 11.2, but currently working in 10.4
Thanks & regards,
Shamsher
Comment 4 Li-Wen Hsu freebsd_committer freebsd_triage 2020-08-21 10:04:31 UTC
(In reply to shamsher from comment #3)
Please note that 11.2 is also EoL'd, please check https://www.freebsd.org/security/#sup
Comment 5 Li-Wen Hsu freebsd_committer freebsd_triage 2020-08-21 10:04:43 UTC
(In reply to shamsher from comment #3)
Please note that 11.2 is also EoL'd, please check https://www.freebsd.org/security/#sup
Comment 6 Bruce Richardson 2020-08-21 13:05:12 UTC
Can you try compiling up e.g. the helloworld app on the DUT itself and see if it makes any difference?
Comment 7 shamsher 2020-08-25 04:06:53 UTC
Done. libjansson.so.4 was missing post addition of same in /lib things became fine.
Thanks & regards
Shamsher