如何通过积极的硬盘驱动器缓存和重新排序来保证事务的原子性和文件系统的一致性?

发布于 2024-12-21 09:27:36 字数 236 浏览 2 评论 0原文

当今的硬盘驱动器正在使用越来越积极的缓存和重新排序,有时甚至完全忽略缓存刷新以提高性能值。

在这种情况下是否可以保证原子性(事务)和一致性?是否有任何已知的方法可以缓解缓存问题?

我读过一篇关于这个主题的论文,其中创建了一个名为“强制缓存驱逐”的解决方案来解决日志文件系统的问题。这基本上包括用新的写入填充缓存,从而导致缓存被刷新。然而,这并不是适用于所有情况的实用解决方案,因为在某些情况下刷新需要几秒钟。很难获得更多信息。

Todays hard drives are using more and more aggressive caching with reordering and are sometimes even completely ignoring cache flushes to boost performance values.

Is it possible to guarantee atomicity (transactions) and consistency in such cases? Are there any known methods for mitigating the cache issues?

I've read one paper regarding this subject where a solution called "Coerced Cache Eviction" was created to solve the problem for journaling file systems. This basically consisted of filling the cache with new writes causing the cache to be flushed. This is however not a practical solution for all cases since there are cases where a flush would take several seconds. More information was hard to come by.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薆情海 2024-12-28 09:27:36

这是一个很晚的回复,但我想我会回答以防其他人遇到同样的问题。

我是研究强制缓存驱逐(CCE)的研究生之一。我很乐意回答您的任何问题。我同意,对于具有复杂缓存的驱动器,CCE 可能需要花费大量时间来刷新缓存。

我们设计了一种新的文件系统,称为无序文件系统(NoFS),它在设计上避免了这个问题。在此文件系统中,即使文件系统运行在不支持刷新命令的磁盘上,您也可以保持一致性。您可以在这里阅读更多信息:http://pages.cs.wisc.edu/ ~vijayc/nofs.htm

不幸的是,NoFS 目前不提供事务。我们现在正在威斯康辛大学麦迪逊分校研究这个问题。

This is a very late reply, but I thought I would answer in case someone else is running into the same problem.

I'm one of the graduate students who worked on Coerced Cache Eviction (CCE). I would be happy to answer any questions you have. I agree that for drives with complicated caches, CCE could take a lot of time to flush the cache.

We've designed a new file system called the No-Order file system (NoFS) which avoids the problem by design. In this file-system you can have consistency even when the file system is run on top of disks which don't honor the flush command. You can read about it more here: http://pages.cs.wisc.edu/~vijayc/nofs.htm

Unfortunately, NoFS doesn't provide transactions currently. We're working on this problem right now at UW Madison.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文