Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2023 06:52:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 272818] hv_kvp_daemon high CPU usage on Internet router
Message-ID:  <bug-272818-227-ol5yxZmkid@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272818-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272818-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272818

--- Comment #3 from Wencey Wang <wencey@apernet.io> ---
(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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272818-227-ol5yxZmkid>