Created attachment 220143 [details]
root@mowa219-gjp4-8570p:~ # uname -v
FreeBSD 13.0-CURRENT #72 r367936: Sun Nov 22 21:46:00 GMT 2020 root@mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
root@mowa219-gjp4-8570p:~ # pkg query '%o %v %R' net-mgmt/bandwhich
net-mgmt/bandwhich 0.20.0 FreeBSD
If I recall correctly, an earlier version of bandwhich did successfully show process names or IDs.
(In reply to Graham Perrin from comment #0)
I tried running the port on my own machine, and it showed names for the various processes I had running at the time ('firefox', 'openvpn' etc.).
❯ uname -v
FreeBSD 12.2-RELEASE-p1 GENERIC
❯ pkg query '%o %v %R' net-mgmt/bandwhich
net-mgmt/bandwhich 0.20.0_1 FreeBSD
I also checked the previous version (0.19.0) just to be sure, and it behaved in the same way.
Your screenshot shows a copy of Transmission running, I assume it's the process that is being reported as <UNKNOWN>.
The author lists a few reasons why a process might be listed as <UNKNOWN> in a previous GH issue:
The FreeBSD port uses lsof under the bonnet. Have you checked what it shows when Transmission is running? Do any other processes show up on the list?
Is it a problem with lsof on 13-CURRENT
It continues to show a single <UNKNOWN> whilst (for example) running Firefox; and before, during and after a start of Thunderbird. Apparently a single process with a rising number of connections, as Thunderbird makes its connections.
I start Falkon, the number of connections for <UNKNOWN> rises; I quit Falkon, the number drops. And so on.
bandwhich aside for a moment, <https://lists.freebsd.org/pipermail/freebsd-current/2020-November/077655.html> there's a suggestion to use fstat.
Elsewhere recently I read stronger discouragement from relying upon lsof on FreeBSD. Not bookmarked (sorry) but if I do find the technical discussion again, I'll add something here. Note to self: not found in #freebsd on IRC.
In the meantime:
I see <https://github.com/imsnif/bandwhich/issues/149#issuecomment-629828150> but whether fstat is feasible for bandwhich, I have no idea.
(In reply to Graham Perrin from comment #3)
> … Elsewhere recently I read stronger discouragement from
> relying upon lsof on FreeBSD. …
Found. I added the relevant quote to <https://github.com/imsnif/bandwhich/issues/149#issuecomment-748452835>