4 ms·
that's a pretty awesome summary. to that i would add: * `iftop` that allows me to quickly check which network streams are hogging the machine (this is a little
by anarcat 11y ago
that's a pretty awesome summary. to that i would add:
* `iftop` that allows me to quickly check which network streams are hogging the machine (this is a little like sar -n DEV 1 but much more detailed!)
* `tcpdump -c 100 -vv`- poor man's alternative to iftop or systat if they're not available locally
* tail those logfiles, with systemd it's even easier with journald as all logfiles can be checked at once: `journalctl -xf -p notice | ccze -m ansi` (ccze colors the output, purely optional)
* probably more i am forgetting now
the great takeaways in the article for me are:
* pidstat: great to have an average, beats top for sure
* back to basics: hit dmesg, vmstat and iostat first, as you learned in the beginning! :)
- agentgt 11y agoI'll add to your list with htop. Its a little nicer than plain ole top.
- anarcat 11y agohtop is useful, but i find it doesn't add enough on top of top to justify changing my hand-wired reflexes to add that "h". it's often not installed everywhere either, so the top habit remains.
- STRML 11y agoAnd `glances` is pretty great for big-picture stuff, all-in-one. It's not as precise on CPU/memory as htop, but you get network bandwidth, disk I/O, disk usage and more.
- luckydude 11y agoNo love for dstat? Glances looks cool though, thanks for that one.
- anarcat 11y agoglances (which i just discovered recently) is pretty awesome, definitely something i'll try out more next time i need something similar. dstat i already knew about, somehow forgot it in the listing, definitely a must as well.
- ipozgaj 11y agoproblem with (h)top is that it doesn't catch short-lived processes, and it displays only the most basics stats. For more detailed perf analysis you will likely be better with something like atop
- baldfat 11y agoAlso like to add atop. I love the interface and usually is my first command I launch.
- acdha 11y agoIf you like iftop, iptraf is similar and goes deeper in the ability to dig into TCP details or confuse yourself with scads of BPF rules.
- anarcat 11y agoiptraf doesn't work on FreeBSD, unfortunately, but it is a great tool.