LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2009, 12:13 PM   #1
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
Device Mapper stats wrong


I've just been looking into a support question for collectl in which someone was pointing out some inconsistencies with dm disks and the disks they're made up from. The bottom line is that /proc/diskstats appears to be wrong and I say this for 2 reasons. I know collectl is correctly reporting the data and I also confirmed that iostat reports the same numbers as collectl.

Consider the following data snapshot while writing a large file to /tmp (and sorry about the formatting but I can't figure out how to make this show up in courier font unless of course it just doesn't do that in preview-post mode):


### RECORD 28 >>> poker <<< (1237222938.002) (Mon Mar 16 13:02:18 2009) ###
# DISK STATISTICS (/sec)
# <---------reads---------><---------writes---------><--------averages--------> Pct
#Name KBytes Merged IOs Size KBytes Merged IOs Size RWSize QLen Wait SvcTim Util
sda 0 0 0 0 38912 8000 76 512 512 144 1882 13 100
sdb 0 0 0 0 0 0 0 0 0 0 0 0 0
dm-0 0 0 0 0 32256 0 8064 4 4 18415 2270 0 100
dm-1 0 0 0 0 0 0 0 0 0 0 0 0 0
hda 0 0 0 0 0 0 0 0 0 0 0 0 0


All you really need to see in this snapshot is that sda wrote almost 39MB and dm-0 only reported about 32M. If anything I'd expect the dm numbers to be at least as big as any one disk, But what's more disturbing is the queue length of 18K is clearly bogus.

So I guess the question is should I trust any dm numbers? Doesn't feel like I should.

-mark
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is device mapper? ymmij Linux From Scratch 5 07-19-2009 05:27 PM
mkrescue Fatal: device-mapper: only linear boot device supported Molly Slackware 5 01-06-2009 04:35 PM
Is device-mapper necessary if you don't use LVM? raypen Linux - Software 1 06-23-2008 06:17 AM
device mapper / multipath creating extra device, won't let me talk to the one i want chakkerz Linux - Server 1 03-16-2008 05:52 PM
device-mapper: dm-linear: Device lookup failed tajo01 Linux - Kernel 1 05-18-2006 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:37 PM.

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