Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857837 - net-analyzer/iftop busy deadlocks for speeds >1Gb/s
Summary: net-analyzer/iftop busy deadlocks for speeds >1Gb/s
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-07-13 03:35 UTC by Charlie Stanley
Modified: 2022-07-27 04:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Stanley 2022-07-13 03:35:27 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-27 04:14:07 UTC
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(+)