Recent Changes - Search:

Softwares

.

TweakingHardDiskPerformance

Testing disk performance

hdparm provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE device driver subsystem.

   # hdparm -tT /dev/hda

To tweak, you can use any of the following examples (or experiment yourself) which use /dev/hda as disk (substitute with your disk):

Tweaking hard disk performance

      Activate DMA:                       # hdparm -d 1 /dev/hda
      Activate Safe Performance Options:  # hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda

        -T    Perform timings of cache reads for benchmark and comparison pur-
              poses.   For  meaningful  results,  this  operation  should   be
              repeated  2-3  times  on  an otherwise 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.  If the -t  flag  is
              also specified, then a correction factor based on the outcome of
              -T will be incorporated into the  result  reported  for  the  -t
              operation.

       -t     Perform  timings  of  device  reads for benchmark and comparison
              purposes.  For meaningful  results,  this  operation  should  be
              repeated  2-3  times  on  an otherwise 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  mea-
              surement  is  an  indication  of  how fast the drive can sustain
              sequential data reads under Linux, without any filesystem  over-
              head.
Edit - History - Print - Recent Changes - Search
Page last modified on July 04, 2006, at 04:37 PM