numam-dpdk/app
Krzysztof Kanas 18562261ab test: optimise fd closing in forks
Caught while investigating timeouts on a ARM64 server.

Stracing a test process running the eal_flags_autotest, we can see that
the fork helper is checking all possible file descriptors from
getdtablesize() to 2, and close the existing ones.
We can do better by inspecting this forked process /proc/self/fd
directory.

Besides, checking file descriptors via /proc/self/fd only makes sense for
Linux. This code was a noop on FreeBSD.

Fixes: af75078fec ("first public release")
Cc: stable@dpdk.org

Signed-off-by: Krzysztof Kanas <kkanas@marvell.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Krzysztof Kanas <kkanas@marvell.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
2019-11-15 09:35:20 +01:00
..
pdump app: check status of getting MAC address 2019-10-07 15:00:55 +02:00
proc-info app/procinfo: use strlcpy for copying string 2019-10-27 11:33:24 +01:00
test test: optimise fd closing in forks 2019-11-15 09:35:20 +01:00
test-acl net: replace IPv4/v6 constants with uppercase name 2019-06-03 16:54:54 +02:00
test-bbdev app/bbdev: enable fpga_lte_fec support in shared builds 2019-10-09 11:50:12 +02:00
test-cmdline app/cmdline: move from test directory 2019-02-26 15:24:11 +01:00
test-compress-perf app/compress-perf: add --external-mbufs option 2019-10-09 11:50:12 +02:00
test-crypto-perf app/crypto-perf: add check for out-of-place case 2019-10-09 11:50:12 +02:00
test-eventdev app/eventdev: clean LTO warnings 2019-11-08 15:18:05 +01:00
test-pipeline app/pipeline: check status of getting link info 2019-10-07 15:00:54 +02:00
test-pmd cmdline: remove unnecessary #ifdef 2019-11-12 18:35:17 +01:00
test-sad app/test-sad: add sanity checks 2019-11-08 13:51:16 +01:00
Makefile app/test-sad: add test application for IPsec SAD 2019-10-23 16:57:06 +02:00
meson.build app/test-sad: add test application for IPsec SAD 2019-10-23 16:57:06 +02:00