From 4748cc27ce896c0c5392c86295cf555cbe529e36 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Sat, 9 Jul 2016 21:43:36 +0530 Subject: [PATCH 1/3] iostat: Added some flags - Added basic command usage without any flags. - Removed the '-h' flag as it seems to be added implicitly by the cmd. - Added the interval parameter. - Added the '-m' flag. --- pages/linux/iostat.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pages/linux/iostat.md b/pages/linux/iostat.md index 30ee864dba..404ac1bcb0 100644 --- a/pages/linux/iostat.md +++ b/pages/linux/iostat.md @@ -1,19 +1,23 @@ # iostat -> Report stats for devices and partitions. +> Report statistics for devices and partitions. -- Display disk statistics with disk IDs in human readable format: +- Display a report of CPU and disk statistics since system startup: -`iostat -h` - -- Display disk statistics with disk names (including LVM) in human readable format: - -`iostat -Nh` +`iostat` - Display CPU statistics: `iostat -c` -- Display extended disk statistics with disk names: +- Display disk statistics with disk names (including LVM): -`iostat -xN` +`iostat -N` + +- Display extended disk statistics with disk names for device "sda": + +`iostat -xN {{sda}}` + +- Display incremental reports of CPU and disk statistics every "interval" second(s) with units converted to megabytes: + +`iostat -m {{interval}}` From bac0b9831f09e4b903365c36bdfa815e93952440 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Mon, 11 Jul 2016 10:38:53 +0530 Subject: [PATCH 2/3] Separated the -m flag --- pages/linux/iostat.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/linux/iostat.md b/pages/linux/iostat.md index 404ac1bcb0..9e8a4b3f66 100644 --- a/pages/linux/iostat.md +++ b/pages/linux/iostat.md @@ -6,6 +6,10 @@ `iostat` +- Display a report of CPU and disk statistics since system startup with units converted to megabytes: + +`iostat -m` + - Display CPU statistics: `iostat -c` @@ -18,6 +22,6 @@ `iostat -xN {{sda}}` -- Display incremental reports of CPU and disk statistics every "interval" second(s) with units converted to megabytes: +- Display incremental reports of CPU and disk statistics every "2" second(s): -`iostat -m {{interval}}` +`iostat {{2}}` From 98305b4ad8e35a2b8db7d2fdc938865ef6fecb2f Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Mon, 11 Jul 2016 21:07:30 +0530 Subject: [PATCH 3/3] Addressing minor comments --- pages/linux/iostat.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/linux/iostat.md b/pages/linux/iostat.md index 9e8a4b3f66..fca80e01ba 100644 --- a/pages/linux/iostat.md +++ b/pages/linux/iostat.md @@ -6,7 +6,7 @@ `iostat` -- Display a report of CPU and disk statistics since system startup with units converted to megabytes: +- Display a report of CPU and disk statistics with units converted to megabytes: `iostat -m` @@ -18,10 +18,10 @@ `iostat -N` -- Display extended disk statistics with disk names for device "sda": +- Display extended disk statistics with disk names for device sda: `iostat -xN {{sda}}` -- Display incremental reports of CPU and disk statistics every "2" second(s): +- Display incremental reports of CPU and disk statistics every 2 second(s): `iostat {{2}}`