• Follow on Twitter
  • Subscribe by RSS
  • Raid Recovery
  • Flash Data Recovery
  • Hitachi Data Recovery
  • Seagate data recovery
  • Samsung Data Recovery
  • WD Data Recovery
 
Data Recovery Salon-No.1 Data Recovery Magazine
 
  • Store
  • D.R Asia & Oceania
    • Data Recovery Afghanistan
    • Data Recovery Armenia
    • Data Recovery Australia
    • Data Recovery Azerbaijan
    • Data Recovery Bahrain
    • Data Recovery Bangladesh
    • Data Recovery Bhutan
    • Data Recovery Brunei
    • Data Recovery Burma
    • Data Recovery Cambodia
    • Data Recovery China
    • Data Recovery Fiji
    • Data Recovery French Polynesia
    • Data Recovery Georgia
    • Data Recovery Hong Kong
    • Data Recovery India
    • Data Recovery Indonesia
    • Data Recovery Iran
    • Data Recovery Iraq
    • Data Recovery Israel
    • Data Recovery Japan
    • Data Recovery Jordan
    • Data Recovery Kazakhstan
    • Data Recovery Kiribati
    • Data Recovery Kuwait
    • Data Recovery Kyrgyzstan
    • Data Recovery Laos
    • Data Recovery Lebanon
    • Data Recovery Malaysia
    • Data Recovery Maldives
    • Data Recovery Marshall Islands
    • Data Recovery Micronesia
    • Data Recovery Nauru
    • Data Recovery Nepal
    • Data Recovery New Zealand
    • Data Recovery North Korea
    • Data Recovery Oman
    • Data Recovery Pakistan
    • Data Recovery Philippines
    • Data Recovery Saudi Arabia
    • Data recovery Thailand
  • Data Recovery Africa
    • Data Recovery Algeria
    • Data Recovery Angola
    • Data Recovery Benin
    • Data Recovery Botswana
    • Data Recovery Burundi
    • Data Recovery Cameroon
    • Data Recovery Burkina Faso
    • Data Recovery Cape Verde
    • Data Recovery Central African Republic
    • Data Recovery Chad
    • Data Recovery Comoros
    • Data Recovery Democratic Republic of the Congo
    • Data Recovery Djibouti
    • Data Recovery Egypt
    • Data Recovery Ethiopia
    • Data Recovery Gabon
    • Data Recovery Gambia
    • Data Recovery Ghana
    • Data Recovery Guinea
    • Data Recovery Ivory Coast
    • Data Recovery Kenya
    • Data Recovery Lesotho
    • Data Recovery Liberia
    • Data Recovery Malawi
    • Data Recovery Mali
    • Data Recovery Mauritania
    • Data Recovery Mauritius
    • Data Recovery Mayotte
    • Data Recovery Morocco
    • Data Recovery Mozambique
    • Data Recovery Namibia
    • Data Recovery Niger
    • Data Recovery Nigeria
    • Data Recovery South Africa
    • Data recovery Uganda
  • Data Recovery America
    • Data Recovery American Samoa
    • Data Recovery Anguilla
    • Data Recovery Antigua and Barbuda
    • Data Recovery Argentina
    • Data Recovery Aruba
    • Data Recovery Bahamas
    • Data Recovery Barbados
    • Data Recovery Belize
    • Data Recovery Bermuda
    • Data Recovery Bolivia
    • Data Recovery Brazil
    • Data Recovery Canada
    • Data Recovery Cayman Islands
    • Data Recovery Chile
    • Data Recovery Colombia
    • Data Recovery Costa Rica
    • Data Recovery Cuba
    • Data Recovery Dominica
    • Data Recovery Ecuador
    • Data Recovery El Salvador
    • Data Recovery Grenada
    • Data Recovery Guam
    • Data Recovery Guatemala
    • Data Recovery Guyana
    • Data Recovery Haiti
    • Data Recovery Honduras
    • Data Recovery Jamaica
    • Data Recovery Mexico
    • Data Recovery Montserrat
    • Data Recovery Nicaragua
    • Data Recovery Panama
    • Data Recovery USA
    • Recuperación de Datos en Peru
  • Data Recovery Europe
    • Data Recovery Albania
    • Data Recovery Andorra
    • Data Recovery Austria
    • Data Recovery Belarus
    • Data recovery Belgium
    • Data Recovery BOSNIA-HERCEGOVINA
    • Data Recovery Bulgaria
    • Data Recovery Croatia
    • Data Recovery Czech Republic
    • Data Recovery Denmark
    • Data Recovery Falkland Islands
    • Data Recovery Finland
    • Data recovery France
    • Data Recovery Germany
    • Data Recovery Greece
    • Data Recovery Greenland
    • Data Recovery Hungary
    • Data Recovery Iceland
    • Data Recovery Ireland
    • Data Recovery Italy
    • Data Recovery Kosovo
    • Data Recovery Latvia
    • Data Recovery Liechtenstein
    • Data Recovery Lithuania
    • Data Recovery Luxembourg
    • Data Recovery Macedonia
    • Data Recovery Malta
    • Data Recovery Moldova
    • Data Recovery Monaco
    • Data Recovery Montenegro
    • Data Recovery Netherlands
    • Data Recovery Norway
    • Data Recovery Poland
    • Data Recovery Portugal
    • Data Recovery Romania
    • Data Recovery Slovenia
    • Data Recovery Spain
    • Data Recovery Turkey
    • Data Recovery UK
  • Data Recovery Glossary
    • Vocabulary A-E
      • Air Circulation and Air Filtration Of Hard Disk
      • Base Casting and Top Cover Of Hard Disk
      • Binary vs. Decimal Capacity Measurements Of Hard Disk
      • Bios General Knowledge
      • BIOS Translation Modes
      • Bypassing bios
      • Cache and Cache Circuitry of Hard Disk drive
      • Clean Room
      • Click of death
      • Clusters
      • Data Encoding and Decoding Of Hard Disk
        • Extended PRML (EPRML)
        • Frequency Modulation (FM)
        • Partial Response, Maximum Likelihood (PRML)
        • Run Length Limited (RLL)
        • Technical Requirements for Encoding and Decoding
      • Defect Mapping and Spare Sectoring Of Hard Disk
      • Drive Rails and Mounting Kits Of Hard Disk
      • IDE/ATA Disk BIOS Settings
    • Vocabulary F-J
      • 2.5″ form factor of hard disk drives
      • 3.5″ form factor of hard disk drives
      • 5.25″ Form Factor Of Hard Disk Drive
      • FDE/BDE Technology
      • Firmware
      • Floppy Disk Drives / Floppy Disks
      • Flying height /Floating height /Head gap
      • Form Factor Of CompactFlash (CF)
      • Form Factor Of PC Card (PCMCIA)
      • Form Factors of hard disk drive
      • Formatted and Unformatted Capacity
      • Geometry Specifications and Translation
        • BIOS Geometry Translation
        • logical geometry
        • physical geometry
      • Hard Disk Handling
      • Hard-Disk Drives
      • Head Actuator Of Hard disk drive
      • Head arms of hard disk drive
      • Head Crash
      • Head Parking and the Landing Zone
      • Head sliders of Hard disk drive
      • High-level formatting
      • Interleaving Of Hard Disk
      • Low-level formatting
      • Two Formatting Steps Of hard disk
    • Vocabulary K-P
      • Low-Level Format, Zero-Fill and Diagnostic Utilities
      • MBR-Master Boot Record
      • Microdrives
      • Orientation and Mounting of Hard Disk
      • Low-Level Format, Zero-Fill and Diagnostic Utilities
      • MBR-Master Boot Record
      • Microdrives
      • Orientation and Mounting of Hard Disk
      • Parking of RW Head
      • PCB
      • Power-on self-test (POST)
      • Preamplifier
      • Primary, Extended and Logical Partitions
    • Vocabulary R-Z
      • Spindle Motor Power Usage at Spin-Up
      • RAID
      • RAID 0
      • RAID 01
      • RAID 1
      • RAID 10
      • RAID 3
      • RAID 4
      • RAID 5
      • RAID 6
      • Read/Write Head Technologies
      • Removable hard disk drive tray
      • Retail and OEM Packaging Of Hard Disk Drive
      • RPM
      • S.M.A.R.T for hard drives
      • Servo Techniques and Operation
      • SPE barrier: Limit of Technology in Hard Disks
      • Spindle motor
      • Spindle Speed of Hard Disk Spindle Motor
      • Thermal Recalibration
      • Tracks in Hard Disks
      • Tracks, Cylinders and Sectors
        • Track Density and Areal Density
        • Tracks and Cylinders
      • wear leveling
      • Write precompensation
      • Zoned bit recording
  • Links
    • Hard Drive Repair Tool
    • How to advertise with Data Recovery Salon?

