Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Linux và các thủ thực nhỏ (http://quantrinet.com/forum/forumdisplay.php?f=430)
-   -   Tìm hiểu lệnh /proc/diskstats (http://quantrinet.com/forum/showthread.php?t=9356)

emailhoc 31-10-2012 09:55 AM

Tìm hiểu lệnh /proc/diskstats
 
/proc/diskstats line format

Each line inside /proc/diskstats is having the following info format:
eg.
for sda (Full disk)
cat /proc/diskstats | grep 'sda '
8 0 sda 2461810 61427 148062742 6482992 660009 1544934 67900384 45642376 0 7162961 52128751
Meaning:
Field 1 -- # of reads issued
Field 2 -- # of reads merged
Field 3 -- # of sectors read
Field 4 -- # of milliseconds spent reading
Field 5 -- # of writes completed
Field 6 -- # of writes merged
Field 7 -- # of sectors written
Field 8 -- # of milliseconds spent writing
Field 9 -- # of I/Os currently in progress
Field 10 -- # of milliseconds spent doing I/Os
Field 11 -- weighted # of milliseconds spent doing I/Os
or for hda1(Partition only)
cat /proc/diskstats | grep 'hda1 '
3 1 hda1 25838 525266 1505217 12041736
Meaning:
Field 1 -- # of reads issued - This is the total number of reads issued to this partition.
Field 2 -- # of sectors read - This is the total number of sectors requested to be read from this partition.
Field 3 -- # of writes issued - This is the total number of writes issued to this partition.
Field 4 -- # of sectors written - This is the total number of sectors requested to be written to this partition


http://tipstricks.itmatrix.eu/wp-con...ebarbottom.gif


Bây giờ là 03:33 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.