[Bug 263604] ifconfig: Low performance with many interface/IP

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 05 Jun 2023 11:20:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263604

--- Comment #10 from Andrey Linkevich <dl@CyberPunk.ru> ---
Colleagues, Alexander, Good day!

I see that in HEAD ifconfig uses qsort() in the new list_interfaces_nl() using
netlink. The netlink protocol appeared in FreeBSD 13.2.

Unfortunately, our servers are currently using the current 12-STABLE. We have
quite a lot of optimizations there for ourselves. This does not make it easy to
transfer the configuration to FreeBSD-13/14 for test netlink.

There are plans, but it's not fast. As soon as we move in this direction, I
will immediately conduct a test and inform you. Thanks!


I will add that the path proposed in review D35144 would hardly suit us. The
reason is a "broken phone": the problem was stated as "many interfaces", and
solved as "many addresses on the interface". It's not the same thing.
The main thing is that they removed my patch, which might have helped someone
in a similar situation.

Your method (qsort) probably solves our problem, but we can't check it yet.
Please forgive me!

Good luck.

-- 
You are receiving this mail because:
You are the assignee for the bug.