1---2title: 'Command(s) of the day'3date: '2009-03-13'4published_at: '2009-03-13T11:58:00.009+11:00'5tags: ['linux', 'performance testing', 'programming', 'sysadmin', 'unix']6author: 'Gavin Jackson'7excerpt: 'We were busy yesterday looking into some performance issues with our mail server - I was lucky enough to learn some new Linux commands (these all work on Ubuntu Intrepid, however iotop does not work o...'8updated_at: '2009-03-13T12:18:32.033+11:00'9legacy_url: 'http://www.gavinj.net/2009/03/commands-of-day.html'10---1112We were busy yesterday looking into some performance issues with our mail server - I was lucky enough to learn some new Linux commands (these all work on Ubuntu Intrepid, however iotop does not work on RHEL 5.2). iotop - allows you to see which processes are performing the most reads and writes to disk.1314[](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjchyb5-YOjePGfNNeJDbwrY2HYvjjjqUQTU0rS5FIO1eL9TLpckBb0cTqL7-xUX3E0Dy4c6G1TA8p8DBETnU9OIomn9hN_9tuxPwy3zzkzido9nrJX8IHMryw5VpFn8Os4HbEGyUYamkk/s1600-h/iotop.png)1516iptraf - allows you to see (in real time) who is talking to your box (sort of a lightweight ncurses version of ethereal).1718[](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX__Az6ZHWbYraciAeDKMsKkIeJX6LmvdHV_raF-GjRru-rGr_ZiNG0-wFAAtajKEDWpNuPUorRXnrFyuDF7KwNgyTR34EvUHjJFPppjhOjApl679-ibzprU01HNpE0b0_vBh23RWdBtI/s1600-h/iptraf.png)1920dstat - combines iostat, vmstat and ifstat into a sweet package that gives you a good idea of cpu, disk io and network traffic volumes on your hosts (colour coded so you can pick up trends).2122[](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqcSxjd-wkZ5LI2nlzR5lAV_FTgEX1hGyRkdRASDokz7IYB7c_k5bDN58U6asUrMTA9QuIrZjNV7Ape1qe9CjhtHgWH0YGzfLkSEDoccZBM39avagfGdf2WVbJcWTqJQQRw574XmLKjNg/s1600-h/dstat.png)232425