Cache and Cache Circuitry of Hard Disk drive

Hard Disk Cache Circuitry and Operation

All modern hard disks contain an integrated cache, also often called a buffer. The purpose of this cache is not dissimilar to other caches used in the PC , even though it is not normally thought of as part of the regular PC cache hierarchy. The function of cache is to act as a buffer between a relatively fast device and a relatively slow one. For hard disks, the cache is used to hold the results of recent reads from the disk, and also to “pre-fetch” information that is likely to be requested in the near future, for example, the sector or sectors immediately after the one just requested.

The use of cache improves performance of any hard disk, by reducing the number of physical accesses to the disk on repeated reads and allowing data to stream from the disk uninterrupted when the bus is busy. Most modern hard disks have between 512 KiB and 2 MiB of internal cache memory, although some high-performance SCSI drives have as much as 16 MiB, more than many whole PCs have!

Note: When someone speaks generically about a “disk cache”, they are usually not referring to this small memory area inside the hard disk, but rather to a cache of system memory set aside to buffer accesses to the disk system.

Hard Disk Cache Size

In the last couple of years, hard disk manufacturers have dramatically increased the size of the hard disk buffers in their products. Even as recently as the late 1990s, 256 to 512  kiB was common on consumer drives, and it was not unusual to find only 512 kiB buffers on even some SCSI units (though many had from 1 MiB to 4 MiB). Today, 2 MiB buffers are common on retail IDE/ATA drives, and some SCSI drives are now available with a whopping 16 MiB!

