What is this? Every day I read a lot of articles about computer programming and languages, infrastructures, new technologies, quick tips, trends, architectures and so on. I read them immediately or put in my “read later” list. All my readings helped me to grow and learn new things…so why don’t share them with my readers? For this reason, I decided to publish and share, every monday, a list of the links I came accross during the past days.
Linux quick tips & commands for performance monitoring
Here is my list of commands that I use to understand why a Linux machine is hanging, running slow or having unexpected behavior
Process analysis, load average, wa, cpu/ram used, disk usage
top
htop
iotop
Process tree, uninterruptible sleep process (D)
ps auxf –> D state processes are in uninterruptible sleep
ps axl –> under the WCHAN column you can see on which kernel function uninterruptible sleep processes are stuck
Stats over time
vmstat 1
iostat 1
Network
netstat
ss -l (network queue length)
Tracing
lsof
strace -e trace=open <application> <— trace an application
strace -e trace=open -p <pid> <— trace a pid
Ultra fast http server for local file sharing
python -m http.server 7777
warning: this command shares the content of the current directory via the choosen port (in this case 7777) to the WHOLE WORLD. Use carefully and remember to close it when you have finished
Bash parameter expansion in depth – link
An useful article that explains in depth how parameter expansion works in bash
That’s all for today’s LombaXMonday, if you liked it, have any question or want to let me know that this article sucks, don’t hesitate to add a comment 🙂