Hacker News new | ask | show | jobs
by mahmoudimus 5035 days ago
First, this is cool! Good job!

Would you run this or would you run htop? I'm not sure when I'd use one over the other.

Maybe someone less dense than I knows more and can tell me what the differences are?

1 comments

htop (and by extension top) is for CPU / memory / load information only.

Normally to get network and disk stats I have to run a combination of dstat, iotop. A simple screenshot comparison: http://i.imgur.com/eQPuQ.png

OTOH htop takes up ~2MB per instance, while glances is taking up ~13MB. Glances also doesn't have the ability to sort by columns except by CPU/mem %. You can't kill browse or kill processes from the list either.

For anyone who doesn't know, htop actually does a fair bit more. For example, go to a process (arrow keys or "/" to search), then press "l" to show open files (with lsof) or press "s" to show a strace. You can also renice processes and send sigterm or other signals to them.