LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-19-2013, 02:12 AM   #1
waddles
Member
 
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 02:20 AM.
 
Old 09-19-2013, 04:09 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,694
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
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, 05:17 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,361

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
"man proc" has a entry for diskstats that directs you to
Quote:
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.
  


Reply


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 02:10 PM
Can we reset /proc/diskstats in linux sellerb5 Linux - General 1 09-14-2013 06:58 AM
Bug related to /proc/diskstats at 2.6.32? richa03 Linux - Server 1 07-30-2013 12:18 PM
/proc/diskstats and xinetd services vhcg Linux - Newbie 2 03-15-2008 01:11 AM
Linux /proc diskstats question benchmarkman Linux - Newbie 1 02-13-2006 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:07 AM.

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