NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Explanation of everything you can see in htop/top on Linux (peteris.rocks)
imrehg 2 hours ago [-]
I've relatively recently migrated over to using btop[0], and it's the kind of modern interface, useful and informative, that I needed.

As others mention it - it seems to shows the Watts used as well :) (and network, and GPU, and disks,....)

[0]: https://github.com/aristocratos/btop

MomsAVoxell 1 hours ago [-]
Yup, btop zealot here, it even replaced iStatMenu on my brand new MacBook ..
NetOpWibby 15 minutes ago [-]
Oh wow, now I gotta check it out.
WD-42 9 minutes ago [-]
When I read stuff like this, I come to the realization that even after daily driving Linux for 20+ years I still barely utilize its full potential. Great article.
cogman10 2 hours ago [-]
2 Settings I change on every htop which makes a HUGE difference.

1. I disable user threads. Those mostly just clutter up the htop view while providing no useful information.

2. I enable the process tree view. Very frequently, where a process comes from is much more important than other information. It also lets you see and track things like a compiler process which is eating through a bunch of files.

IMO, both these things should be the default behavior of htop.

zekrioca 31 minutes ago [-]
I like the process tree view, but it stops the dynamic updates and reordering of process list.
fractorial 2 hours ago [-]
Anyone else feel as if HN is healing? I hope this isn't the walking-ghost era of HN.
conqrr 2 hours ago [-]
3 AI related articles on the front page, but one is busting slop. I'm hopeful.
thijson 2 hours ago [-]
For top if you use the > character it will sort by memory usage. I use that sometimes to figure out why my host is becoming laggy. Also you'll see swapd is taking up CPU.
2 hours ago [-]
wyclif 2 hours ago [-]
I've had this bookmarked since 2016, and have referred to it many times over the years.
TheChaplain 2 hours ago [-]
This is really good!

I use htop often but pretty much only use it to find pid or cpu-culprits, and never really understood the rest.

bwnkl 2 hours ago [-]
For pid I find pgrep to be the better suited tool
MomsAVoxell 1 hours ago [-]
s/htop/btop/

You'll be glad you did.

myshapeprotocol 2 hours ago [-]
[flagged]
amelius 2 hours ago [-]
A bit silly that you can see a load average but not the amount of Watts used by your system.
amelius 2 hours ago [-]
Nowadays most of my processing happens on the GPU, so htop/top better evolve or become mostly irrelevant because a tool that will support both CPU __and__ GPU will replace it.
FpUser 1 hours ago [-]
Irrelevant for you does not mean irrelevant for others
amelius 1 hours ago [-]
Nails and hammers are great but most of us have moved on to screws and screwdrivers.

What good does it do to stick your head in the sand?

CPUs are great for orchestrating work, GPUs are great for actually doing the work.

WD-42 12 minutes ago [-]
Did you write this comment using your gpu?
FpUser 1 hours ago [-]
>"What good does it do to stick your head in the sand?"

Get the fuck out. I do write for GPU as well. One does not replace the other.

justthetop 28 minutes ago [-]
For high performance work, gpus have replaced cpus a long time ago.
zekrioca 29 minutes ago [-]
Stupidest comment ever.
sevg 18 minutes ago [-]
> Nowadays most of my processing happens on the GPU, so htop/top better evolve or become mostly irrelevant

If you’re a 3D rendering designer, an ML engineer or a crypto bro, then sure.

Here are the common workloads (for the average SWE on HN) that use CPU/RAM:

  - compilation/builds
  - language servers and IDEs
  - test suites
  - local containers
  - local databases
  - node tooling
  - browsers
  - data processing
  - compression and encryption
  - searching/indexing
Ok sure, top/htop is totally irrelevant now /s
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 16:13:50 GMT+0000 (Coordinated Universal Time) with Vercel.