Hello all,
I want to use Pgmeter for benchmark purpose. But when i downloaded Pgmeter from sourceforge cvs and tried to build it i found that there has been a system call implemented to flush page cache and the patch that comes along with the source is for kernel 2.2.
I want to know if anyone here has used Pgmeter Benchmark tool on Linux kernel 2.6 and if yes, how ?
Kindly tell me from where can i get the source and the way to build that.
thanks in advance
- addy
there has been a system call
There is no patch or syscall these days; You can flush the page cache by doing:
You could integrate this into the program or simply do it manually and comment it out.
need to flush pages of a particular file
Yes you are correct that we can use drop_caches utility to flush the page cache.
But i think it will flush the complete page cache and the system call that was implemented with pgmeter used to flush the page cache for a particular file whose file descriptor is passed to it.
I want to do the same on kernel 2.6. I am using kernel 2.6.18.3.
So i want to know if anybody has used pgmeter with kernel 2.6 and how it has been used??
-addy