服务器主机上RAID Card的Write Caching Policy
在Cisco Server的DRAC中, 创建virtual drive时, 会看到下面的选项.
那么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
LSI
http://wiki.mikejung.biz/LSI#LSI_Write_Caching_Configuration
注: 之前不仔细, 弄串了write through和write back的顺序, 不过好在列出了原文, 看了觉得混乱的应该会看看原文的吧. 希望大家原谅.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 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过程中遇到的一些问题