[PATCH] usertools/dpdk-devbind: improve query performance on BSD

Thomas Monjalon thomas at monjalon.net
Sun Jul 12 02:56:55 CEST 2026


29/06/2026 14:59, Bruce Richardson:
> The time taken on FreeBSD to run the status command from dpdk-devbind
> was exceptionally long. When run on a real system with lots of
> devices, the original code took over 80 seconds in some cases to produce
> the output of "dpdk-devbind.py -s". (Time on BSD VMs is quicker as they
> tend not to have so many hardware devices, which is why this may not
> have been noticed before.)
> 
> Rework the processing to avoid doing so many subprocess calls to
> pciconf; use one call to get info on all devices rather than an
> individual call per-device. On the same HW as before, it now takes a
> fraction of a second, rather than >80 seconds.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks.





More information about the dev mailing list