Something cool I learned about htop

So I have my own VPS where I get to play pretend-sysadmin after work and on weekends.

I typically use htop to view processes, cpu usage, memory … that sort of thing, but it wasn’t until I started dithering around in the settings section (just hit F2 while running htop) that I came across this screen (Look at the blue indicator)

What does it do?

Well, it splits your cpu-usage into 5 indicators instead of 3 … the critical one being the Yellow indicator which  shows how much time the cpu is spending waiting on Disk-io. An example of this is when a process sends a request to mysql, and the database has to use swap (hard drive instead of ram) to process the request.

The cool thing is that it updates the Avg CPU meter count as well so you can actually watch this number to see if you have disk io problems.
In this case, it turned out that I did. I had to use two other tools called pidstat and iotop to figure out what my problem was.

Turns out I hadn’t allocated enough memory to Thinking Sphinx and Mysql’s innodb_buffer_pool_size 

Catch Up!

But it is vital to remember that information — in the sense of raw data — is not knowledge, that knowledge is not wisdom, and that wisdom is not foresight. But information is the first essential step to all of these.

— Arthur C. Clarke As quoted in “Humanity will survive information deluge” in OneWorld South Asia (5 December 2003)

We now live in a knowledge economy, where information is rapidly becoming almost as vital (if not more) as actual assets. If you are not working at a place that puts this power in the hands of every single one of your employees/coworkers, then you are falling behind …

Catch up.