Calculating CPU usage – /proc/stat vs. top
blog.sealion.com