Live data from Hacker News

Htop explained

peteris.rocks

21–30 of 105 posts

Re: Htop explained

#21

> If I had two cores, my CPU usage would be 50% since my computer can run two processes at the same time. The load average of a computer with 2 cores that has a 100% CPU usage would be 2.00. If I recall correctly the CPU usage would still be 100% but could go up to 200% if both cores are fully used.

I am getting feedback that I should not be using the terms CPU usage and utilization when talking about load averages. I will update the post later.

Re: Htop explained

#22
post #3

Thank you! Great writeup! I applaud the way you approached it - figuring out every single thing about a tool. Also, I didn't know about 'od' command. Thanks again!

please do explain in 2 words the od command. I was looking on the page and there is only one od command and it is not explained. thank you

https://linux.die.net/man/1/od

Re: Htop explained

#23
Nice explanation, but too much to remember in practice.

If only the UI had something like hover-tips to show what each field actually means...

Re: Htop explained

#24

I switched to macOS from Linux two weeks ago and I am starting to regret that decision. Most — if not all — the commands that I thought I had mastered after years working on Linux environments stopped working because their BSD counterparts have slightly differences that completely break everything I try to do. It is even more frustrating when I realize that I have to deactivate security features built-in the new Appl…

`brew install coreurils && brew install htop`

Re: Htop explained

#25
kill as a shell built-in also allows you to pass it job numbers rather than PIDs. For example, kill -9 %1 would kill the first process you sent into the background, either with & or ^Z

Re: Htop explained

#27
Well, his 'Extreme edition' is actually not so extreme. This is how Debian base installation looks like.

A server can perfectly run without dbus, accountsservice, logind, policykit and acpid. And, unlike he wrote, timesyncd NTP synchronization works well without dbus.

(Debian base has also cron and rsyslog running by default, for legacy reasons.)

Re: Htop explained

#28
I tend to use "atop" because it gives me a better overall picture of my system. But, there is something really cool about "htoo" that many users don't realise and that I hadn't realised until somebody pointed it to me recently:

You can use your mouse/TrackPoint in htop to click on menu options, processes etc...

Re: Htop explained

#29
post #5
post #2

htop is one of the most missed tools when I am on a non-Linux OS. On servers I find atop to actually be a better tool for finding issues that happen incrementally and not an obvious issue. I think that atop and htop both are very complimentary. http://www.atoptool.nl/ "Atop is an ASCII full-screen performance monitor for Linux that is capable of reporting the activity of all processes (even if processes have finished…

unless by non-Linux you meant non-unix, htop recently got updated to better support BSDs and OSX/MacOS.

That's excellent news.

Re: Htop explained

#30

I switched to macOS from Linux two weeks ago and I am starting to regret that decision. Most — if not all — the commands that I thought I had mastered after years working on Linux environments stopped working because their BSD counterparts have slightly differences that completely break everything I try to do. It is even more frustrating when I realize that I have to deactivate security features built-in the new Appl…

I posted a link to a instructions on getting the GNU equivalent of commonly used BSD programs on OSX yesterday: https://news.ycombinator.com/item?id=13084969
Post reply on HN