Live data from Hacker News

Htop 3.0

github.com

61–70 of 112 posts

Re: Htop 3.0

#61
For those who like htop-style system monitoring tools, you should also keep these commands handy:

- atop (great for finding out what's causing system-wide slowness when you're not sure whether it's CPU/disk/network/temperature/etc.)

- iotop/iftop/sar (top equivalents for disk IO, network traffic, and sysstat counters)

- glances/nmon/dstat/iptraf-ng (pretty monitoring CLI-GUI utils with more colors)

- systemd-analyze blame (track down cause of slow boot times)

- docker stats (htop equivalent for docker containers)

- zpool iostat -v 1 (iotop equivalent for ZFS pools)

Re: Htop 3.0

#62
post #36

Reading this changelog I discovered that htop has a config file and a config menu. I started using it years ago as a drop-in replacement for top and I never went beyond the default but there are some very nifty things hidden in the option, such as being able to display process trees and custom thread names among many other things. If like me you never bothered to look into it just hit F2 in a running htop and start b…

Upvoted, this took me years to do myself. However, the config file annoys me now because every time I do something like toggling tree view with T or changing sort between CPU and memory with P and U it pops up in my dotfile repo’s list of modified files. I wish it only stored the stuff that’s buried down in the setup menu like what meters are at the top.

Re: Htop 3.0

#63
post #29
post #26

Earlier quoted context omitted.

> There is a reason it’s part of every docker image I create. You really shouldn't put troubleshooting tools in your container images. You can join a "toolbox" container to a running container's namespace to get your tools there when you need them. That avoids unnecessarily large images, extra build time, and extra dependencies in your image.

sorry for being ignorant to learn myself, but how do I do this?

No need to apologize, this stuff isn't always easy to find. In docker, it's done by passing --pid=container:$TARGETCONTAINER to docker run

Here's the docs on it: https://docs.docker.com/engine/reference/run/#pid-settings--...

Re: Htop 3.0

#64
post #23

There are few things more satisfying programming than firing up htop on a high core count machine and watching cpu usage light up.

Or, even better, fix that performance problem and watch the cores quiet down... :)

Re: Htop 3.0

#65
post #5

I learned more about htop, and frankly even Linux I’m general, from this amazing in-depth explanation of what htop is displaying. https://peteris.rocks/blog/htop/

[deleted]

Re: Htop 3.0

#66
post #18
post #5

I learned more about htop, and frankly even Linux I’m general, from this amazing in-depth explanation of what htop is displaying. https://peteris.rocks/blog/htop/

The ads are substantial, invasive (hard to follow the text) and for me were borderline NSFW. Definitely a situation for reader mode.

What ads? : https://github.com/gorhill/uBlock#ublock-origin

Re: Htop 3.0

#67
post #3

The original maintainer (creator) did an excellent job for 10+ years. Here is his response: https://github.com/hishamhm/htop/issues/992#issuecomment-683...

I'd been wondering if this was a friendly fork. Glad to see it has his blessing.

Re: Htop 3.0

#68
post #25
post #18

Earlier quoted context omitted.

The ads are substantial, invasive (hard to follow the text) and for me were borderline NSFW. Definitely a situation for reader mode.

On Android, I don't see any ads with Firefox, but I do with Chrome. Edit: No, actually that is because I have uBlock Origin enabled on Firefox.

I looked with FF both with and without ublock, and I don't see any ads. I don't understand people who gripe about ads when the solutions are ubiquitous and friction-free these days.

Re: Htop 3.0

#69

For those who like htop-style system monitoring tools, you should also keep these commands handy: - atop (great for finding out what's causing system-wide slowness when you're not sure whether it's CPU/disk/network/temperature/etc.) - iotop/iftop/sar (top equivalents for disk IO, network traffic, and sysstat counters) - glances/nmon/dstat/iptraf-ng (pretty monitoring CLI-GUI utils with more colors) - systemd-analyze…

Also mytop/ myps is very useful

Re: Htop 3.0

#70
post #62
post #36

Reading this changelog I discovered that htop has a config file and a config menu. I started using it years ago as a drop-in replacement for top and I never went beyond the default but there are some very nifty things hidden in the option, such as being able to display process trees and custom thread names among many other things. If like me you never bothered to look into it just hit F2 in a running htop and start b…

Upvoted, this took me years to do myself. However, the config file annoys me now because every time I do something like toggling tree view with T or changing sort between CPU and memory with P and U it pops up in my dotfile repo’s list of modified files. I wish it only stored the stuff that’s buried down in the setup menu like what meters are at the top.

Agreed, I feel like there should be a way to mark changes as temporary instead of commiting to file every time.

I found a workaround that seems to work though, once you're happy with your defaults you can do:

  chmod a-w ~/.config/htop/htoprc
This way you make the file read-only and prevent htop from changing it.

Also I had to add "vim_mode=1" directly in the rc file because I couldn't find the option in the menus.

Unfortunately it seems that git only stores the eXecutable bit of the files in the index, so you can't really commit a file as read-only, so you have to remember to do it one every one of your machines (or script it in a git hook I suppose).

Post reply on HN