All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* using pgmeter for benchmarking
@ 2007-11-01 10:45 addy soft
  2007-11-01 14:06 ` Avishay Traeger
  0 siblings, 1 reply; 2+ messages in thread
From: addy soft @ 2007-11-01 10:45 UTC (permalink / raw
  To: linux-fsdevel

hello all,

I am a newbie in filesystem field and wanted to benchmark filesystem
using pgmeter.

But the source that i have downloaded from
http://pgmeter.sourceforge.net/  CVS seems to be too old and have a
kernel patch with it which is for kernel 2.2.6.

There is a syscall implemented with that version of pgmeter which is
used to flush the page cache for a particular file.

Has anyone used  pgmeter to work with kernel 2.6?

I want to use pgmeter for kernel 2.6.18.
Is there pgmeter for the present kernel or will i need to work to port
it to linux 2.6 ?

-addy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: using pgmeter for benchmarking
  2007-11-01 10:45 using pgmeter for benchmarking addy soft
@ 2007-11-01 14:06 ` Avishay Traeger
  0 siblings, 0 replies; 2+ messages in thread
From: Avishay Traeger @ 2007-11-01 14:06 UTC (permalink / raw
  To: addy soft; +Cc: linux-fsdevel

On Thu, 2007-11-01 at 16:15 +0530, addy soft wrote:
> hello all,
> 
> I am a newbie in filesystem field and wanted to benchmark filesystem
> using pgmeter.
> 
> But the source that i have downloaded from
> http://pgmeter.sourceforge.net/  CVS seems to be too old and have a
> kernel patch with it which is for kernel 2.2.6.
> 
> There is a syscall implemented with that version of pgmeter which is
> used to flush the page cache for a particular file.

Since 2.6.16 there has been a drop_caches proc file.  Instead of porting
this system call, I think you could modify pgmeter to use this.  Here
are some details:

===============================================
Writing to this will cause the kernel to drop clean caches, dentries and
inodes from memory, causing that memory to become free.
To free pagecache:
      * echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:
      * echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:
      * echo 3 > /proc/sys/vm/drop_caches
As this is a non-destructive operation and dirty objects are not
freeable, the user should run "sync" first!
===============================================

So instead of calling the system call, you should be able to call sync()
and then write either 1 or 3 to the proc file.

Hope that helps!
Avishay


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-01 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-01 10:45 using pgmeter for benchmarking addy soft
2007-11-01 14:06 ` Avishay Traeger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.