From nobody Mon Jul 31 06:52:54 2023 X-Original-To: bugs@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 4RDppc0NyHz4psDt for ; Mon, 31 Jul 2023 06:52:54 +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 4RDppZ2lGvz3Jvl for ; Mon, 31 Jul 2023 06:52:54 +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=1690786374; 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=jArKSD/cryufVBggIPt+Qcni947ffpmPQN8qfPvhmIQ=; b=U89rqWP86BbE9QviD3cb14AV84uU/Tp8AZpv2QSOPzWERlb0AX1xx98Z7+CQQQAmKtnpac zLTwFBuK7Ph4AUGNIo53BiKjaKGOYej1jty+Dd5WQfrnMaAY3aWLVIeCgp6hmRpZ2g9+6u F6+K1bB+vw78JoLKnoM6gJx08Joy0ODyY9hosesBoQrksQL3Wmj2ODEang5Zmbz5I6zh7W Ef+7BJWHV0m0qv1lclXx/PmER5CCq5z3kUVAMrmQ/XxoMH9IciwyO0ZtK8ucCjSWNw0tYl uYJ61FqgFmRFE0PcckUgOi+yKlCH+7uzEK4h3xcMJlLTnUihUwGIb3FbgIaB2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690786374; a=rsa-sha256; cv=none; b=nhc91IOrxiEu69lufz95CHfqrUbxaW76XgiAkUieQzFqd3aguHiUKb5308iacNCFIn8DeX DisT5Bkxh3zbtbnHBqnWfNjzMYMz6yIcU2vpORnEvv8NyU53FMNyrVhj7qvU16OkoYXKaa VE7YQDn9FjgD/BLWOkHkMSb1Rp335NANwESR3bLZiV8js9SCNYEiv3AqRoSkVRhnjPWlQV 7N/h2kloWmEBFIP3HbbtXA77E6SJJvFGB+EB+BkCJSm19ucwDpMOz3PVqKWyjjVsIcFZhk BJP4ezmG0Y/6GSjhjtlAzYJQYDIqyZe5KvBtL+Ko7uLOzN4xIKp1xmgxTfIU4Q== 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 4RDppZ1bWQzmHL for ; Mon, 31 Jul 2023 06:52:54 +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 36V6qsZq020237 for ; Mon, 31 Jul 2023 06:52:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36V6qs7d020236 for bugs@FreeBSD.org; Mon, 31 Jul 2023 06:52:54 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: bugs@FreeBSD.org Subject: [Bug 272818] hv_kvp_daemon high CPU usage on Internet router Date: Mon, 31 Jul 2023 06:52:54 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: wencey@apernet.io X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272818 --- Comment #3 from Wencey Wang --- (In reply to Greg Becker from comment #1) I don't think having awk stop on the first match is a fix. As there's no default route on an Internet router. Instead, there are routes for every routable CIDR. (https://en.wikipedia.org/wiki/Default-free_zone) Here goes my example, which contains several lines of IPv6 route in the `netstat -rn` output, I have to hide the next-hop and ifname but you can ea= sily get the idea. ``` Internet6: Destination Gateway Flags N= etif Expire ::/96 ::1 URS = lo0 ::1 link#1 UHS = lo0 ::ffff:0.0.0.0/96 ::1 URS = lo0 2001::/32 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:4:112::/48 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:200::/32 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:200:900::/40 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:200:e00::/40 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:200:c000::/35 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:200:e000::/35 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:218::/32 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:218:2002::/48 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:218:2200::/40 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname 2001:218:3004::/48 hidden next-hop UG1=20=20= =20=20=20=20=20=20 hidden ifname ``` As comment #2 suggested, `route(8)` is much better than parsing the output = of `netstat -rn`.=20 I also think `route(4)` can be used as a good data source instead of parsing text. --=20 You are receiving this mail because: You are the assignee for the bug.=