raid write-bakc write-through的解释

本文深入探讨了RAID控制器中缓存技术的作用,包括其作为数据缓冲区的功能及在写入操作中的两种主要模式:Write Through 和 Write Back。解释了每种模式的特点、优势和潜在风险,特别是电池备份功能在意外断电情况下的数据保护作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本文转自http://www.osslab.org.tw/Storage/Enterprise/SAS%E8%88%87RAID/RAID_Technology_Articles/Write_Cache_Function


Cache is the memory that is installed in a RAID controller and is used as a data buffer for the RAID controller
to read and write data to the HDD units. Cache is used as a work area for parity generation processing.


Write Through
wt.gif
When write processing is requested from software such as OS, data is written to both the cache and the HDD on the RAID controller in Write Through mode. Since software advances to the next processing after completion of HDD write processing, in general, the
access performance deteriorates due to Write Back. However, since the write request from the software reflects in the HDD immediately, the advantage of this mode is the low risk of losing data at the occurrence of an unexpected accident such as a temporary power failure. 

Write Back
wb.gif
When write processing is requested from software such as OS, in Write Back mode, data is written to the cache in the RAID controller and to the HDD by the RAID controller asynchronously based on the data on the cache.
Since completion notification is issued to the software when data is written to the cache, the software can continue processing without having to wait for completion of the HDD write processing.
In general, access performance is improved by Write Through. However, since the contents of the cache may not reflect in the HDD at the occurrence of an unexpected accident such as a temporary power failure, the data may be lost.

Auto Select
For writing data request, Auto Select operates in Write Back Mode by using cache memory, however, when battery is malfunction or on charging, changes the mode to Write Through Mode. Auto Select is recommended for data protection. This function is not available in some RAID controllers .

Battery backup 
This function stores data in cache during a period after setting of a battery in the RAID controller and before the power supply to the server (within the range of “cache data retention period”). This function prevents loss of data caused by an unexpected accident such as a temporary power failure in the system that is running in Write Back mode.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值