The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
identify the unix process performing high disk i/o reads and writes avsswamy UNIX for Advanced & Expert Users 6 01-14-2009 12:32 PM
identify the unix processes performing high disk i/o reads and writes avsswamy Shell Programming and Scripting 0 01-09-2009 10:45 PM
determine the physical size of the hard disk hoffies HP-UX 4 11-15-2007 05:08 AM
sh script that reads/writes based upon contents of a file rdudejr Shell Programming and Scripting 3 07-12-2006 10:38 AM
vmstat -P (physical memory) gfhgfnhhn UNIX for Advanced & Expert Users 0 03-21-2006 08:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-11-2009
jake24 jake24 is offline
Registered User
  
 

Join Date: May 2009
Posts: 7
Question Does vmstat -d give a count of actual physical writes/reads done to/from hard disk?

Hi,

I am trying to find the reliability of 'vmstat -d' for showing the actual physical writes on sectors on hard disk.

Can anyone please tell me if the numbers in the "sectors" field under "read" or "write" headers show a count of the actual write commands sent to disk from the low level driver?

More precisely, from this number, say n, can we be sure that n sectors on disk have been physically written to?
  #2 (permalink)  
Old 05-11-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,884
Well, if you're using Linux, you can look at the sysstat code, which probably does some kind of ioctl on the raw device, and so you could look at the Linux kernel, which might end up telling you that it counts the number of blocks sent to the IO controller for writing; whether or not that means the device actually wrote those blocks, I don't think one can say.

Now it could be that the disk and its controller keep track of a statistic and it's possible to get that value, but I doubt this is what sa/sysstat relies on. Further, I've written SCSI drivers before, and if this feature exists nowadays, it's not in the standard, meaning it's on a device-by-device basis.
  #3 (permalink)  
Old 05-13-2009
jake24 jake24 is offline
Registered User
  
 

Join Date: May 2009
Posts: 7
I used to think that whatever blocks the block layer sends down to the device driver to write actually does get written, even if the 2 writes are for the same LBA. (By calling a sync between 2 writes to the same area on the disk). My doubt is that does monmitoring IO stats from iostat, vmstat, proc/diskstats or /sys/sda/stat, give a count of the num ber of blocks sent to the disk for write?
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0