如何在Windows下刷新磁盘读取缓存? [英] How to flush the disk read cache under Windows?

查看:364
本文介绍了如何在Windows下刷新磁盘读取缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

如何使文件系统缓存无效?

为了能够进行一些基准测试,我需要清理Windows磁盘 read 缓存。我该怎么做?

In order to be able to so some benchmarks I need to cleanup Windows disk read cache. How can I do this?

事实上,我想比较一下从磁盘加载大的Unicode文件(UTF-8或UTF-16)是否更快,考虑到在内存中,我确实保留了UTF-16。

In fact I want to compare if loading a big Unicode file (UTF-8 or UTF-16) from disk is faster or not, considering that in memory I do keep UTF-16.

我知道这应该没有太大的区别,但是为了对其进行基准测试,我需要确保该文件没有缓存-我需要查看磁盘上的大小

I know that it should be no significant difference but in order to benchmark it I need to be sure that that file is not cached - I need to see if size on disk has more or less impact than decoding the file.

推荐答案

到目前为止,我发现的唯一解决方案是 http://chadaustin.me/2009/04/flushing-disk-cache/ 但这需要时间太多,所以我希望我们会找到更好的时间。

The only solution I found so far was http://chadaustin.me/2009/04/flushing-disk-cache/ but this ones takes too much time so I hope we'll find a better one.

这篇关于如何在Windows下刷新磁盘读取缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