Benchmarking using PGmeter

Submitted by Anonymous
on October 23, 2007 - 5:50am

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

on
October 23, 2007 - 7:17am

there has been a system call implemented to flush page cache

There is no patch or syscall these days; You can flush the page cache by doing:

echo 3 > /proc/sys/vm/drop_caches

You could integrate this into the program or simply do it manually and comment it out.

need to flush pages of a particular file

Anonymous (not verified)
on
October 24, 2007 - 6:03am

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.