f*******h 发帖数: 1269 | 1 大家做performance study时, 怎么disable OS caching effect?
Thx! | f*****r 发帖数: 229 | 2 What do you meaning? For model, simulation or implementation?
【在 f*******h 的大作中提到】 : 大家做performance study时, 怎么disable OS caching effect? : Thx!
| f*******h 发帖数: 1269 | 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?
| f*****r 发帖数: 229 | 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.
| f*******h 发帖数: 1269 | 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.
| f*****r 发帖数: 229 | 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.
|
|