I believe there are two main reasons for this dramatic increase in buffer sizes. The first is that memory prices have dropped precipitously over the last few years. With the cost of memory only about $1 per MiB today, it doesn’t cost much to increase the amount the manufacturers put into their drives. The second is related to marketing: hard disk purchasers have a perception that doubling or quadrupling the size of the buffer will have a great impact on the performance of the hardware.

cache-chip-from-a-seagate-barracuda

The cache chip from a Seagate Barracuda hard disk logic board. This chip is the entire cache: it’s a 4 Mib chip,
which is 512 kiB, the size of the cache on this drive. Some caches use more than one chip, especially the larger ones.

The size of the disk’s cache is important to its overall impact in improving the performance of the system, for the same reason that adding system memory will improve system performance, and why increasing the system cache will improve performance as well. However, the attention that the size of the hard disk buffer is getting today is largely unwarranted. It has become yet another “magic number” of the hardware world that is tossed around too loosely and overemphasized by salespeople. In fact, a benchmarking comparison done by StorageReview.com showed very little performance difference between 512 kiB and 1 MiB buffer versions of the same Maxtor hard drive. See this section for more on this performance metric.

So, where does this leave us? Basically, with the realization that the size of the buffer is important only to an extent, and that only large differences (4 MiB vs. 512 kiB) are likely to have a significant impact on performance. Also remember that the size of the drive’s internal buffer will be small on most systems compared to the amount of system memory set aside by the operating system for its disk cache. These two caches, the one inside the drive and the one the operating system uses to avoid having to deal with the drive at all, perform a similar function, and really work together to improve performance.

Hard Disk Write Caching

Caching reads from the hard disk and caching writes to the hard disk are similar in some ways, but very different in others. They are the same in their overall objective: to decouple the fast PC from the slow mechanics of the hard disk. The key difference is that a write involves a change to the hard disk, while a read does not.

With no write caching, every write to the hard disk involves a performance hit while the system waits for the hard disk to access the correct location on the hard disk and write the data. As mentioned in the general discussion of the cache circuitry and operation, this takes at least 10 milliseconds on most drives, which is a long time in the computer world and really slows down performance as the system waits for the hard disk. This mode of operation is called write-through caching. (The contents of the area written actually are put into the cache in case it needs to be read again later, but the write to the disk always occurs at the same time.)

When write caching is enabled, when the system sends a write to the hard disk, the logic circuit records the write in its much faster cache, and then immediately sends back an acknowledgement to the operating system saying, in essence, “all done!” The rest of the system can then proceed on its merry way without having to sit around waiting for the actuator to position and the disk to spin, and so on. This is called write-back caching, because the data is stored in the cache and only “written back” to the platters later on.

Write-back functionality of course improves performance. There’s a catch however. The drive sends back saying “all done” when it really isn’t done–the data isn’t on the disk at all, it’s only in the cache. The hard disk’s logic circuits begin to write the data to the disk, but of course this takes some time. The hard disk is using a variant of that old “the check is in the mail” trick you might hear when you call someone to remind them of that loan they were supposed to pay back three weeks ago.

Now, this isn’t really a problem most of the time, as long as the power stays on. Since cache memory is volatile, if the power goes out, its contents are lost. If there were any pending writes in the cache that were not written to the disk yet, they are gone forever. Worse, the rest of the system has no way to know this, because when it is told by the hard disk “all done”, it can’t really know what that means. So not only is some data lost, the system doesn’t even know which data, or even that it happened. The end result can be file consistency problems, operating system corruption, and so on. (Of course, this problem doesn’t affect cached reads at all. They can be discarded at any time.)

Due to this risk, in some situations write caching is not used at all. This is especially true for applications where high data integrity is critical. Due to the improvement in performance that write caching offers, however, it is increasingly being used despite the risk, and the risk is being mitigated through the use of additional technology. The most common technique is simply ensuring that the power does not go off! In high-end server environments, with their uninterruptible power supplies and even redundant power supplies, having unfilled cached writes is much less of a concern. For added peace of mind, better drives that employ write caching have a “write flush” feature that tells the drive to immediately write to disk any pending writes in its cache. This is a command that would commonly be sent before the UPS batteries ran out if a power interruption was detected by the system, or just before the system was to be shut down for any other reason.
Data recovery Salon welcomes your comments and share with us your ideas, suggestions and experience. Data recovery salon is dedicated in sharing the most useful data recovery information with our users and only if you are good at data recovery or related knowledge, please kindly drop us an email and we will publish your article here. We need to make data recovery Salon to be the most professional and free data recovery E-book online

 
 

No comments

Be the first one to leave a comment.

Post a Comment

Click here to cancel reply.

You must be logged in to post a comment.

 

Data Recovery Resources

Reliable Data Recovery Service Canada

reliable-canada-data-recovery-services

 
HDD Recovery Services

Suite B101, 666 Kirkwood Ave, Ottawa, ON, K1Z 5X9, Canada
Tel: 1 (613) 366-4232

2012-2013 Top Rated Western Digital HDD Repair Tool



2012 Latest WD HDD Repair Hardware;
Repair Damaged Western Digital Hard Drives;
Repair Firmware Corruptions;
Unlock WD Hard Drives;
Beating All Other Similar HDD Repair Tools;
Free Software Upgrade and Technique Support

View More Details and Order One

