Cache and Cache Circuitry buffer information memory area inside the hard disk SCSI drives hard disk interface hard disk actuator segments logic board hard disk platters

 

Data Recovery Software | Data Recovery Services | Software Development | Web Services | Data Recovery | Live Chat | iPod Restore | Sim Card Recovery

Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi

Cache and Cache Circuitry

The function of integrated cache (also often called a buffer) of a hard disk 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.

Thus 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. You should always keep it in mind that 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.

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 KB and 2 MB of internal cache memory even some high-performance SCSI drives have as much as 16 MB too.

The cache of a hard disk is important due to the sheer difference in the speeds of the hard disk and the hard disk interface. Finding a piece of data on the hard disk involves random positioning and incurs a penalty of milliseconds as the hard disk actuator is moved and the disk rotates around on the spindle. That is why hard disks have internal buffers.

The basic principle behind the operation of a simple cache is straightforward. Reading data from the hard disk is generally done in blocks of various sizes not just one 512-byte sector at a time. The cache is broken into segments or pieces each of which can contain one block of data.

Free Download Data Recovery
Windows Data Recovery Free Pen Drive Data Recovery Freeware Free Undelete Partition Free Partition Recovery
Undelete Software Free Undelete Files Recovery Data Restore Software Free File Recovery Utility
Free Memory Card Data Recovery Free File Recovery Tools Flash Drive Data Recovery Software iPod Restore Software

When a request is made for data from the hard disk, the cache circuitry is first queried to see if the data is present in any of the segments of the cache. If it is present, it is supplied to the logic board without access to the hard disk platters being necessary. If the data is not in the cache, it is read from the hard disk, supplied to the controller and then placed into the cache in the event that it gets asked for again.

Since the cache is limited in size, there are only so many pieces of data that can be held before the segments must be recycled. Typically the oldest piece of data is replaced with the newest one. This is called circular, first-in, first-out (FIFO) or wrap-around caching.

In an effort to improve performance, most hard disk manufacturers today have implemented enhancements to their cache management circuitry, particularly on high-end SCSI drives:

 

  • Adaptive Segmentation: Conventional caches are chopped into a number of equal sized segments. Since requests can be made for data blocks of different sizes, this can lead to some of the storage of the cache in some segments being left over and hence wasted. Many newer drives dynamically resize the segments based on how much space is required for each access, to ensure greater utilization. It can also change the number of segments. This is more complex to handle than fixed-size segments, and it can result in waste itself if the space is not managed properly.
  • Pre-Fetch: The cache logic of a drive, based on analyzing access and usage patterns of the drive, attempts to load into part of the cache data that has not been requested yet but that it anticipates will be requested soon. Usually, this means loading additional data beyond that which was just read from the disk, since it is statistically more likely to be requested next. When done correctly, this will improve performance to some degree.
  • User Control: High-end drives have implemented a set of commands that allows the user detailed control of the drive cache's operation. This includes letting the user enable or disable caching, set the size of segments, turn on or off adaptive segmentation and pre-fetch etc.

 

 

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22

Next page

 

Data recovery software

Windows Data Recovery Software Windows Data Recovery Software
iPod Data Recovery Software iPod Data Recovery Software
Memory Card Data Recovery Software Memory Card Data Recovery Software
Pen Drive Data Recovery Software Pen Drive Data Recovery Software
Digital Camera Data Recovery Software Digital Camera Data Recovery Software
Removable Media Data Recovery Software Removable Media Data Recovery Software
FAT Data Recovery Software

FAT Data Recovery Software

NTFS Data Recovery Software NTFS Data Recovery Software

Usb Data Recovery Free Software
File Recovery Utility
Data Retrieval Freeware
Deleted Pictures Recovery
Recover Files From Hard Drive
Free Data Recovery Services
Download Free Keylogger
Recover Deleted Data
Free Download File Recovery
Recover Deleted Files Windows
Free iPod Repair
Freeware Data Recovery Tools
Password Recovery
Recover Hard Drive Data Free
Memory Stick Recover Deleted Files
Recover Deleted SMS
USB Drive Data Recovery Services
Data Recovery Utility Freeware
Free Digital Camera Data Recovery

Data recovery books

Data recovery books

Data Recovery Book
BPB Publications,
New Delhi, India.
ISBN : 81-7656-922-4
Price : $ 69.00



Data Recovery Software

Data Recovery Software

iPod Restore

iPod Restore

Memory Stick Data Recovery

Memory Stick Data Recovery

Mobile Phone Data Recovery

Mobile Phone Data Recovery

USB Drive Data Recovery

USB Drive Data Recovery

Data Recovery Utility

Data Recovery Utility

Digital Camera Data Recovery

Digital Camera Data Recovery

Data Recovery Services

Data Recovery Services

Data Recovery

Data Recovery

Data Recovery Utilities

Data Recovery Utilities

File Recovery Software

File Recovery Software

Files Recovery

Files Recovery

iPod Data Recovery

iPod Data Recovery

Data Recovery Tools

Data Recovery Tools

© Copyright 2002-2005 DataDoctor.Biz

Benefits of online data recovery | Pen Drive Memory Stick Data Recovery Software | Memory Card Data Recovery Software | iPod Data Recovery Software | Digital Camera Data Recovery Software | Removable Media Data Recovery Software | Site Submission Services | Windows Data Recovery Software | FAT Data Recovery Software | NTFS Data Recovery Software | Data Recovery Training | Data Recovery Services | Data Recovery Education Material | Data Recovery Book | Custom Software Development | Offshore Software Development | Microsoft .NET Development | Java / J2EE Development | Wireless / Mobile Application Development | Database Solutions | Website Design | Website Development | Website Promotion | Mobile Website Design | Website Testing | Graphic Design | Data Recovery company India | Data Recovery Canada | Data Recovery United States | Data Recovery United Kingdom | Website Designer Canada | Website Designer United States | Website Designer United Kingdom | Website Designer Outsourcing

Home | Contact us | Downloads | Services | Resources | Terms and conditions | Site map