Redian新闻
>
How to disable cache effect
avatar
How to disable cache effect# CS - 计算机科学
f*h
1
大家做performance study时, 怎么disable OS caching effect?
Thx!
avatar
f*r
2
What do you meaning? For model, simulation or implementation?

【在 f*******h 的大作中提到】
: 大家做performance study时, 怎么disable OS caching effect?
: Thx!

avatar
f*h
3
For Simulation and performance study.
I want to know the cost of an algorithm, which has I/Os.

【在 f*****r 的大作中提到】
: What do you meaning? For model, simulation or implementation?
avatar
f*r
4
So you use a simulator, right? Just change the simulator's configuration
parameter(such as, set cache size as 0) or change the code.

【在 f*******h 的大作中提到】
: For Simulation and performance study.
: I want to know the cost of an algorithm, which has I/Os.

avatar
f*h
5
Or to change the code to disable file caching?
Whenever you open a file, that file will be quickly cached in Linux.
I can remount the data drive before I run the program, but after the
program starts, caching starts again.

【在 f*****r 的大作中提到】
: So you use a simulator, right? Just change the simulator's configuration
: parameter(such as, set cache size as 0) or change the code.

avatar
f*r
6
If you use Linux, just check direct IO and raw IO stuffs. I guess that direct
IO can work. But in fact, there are several layer caching for IO. Anyway, you
can't disable disk drive(raid controller, if any)'s caching/prefetching.

【在 f*******h 的大作中提到】
: Or to change the code to disable file caching?
: Whenever you open a file, that file will be quickly cached in Linux.
: I can remount the data drive before I run the program, but after the
: program starts, caching starts again.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。