All times are UTC - 5 hours [ DST ]


Forum rules


Please do not post questions about data recovery cases here (use this forum instead). This forum is for topics on finding new ways to recover data. Accessing firmware, writing programs, reading bits off the platter, recovering data from dust...



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: HDDs and buffers
PostPosted: October 22nd, 2011, 12:47 
Offline

Joined: October 22nd, 2011, 12:44
Posts: 1
Location: Canada
Hey,

I have a noob question, so please bare with me...
HDDs are random access, but there are still HDDs with controllers that come with buffers... how do these controllers predict what blocks of memory to write into the buffer?

Thanks
J


Top
 Profile  
 
 Post subject: Re: HDDs and buffers
PostPosted: October 22nd, 2011, 18:42 
Offline
User avatar

Joined: September 29th, 2005, 12:02
Posts: 3564
Location: Chicago
There are two types of memory buffers on HDDs
All HDDs have first type - RAM buffer. Modern HDDs have RAM buffer up to 64MB. This buffer used for reading and writing. The caching algorithm is very simple: drive uses look ahead feature when reads (reads some sectors ahead of current sector) and collects writing requests from host if buffer has free space when writes. SATA HDDs also support queuing where host can tag each request to know when it's done and also can set a priority for request. Data in RAM buffer will be lost if there is no power applied to a drive
Some HDDs have additional type of a buffer based on flash memory - these HDDs called hybrid HDDs. Flash buffer can be several GBs in size. There are several algorithms which a drive might use to store data to the flash buffer. The simplest would be calculating number of requests for particular sector and setting priority. Sectors with lowest priority will leave the flash buffer if there is no more free space in the buffer. Data in flash will be stored even w/o power

_________________
SAN, NAS, RAID, Server, and HDD Data Recovery.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group