Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-19-2013, 03:12 AM   #1
Registered: Sep 2012
Posts: 372

Rep: Reputation: 1
Determine which device to monitor in /proc/diskstats

/proc/diskstats for 2.6 kernels displays the number of sectors written to a sd? device. I never have more than 1 flash drive thus sdc1 and sdc are shown then sdd & sdd1, etc.
Is sdX a summation of all sdX# drives? From what I have seen so far they are nearly mirrors of each other tho some items are way different.
Can someone explain the purpose for the pairing?
Which one represents the true number of sectors written?
It would seem that sdX# would be representing the flash drive.

Last edited by waddles; 09-19-2013 at 03:20 AM.
Old 09-19-2013, 05:09 AM   #2
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
It would seem that sdX# would be representing the flash drive.
It seems to me,

that sdX# would be representing a partition of the flash drive
1 members found this post helpful.
Old 09-19-2013, 06:17 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,829

Rep: Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453
"man proc" has a entry for diskstats that directs you to
See the kernel source file Documentation/iostats.txt for further information.
If you don't have a local copy of the kernel source, see here for all the gory details.
2 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interpreting /proc/diskstats rajesht SUSE / openSUSE 8 02-25-2014 03:10 PM
Can we reset /proc/diskstats in linux sellerb5 Linux - General 1 09-14-2013 07:58 AM
Bug related to /proc/diskstats at 2.6.32? richa03 Linux - Server 1 07-30-2013 01:18 PM
/proc/diskstats and xinetd services vhcg Linux - Newbie 2 03-15-2008 02:11 AM
Linux /proc diskstats question benchmarkman Linux - Newbie 1 02-13-2006 04:13 PM

All times are GMT -5. The time now is 08:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration