LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-16-2014, 03:42 AM   #1
915086731
Member
 
Registered: Apr 2010
Posts: 144
Blog Entries: 6

Rep: Reputation: 2
Ask for the explanation of types of RAM on disk drive controllers


I have read a document which tells me the following 4 things are done by the RAM embedded on disk driver controller. But I don't know what's difference between buffer and cache. Thanks!

RAM on disk drive controllers
1 firmware
2 speed matching buffer
3 prefetching buffer
4 cache
 
Old 04-16-2014, 08:31 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Firmware is usually in flash. Some old systems stored it in reserved areas on the disk.

Prefetch buffer = read cache = RAM. This is memory used to satisfy reads more quickly than having to read from the disk.

Write cache in a high end system is mirrored and non-volatile. It can be battery+RAM or MRAM. It is used to hold write data safely until it can be written to disk.

Both read cache and write cache are used to match the speed of the host connection to the speed of the disk(s).
 
Old 04-16-2014, 09:50 AM   #3
915086731
Member
 
Registered: Apr 2010
Posts: 144

Original Poster
Blog Entries: 6

Rep: Reputation: 2
Quote:
Write cache in a high end system is mirrored and non-volatile. It can be battery+RAM or MRAM.
Thanks for your reply.

Before you replying, I suppose the write cache embedded in disk controller is also used for read cache and the disk will schedule the capacity of cache to satisfy the requirements of reading and writing dynamically . If the disk is off power suddenly, the date in the RAM transferred from bus will disappear.
What you mean seems that the write cache and the read cache exists in two RAM separately. If the disk is off power suddenly, the data in write cache will not disappear.
So which viewpoint is right ? thanks!

Last edited by 915086731; 04-16-2014 at 09:52 AM.
 
Old 04-16-2014, 10:56 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
RAID controllers either separate read cache and write cache or else provide battery backup for both. On the RAID controllers that I've used, if the batteries expire then write cache is disabled and the controllers switch to write-through mode so that no write data is lost once it is written to the controller. In write-through mode, the write is not completed until the data is on disk.
 
Old 04-16-2014, 08:33 PM   #5
915086731
Member
 
Registered: Apr 2010
Posts: 144

Original Poster
Blog Entries: 6

Rep: Reputation: 2
Sorry, I don't mean the RAID controllers, but the controller embedded in disk which is the circuit inner the disk.
 
  


Reply

Tags
buffer, cache, controller, disk, ram



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
[SOLVED] Error in Disk Controllers unist Linux - Newbie 4 04-21-2011 12:14 PM
Ram Disk to enhance flash drive's life; What files do I need to worry about? e1000 Linux - Server 2 04-13-2008 02:02 AM
Explanation of Group Types in Samba/Linux/Windows des_a Linux - Server 1 01-02-2008 04:03 PM
how differentiate two Disk SCSI on 2 controllers? xcore_on Linux - Newbie 5 04-02-2006 04:36 PM
Ram types Ryan450 Linux - Hardware 11 10-16-2004 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:17 PM.

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