When rescaling the ui window to download/upload speeds >1Gb/s, iftop spins while holding a lock. The CPU usage will go to 100% while the ui thread is blocked and no updates are sent. A little debugging pointed me at the get_max_bandwidth function which is hardcoded to 1Gb. This project hasn't had a release since 2014, and is possibly derelict, however, the maintainer did make a patch to support 10Gb and 100Gb. code.blinkace.com/pdw/iftop/-/commit/77901c8c53e01359d83b8090aacfe62214658183 I have manually applied this patch and have verified that it works. I don't suspect that a new release is coming any time soon, so I propose adding this patch to the ebuild. I'll submit a PR shortly.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18af427934289a253113f76cef2516371b114fd5 commit 18af427934289a253113f76cef2516371b114fd5 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-27 03:36:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-27 03:36:41 +0000 net-analyzer/iftop: backport patch for >1gbps Closes: https://bugs.gentoo.org/857837 Signed-off-by: Sam James <sam@gentoo.org> .../iftop-1.0_pre4-allow-scales-beyond-1gbps.patch | 43 +++++++++++++++++++ net-analyzer/iftop/iftop-1.0_pre4-r5.ebuild | 49 ++++++++++++++++++++++ 2 files changed, 92 insertions(+)