Live data from Hacker News

What: A terminal tool to check what is taking up your bandwidth

github.com

121–130 of 190 posts

Re: What: A terminal tool to check what is taking up your bandwidth

#121

Earlier quoted context omitted.

The simplest way is to pass the —target flag with the musl target; that should work unless you’re also including C code, and then it may Just Work or may need you to do something special.

I've been using `nethogs` for this for a long time, and it is already in most Linux repos and can be installed quickly. https://github.com/raboof/nethogs

Not at my computer atm, but nethogs won't list the process name/PID, will it?

Re: What: A terminal tool to check what is taking up your bandwidth

#122

Earlier quoted context omitted.

I've been using `nethogs` for this for a long time, and it is already in most Linux repos and can be installed quickly. https://github.com/raboof/nethogs

Not at my computer atm, but nethogs won't list the process name/PID, will it?

Yes it does. That's the whole point

Re: What: A terminal tool to check what is taking up your bandwidth

#123

I'll take this moment to plug the tool 'origin', which plows through aliases and symlinks to find the executable behind a command: https://github.com/atorstling/origin

What connection does 'origin' have to 'what'?

I thought it was scratching a similar itch - simplifying a common everyday task

Re: What: A terminal tool to check what is taking up your bandwidth

#124

Earlier quoted context omitted.

cargo install what (fails) Package `trust-dns-proto v0.18.0` does not have these features: `tokio-compat` (MacOS 10.15.2)

This is one of the biggest problems I've had with any neat Rust thing posted up here. The language changes a lot. I have rust/cargo 1.37.0 installed (it's the latest marked stable in Gentoo) and adler32 v1.0.4 fails to compile with "`core::slice:: ::len` is not yet stable as a const fn". I'm installing 1.40.0 from the unstable tree to see if that will build it. I've had situations where I'm either not on the latest v…

There's no such thing as a "too current a version of rust". All Rust compilers (since 1.0) compile all previous versions of code and will continue to do so.

In the rare case you might hit something that was removed/modified because of a security exploit, but those are very very rare.

Re: What: A terminal tool to check what is taking up your bandwidth

#125

Bad naming.. WHAT(1) BSD General Commands Manual WHAT(1) NAME what -- show what versions of object modules were used to construct a file (MacOS ...)

This is the main problem keeping me from using this right now. I don't like installing binaries that conflict with system package names because I'm tin foil about stability and the super small chance that some installation/config script for some other package I rely on references `what` and breaks.

@imsnif 2 questions:

1. Any chance you'd be willing to rename the package? I get it if not, but that would be so dope. 2. Would you consider putting this up as a cask on Brew? Brew is essentially the most popular package manager for Mac that I know of. This isn't as big of a deal for me honestly, but thought I'd ask.

Re: What: A terminal tool to check what is taking up your bandwidth

#126

Running Catalina, with sudo I'm able to get the screen up and running, but at first data I get a panic: thread 'display_handler' panicked at 'overflow when subtracting durations', src/libcore/option.rs:1185:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

I'm not surprised about OS X, recent OS versions have been making it more and more different from how the OS previously worked. For example GDB doesn't work anymore, and neither does valgrind.

Re: What: A terminal tool to check what is taking up your bandwidth

#127
post #61
post #19

What can be a reason if on MacOS it does not capture traffic? I see empty panels. Tried to run with and without `sudo`.

Catalina: getting "failed to listen" when running non-root, Shows empty panels when ran with sudo.

You can run as non-root by using setcap to give extra capabilites to the binary:

  sudo setcap cap_net_raw,cap_net_admin=eip 

Re: What: A terminal tool to check what is taking up your bandwidth

#128
post #108

Earlier quoted context omitted.

Every browser has book marking syncing in some capacity these days. It's the equivalent of losing contacts with a new phone in 1999.

Not without creating an account, on Android. Chrome has no other export functionality. And firefox copied that lack-of-feature without even realizing the motivations. So now one have to copy them one by one.

Or create an account?

Re: What: A terminal tool to check what is taking up your bandwidth

#129
post #17

Installation with yay/crate can be slow. This small tool took 4 minutes of compile time, the Rust crates seem to be very fine granular (like node.js vor example) and require much compile time. 204 crates needed to be compiled. I found that, using yay or another aur helper on arch linux, having a few rust utilities installed that have regular updates, significantly slows down the average system upgrade time. I tend to…

204 depedencies?! Is that normal for a Rust project?

Re: What: A terminal tool to check what is taking up your bandwidth

#130
post #10

I need this for windows.

I used to use Glasswire, however did not like the yearly subscription and limited interface.

Now I use NetLimiter 4: https://www.netlimiter.com/

Among other features like process blocking, it has a process list not very different than this utility as well has bandwidth graphing over a period in time which is very useful in tracking down bandwidth hogs on a monthly capped DSL line. https://www.netlimiter.com/docs/netlimiter-overview/features...

Post reply on HN