[Bug 272818] hv_kvp_daemon high CPU usage on Internet router

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 30 Jul 2023 18:12:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272818

            Bug ID: 272818
           Summary: hv_kvp_daemon high CPU usage on Internet router
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wencey@apernet.io

The `hv_kvp_daemon` runs scripts such as:

```
sh -c "netstat -rn | grep hn1 | awk '/default/ {print $2 }'"
```

to collect the gateway configuration.

However, on systems used as an Internet router that contain millions of routes,
this approach drains the CPU, causing Hyper-V Manager to freeze. Additionally,
the script itself is not multi-fib aware.

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