Linux display disk total statistics including time spent reading and writing data
Most Linux admins are not aware of hidden switch (undocumented switch) called -D. The -D option display a nice summery of disk I/O subsystem since boot time. Output includes total time spent reading and writing data, merged reads and merged writes (kernel disk i/o optimization technique) and other parameters.
vmstat command with -D option
Type the command at shell prompt:
vmstat -D
Output:
30 disks
8 partitions
13739406 total reads
3887474 merged reads
1180260353 read sectors
109630647 milli reading
118650080 writes
250115464 merged writes
2950543038 written sectors
2382220771 milli writing
0 inprogress IO
113832 milli spent IO
This is my local backup server hosted at local data center:
$ uptime
Output:
12:15:07 up 33 days, 9:15, 2 users, load average: 1.71, 1.49, 1.03
Since last 33 days my server spent total 1180260353 milliseconds reading disk. To get more detailed about disk I/O stats, use the -d option as described in previous article - How do I find out Linux Disk utilization?
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- How do I find out Linux Disk utilization?
- Keeping a log of daily network traffic for ADSL or dedicated remote Linux box
- Linux: How to see dual Core AMD or Intel CPU statistics
- How to keep a detailed audit trail of what’s being done on your Linux systems
- Linux Disk Benchmarking - IO Performance With fio Tool
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: disk i/o stats, disk utilization, hidden switch, optimization technique, option type, parameters, sectors, vmstat command



Recent Comments
Today ~ 13 Comments
Today ~ 9 Comments
Yesterday ~ 3 Comments
Yesterday ~ 1 Comment
Yesterday ~ 2 Comments