LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2011, 05:20 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
Difference between buffered disk reads and cached reads?


I was analyzing the Disk read using hdparm utility.

This is what i got as a result.

Code:
# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:  108 MB in  3.04 seconds =  35.51 MB/sec
Code:
# hdparm -T /dev/sda

/dev/sda:
 Timing cached reads:   3496 MB in  1.99 seconds = 1756.56 MB/sec
I m not sure what does Cache read and buffered disk read mean.

Please share your hdparm output for comparison purpose.
 
Old 07-13-2011, 11:40 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
OK, here's what the manual page for hdparam sas:
Code:
       -t     Perform timings of device reads for benchmark and comparison purposes.   For
              meaningful results, this operation should be repeated 2-3 times on an other‐
              wise inactive system (no other active processes) with at least a  couple  of
              megabytes  of  free  memory.  This displays the speed of reading through the
              buffer cache to the disk without any prior caching of data.   This  measure‐
              ment  is  an  indication  of  how fast the drive can sustain sequential data
              reads under Linux, without any filesystem overhead.  To ensure accurate mea‐
              surements, the buffer cache is flushed during the processing of -t using the
              BLKFLSBUF ioctl.
and
Code:
       -T     Perform timings of cache reads for benchmark and comparison  purposes.   For
              meaningful results, this operation should be repeated 2-3 times on an other‐
              wise inactive system (no other active processes) with at least a  couple  of
              megabytes  of free memory.  This displays the speed of reading directly from
              the Linux buffer cache without disk access.  This measurement is essentially
              an  indication  of the throughput of the processor, cache, and memory of the
              system under test.
And you can take a look at http://linux.about.com/od/lsa_guide/a/gdelsa44.htm for some additional discussion.

Hope this helps some.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS is slow for non-cached NetApp reads JasonCzerak Linux - Networking 0 09-24-2008 02:23 PM
Ratio of Reads/Writes on disk erimar77 Linux - Server 2 08-22-2006 11:16 PM
floppy only reads first disk, if new disk is inserted data from first disk is shown. lakosked Debian 3 02-18-2006 08:44 PM
Very slow disk reads? - hdparm Ada Linux - General 4 09-13-2004 10:48 PM
shouldn't disk writes be slower than reads jwstric2 General 0 08-28-2004 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 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