public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* how to empty buffers/cache?
@ 2008-05-09 21:49 Soeren Sonnenburg
  2008-05-09 22:11 ` Alejandro Riveira Fernández
  0 siblings, 1 reply; 3+ messages in thread
From: Soeren Sonnenburg @ 2008-05-09 21:49 UTC (permalink / raw)
  To: Linux Kernel

Dear all,

I am trying to perform some benchmarks that involve reading the same big
file a couple of times from disk. However I would want to make sure that
the file is not buffered/cached by the kernel when I read the file a
second/third/etc time.

Is there a way (except rebooting/unmounting the disk) to clear the
buffers?

Thanks,
Soeren

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

* Re: how to empty buffers/cache?
  2008-05-09 21:49 how to empty buffers/cache? Soeren Sonnenburg
@ 2008-05-09 22:11 ` Alejandro Riveira Fernández
  2008-05-13 16:58   ` Soeren Sonnenburg
  0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Riveira Fernández @ 2008-05-09 22:11 UTC (permalink / raw)
  To: Soeren Sonnenburg; +Cc: Linux Kernel

El Fri, 09 May 2008 21:49:47 +0000
Soeren Sonnenburg <kernel@nn7.de> escribió:

> Dear all,
> 
> I am trying to perform some benchmarks that involve reading the same big
> file a couple of times from disk. However I would want to make sure that
> the file is not buffered/cached by the kernel when I read the file a
> second/third/etc time.
> 
> Is there a way (except rebooting/unmounting the disk) to clear the
> buffers?

 echo 3  > /proc/sys/vm/drop_caches IIRC

> 
> Thanks,
> Soeren
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: how to empty buffers/cache?
  2008-05-09 22:11 ` Alejandro Riveira Fernández
@ 2008-05-13 16:58   ` Soeren Sonnenburg
  0 siblings, 0 replies; 3+ messages in thread
From: Soeren Sonnenburg @ 2008-05-13 16:58 UTC (permalink / raw)
  To: Alejandro Riveira Fernández, Carlos R. Mafra; +Cc: Linux Kernel

On Sat, 2008-05-10 at 00:11 +0200, Alejandro Riveira Fernández wrote:
> El Fri, 09 May 2008 21:49:47 +0000
> Soeren Sonnenburg <kernel@nn7.de> escribió:
> 
> > Dear all,
> > 
> > I am trying to perform some benchmarks that involve reading the same big
> > file a couple of times from disk. However I would want to make sure that
> > the file is not buffered/cached by the kernel when I read the file a
> > second/third/etc time.
> > 
> > Is there a way (except rebooting/unmounting the disk) to clear the
> > buffers?
> 
>  echo 3  > /proc/sys/vm/drop_caches IIRC

thank you both very much ( echo 3 > ... is what I was looking for)

Soeren

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

end of thread, other threads:[~2008-05-13 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09 21:49 how to empty buffers/cache? Soeren Sonnenburg
2008-05-09 22:11 ` Alejandro Riveira Fernández
2008-05-13 16:58   ` Soeren Sonnenburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox