服务器主机上RAID Card的Write Caching Policy

在Cisco Server的DRAC中, 创建virtual drive时, 会看到下面的选项.

 image

那么Write back, write through, write back bad BBU之间的区别是什么呢?

 

Cisco官网解释如下:

=================

Write through

Data is written through the cache and to the physical drives. Performance is improved, because subsequent reads of that data can be satisfied from the cache.

 

Write back

Data is stored in the cache, and is only written to the physical drives when space in the cache is needed. Virtual drives requesting this policy fall back to Write Through caching when the BBU cannot guarantee the safety of the cache in the event of a power failure.

 

Write back bad BBU

With this policy, write caching remains Write Back even if the battery backup unit is defective or discharged.

 

Write back good BBU

LSI's term is "Write Back"

 

简单点说, write back bad BBU性能好, 但不安全, 因为BBU坏了, 一旦断点, 就会有cache里的没被写到盘上的数据丢失.

write through安全, 但写性能不好, 因为要cache和盘上都要写, 写到盘上好了才算是写好了, 读性能提高因为刚写的数据在cache里可以读到, 然并卵.

write back性能好, 也安全, 因为bbu坏了, 他就自动变为write through.

 

注意, 对于SSD(固态硬盘)来说, write back是不合适的, 因为SSD的写本来就不慢, 用write back的话, 就是说cache要写一次, 后面SSD上还要写一次.

 

做个顾名思义的版本吧:

Write back (to disk from cache when needed)

Write through (cache directly to disk and make a copy to cache)

Write back (to disk from cache even when) bad BBU (happens)

Write back (to disk from cache only when)good BBU (is there)

 

参考资料

========================

Cisco UCS C-Series Servers Integrated Management Controller GUI Configuration Guide, Release 1.5

http://www.cisco.com/en/US/docs/unified_computing/ucs/c/sw/gui/config/guide/1.5/b_Cisco_UCS_C-series_GUI_Configuration_Guide.151_chapter_01001.html

LSI

http://wiki.mikejung.biz/LSI#LSI_Write_Caching_Configuration

 

注: 之前不仔细, 弄串了write through和write back的顺序, 不过好在列出了原文, 看了觉得混乱的应该会看看原文的吧. 希望大家原谅.

posted on   中道学友  阅读(3423)  评论(1编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2013-06-20 在Windows Server 2008 R2上安装Exchange 2013过程中遇到的一些问题

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示