Tag Archive
3D 3dprinting android ant BigData bitcoin Browsers C/C++ cryptocurrency CSS dd ddrescue dogecoin DOS editors find Games Git hadoop html html5 Java Linux litecoin node perl Postgres Programming Python scripting Shell SQL Swing TOTK Utilities utilization vi Video Web Web Design Wifi Windows Wordpress XML Zelda
Linux System utilization tools
I was asked about system utilization on Linux systems. I found thesystatset of tools which consist of: sar, sadf, mpstat, iostat, nfsiostat, cifsiostat, pidstat and sa tools.
I will talk about the iostat tool in this article and follow up about some of the other tools.
On Ubuntu or debian systems you can install this toolset with:
sudo apt-get install sysstat
Then you will have access to the iostat command. The command output from executing with no options is below:
# iostat Linux 2.6.32-33-generic (sumo) 09/01/2011 _i686_ (2 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 0.11 0.00 0.47 0.01 0.00 99.41 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 0.54 1.85 8.91 1611385 7740024
This displays the avg-cpu utilization and a device usage list with basic utilization.
Some options you can use are
Option | Explanation |
-c | Display CPU utilization only |
-d | Display Device utilization only |
-k | Display information in kilobytes |
-m | Display information in megabytes |
-t | Display time for each report |
-x | Display extended statistics |
One more way to use the iostat tool is to specify an interval and count to the command
iostat -d -x 10 5
This will display the output 5 more times with 10 seconds between each run.