From nobody Mon Jun 5 11:20:46 2023 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZWPW3cnkz4ZgDX for ; Mon, 5 Jun 2023 11:20:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZWPW2dKCz3CLQ for ; Mon, 5 Jun 2023 11:20:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685964047; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ql7N+FuP2cEIXBZbeZ4VvQglzc6c78u/EFvX6o9bUWc=; b=UfcyA9K/bdh3ntJZZymA7KKw6/jrsuY8FhdcXjkDhzzCj7swgvU6KIc/UoRf9LKxA6dKgV efeNpuRUMCzR+G8Olm2tgjkL8q7u7OofcIn9LsniN1m1+44BerriqHc9AEkN9p1DZRaL0t LaGdJf5MhcJP1TtYtza48utgKJpbkiNeW+1X2Q85q0cjEP2QfCXdGxmFCwzV4TNOJbmOpj HO1Ou2P77tT+K2WrbbhKWPeFaPv5jZfetG4Y43Y2RtiZXpyw1jHSmZprzGmyx1y+F4SDa7 pRv9fiLDR5k8GfYfnpcSxlLdpNiz0YdryNC2eGBvK9Ax5FWqYWfufmsH/ekG8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685964047; a=rsa-sha256; cv=none; b=aYeOcRj7cmmX9F5y/CGAh5YNS75cL5dUMwG+hEysrGYIc6JmsuP71eqVTqINGrVZk7268L Deq4QVPWg7fiWr8SgOfeQk4iyUwPeeND57Pfn/iUbAcqRvInxo43QhmBLoX6ggaBf59BOJ LkRvxQGBzoAJWZUhABRcEvHl0H+fidQIS6T73ca85ViFyZVfzCuIOsLWaz1kMdan/3VEhH cfLj72C860ZOkjgpd/05lggCLP/HVR1hOUGAB0mZGkyHmmE/zrUZsbv6HeK5PaKFpfjH1F kL/RX8LeBsMYzpxMv1QvY0ezhUPUy0NjRaNMOJAJCIedHvGP6cYG61YMkS09MA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QZWPW1kNxzlZq for ; Mon, 5 Jun 2023 11:20:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 355BKlwM051611 for ; Mon, 5 Jun 2023 11:20:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 355BKlre051610 for net@FreeBSD.org; Mon, 5 Jun 2023 11:20:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 263604] ifconfig: Low performance with many interface/IP Date: Mon, 05 Jun 2023 11:20:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dl@CyberPunk.ru X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263604 --- Comment #10 from Andrey Linkevich --- Colleagues, Alexander, Good day! I see that in HEAD ifconfig uses qsort() in the new list_interfaces_nl() us= ing netlink. The netlink protocol appeared in FreeBSD 13.2. Unfortunately, our servers are currently using the current 12-STABLE. We ha= ve quite a lot of optimizations there for ourselves. This does not make it eas= y 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 someo= ne in a similar situation. Your method (qsort) probably solves our problem, but we can't check it yet. Please forgive me! Good luck. --=20 You are receiving this mail because: You are the assignee for the bug.=