清除文件缓存以重复性能测试 [英] Clear file cache to repeat performance testing

查看:129
本文介绍了清除文件缓存以重复性能测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用哪些工具或技术来删除缓存的文件内容,以防止我的性能结果歪斜?我相信我需要完全清除或选择性地删除有关文件和目录内容的缓存信息。



我正在开发的应用程序是一个专门的压缩实用程序,它是预计会做很多工作阅读和写入操作系统最近没有触及的文件,其磁盘块不太可能被缓存。



我想删除我在IO时间中看到的可变性,当我重复分析不同的策略进行文件处理工作的任务。



我主要对Windows XP的解决方案感兴趣,这是我的主要开发机器,但是我也可以使用linux进行测试,所以对这个环境的答案也很感兴趣。



我尝试过SysInternals CacheSet ,但点击清除不会导致可测量的增加(恢复到时间后冷启动)在t ime来重读文件,我刚刚读了几次。

解决方案

使用SysInternal的RAMMap应用程序





空/空待机列表菜单选项将清除Windows文件缓存。 / p>

What tools or techniques can I use to remove cached file contents to prevent my performance results from being skewed? I believe I need to either completely clear, or selectively remove cached information about file and directory contents.

The application that I'm developing is a specialised compression utility, and is expected to do a lot of work reading and writing files that the operating system hasn't touched recently, and whose disk blocks are unlikely to be cached.

I wish to remove the variability I see in IO time when I repeat the task of profiling different strategies for doing the file processing work.

I'm primarily interested in solutions for Windows XP, as that is my main development machine, but I can also test using linux, and so am interested in answers for that environment too.

I tried SysInternals CacheSet, but clicking "Clear" doesn't result in a measurable increase (restoration to timing after a cold-boot) in the time to re-read files I've just read a few times.

解决方案

Use SysInternal's RAMMap app.

The Empty / Empty Standby List menu option will clear the Windows file cache.

这篇关于清除文件缓存以重复性能测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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