View By Category

  • 4KB sectors
  • ACE Laboratory News
  • apple data recovery
  • Apple product tips
  • D.R. Salon Express
  • Data recoveries from flash and SSD
  • Data Recovery Basics
  • Data recovery companies
  • Data Recovery Jobs
  • Data recovery online courses
  • Data Recovery Services
  • Data recovery software
  • data recovery solutions
  • Data Recovery Tips
  • Data Recovery Tools
  • Data recovery training
  • Data Security
  • disaster data recovery
  • Email recovery
  • Featured Slider
  • Firmware Download Center
  • Flash Drive
  • Forensic Science
  • Fujitsu HDD Repair & Recovery
  • Hard Drive PCB
  • Hitachi Data Recovery
  • iPhone data recovery tools
  • Maxtor Data Recovery
  • Most Popular Articles
  • NAND flash recovery
  • Office and computer help
  • RAID Recovery
  • SalvationDATA news
  • Samsung Data Recovery
  • Seagate data recovery
  • server data recovery
  • Single-phase voltage, frequency and plug/sockets Look up
  • SSD Data Recovery
  • SSD Reviews & OEMs
  • Tariff Lookup Worldwide
  • Toshiba Data Recovery
  • Western Digital Data Recovery
  • Featured
  • Recent
  • Comments
  • Tags
  • Industry’s First Advanced USB3.0 Data Recovery Equipment

    Industry’s First Advanced USB3.0 Data Recovery Equipment

    15 May, 2013

     
  • Handsome Business Prospects Linked to Data Recovery equipment

    Handsome Business Prospects Linked to Data Recovery equipment

    15 May, 2013

     
  • The Two New Data Recovery Tools This Year Begin To Win Their Popularity

    The Two New Data Recovery Tools This Year Begin To Win Their Popularity

    28 Nov, 2012

     
  • Repairs or Recovers Undected WD Damaged HDD by DFL-WDII

    Repairs or Recovers Undected WD Damaged HDD by DFL-WDII

    28 Aug, 2012

     
  • Repair Seagate 7200.12 HDD Sector Access Interruptions by DFL-DE

    Repair Seagate 7200.12 HDD Sector Access Interruptions by DFL-DE

    28 Aug, 2012

     
  • Industry’s First Advanced USB3.0 Data Recovery Equipment

    Industry’s First Advanced USB3.0 Data Recovery Equipment

    15 May, 2013

     
  • Handsome Business Prospects Linked to Data Recovery equipment

    Handsome Business Prospects Linked to Data Recovery equipment

    15 May, 2013

     
  • The Two New Data Recovery Tools This Year Begin To Win Their Popularity

    The Two New Data Recovery Tools This Year Begin To Win Their Popularity

    28 Nov, 2012

     
  • Repairs or Recovers Undected WD Damaged HDD by DFL-WDII

    Repairs or Recovers Undected WD Damaged HDD by DFL-WDII

    28 Aug, 2012

     
  • Repair Seagate 7200.12 HDD Sector Access Interruptions by DFL-DE

    Repair Seagate 7200.12 HDD Sector Access Interruptions by DFL-DE

    28 Aug, 2012

     
  • sebeanhsiung on: How to connect and recover USB-only western digital drives with HD Doctor suite

     
     
  • laptop service in chennai on: How To Fix Damaged ATA Module For WD Black I Series

     
     
  • WD HATER on: How to connect and recover USB-only western digital drives with HD Doctor suite

     
     
  • ahmed on: Retail and OEM Packaging Of Hard Disk Drive

     
     
  • Data Recovery Salon on: World's First Advanced Data Recovery Training Courses In Europe Are Available Now

     
     
Add new tag bad sectors Computer Forensics data backup data loss Data recoveries from flash and SSD Data recovery Data Recovery Jobs Data Recovery Salon Data Recovery Services Data recovery software data recovery tips Data recovery tool Data Recovery Tools Data recovery training Firmware hdd repair hdd repair tools logical data recovery physical data recovery RAID Recovery SalvationDATA salvationdata review Seagate Seagate data recovery seagate hdd repair SSD SSD data recovery wd hdd repair Western Digital
 
 
 
 

Recents Posts

Industry’s First Advanced USB3.0 Data Recovery Equipment

May 15, 2013 1:52 AM / no comments

 

Handsome Business Prospects Linked to Data Recovery equipment

May 15, 2013 1:10 AM / no comments

 

The Two New Data Recovery Tools This Year Begin To Win Their Popularity

November 28, 2012 11:08 AM / no comments

 
 

Tags

Add new tag bad sectors Clean room Computer Forensics data backup data loss Data recoveries from flash and SSD Data recovery data recovery company Data recovery engineer Data recovery equipment Data Recovery Jobs Data Recovery Salon Data Recovery Services Data recovery software data recovery tips Data recovery tool Data Recovery Tools Data recovery training Data Security FAT Firmware free data recovery software HD Doctor For WD hdd repair hdd repair tools Hitachi Data Recovery how to fix logical data recovery NAND NTFS P-list physical data recovery plug RAID Recovery SalvationDATA salvationdata review Samsung Data Recovery Seagate Seagate data recovery seagate hdd repair SSD SSD data recovery wd hdd repair Western Digital

Data Recovery Links

  • Hard Drive Data Recovery Canada
  • DataCent Data Recovery
  • Fujitsu Global
  • HDD Repair Tool
  • Hitachi Global
  • Maxtor Hard Drives
  • PC Guide
  • Samsung Hard Drives
  • Seagate Technology
  • Storagere View
  • Toshiba Storage Device
  • Western Digital

Author

Sebean Hsiung
 
  • Raid Recovery
  • Flash Data Recovery
  • Hitachi Data Recovery
  • Seagate data recovery
  • Samsung Data Recovery
  • WD Data Recovery

Copyright © 2013 Data Recovery Salon-No.1 Data Recovery Magazine. All rights reserved.