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
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
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
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.