Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

how to empty buffers/cache?

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


kernel at nn7

May 9, 2008, 2:49 PM

Post #1 of 3 (223 views)
Permalink
how to empty buffers/cache?

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


ariveira at gmail

May 9, 2008, 3:11 PM

Post #2 of 3 (207 views)
Permalink
Re: how to empty buffers/cache? [In reply to]

El Fri, 09 May 2008 21:49:47 +0000
Soeren Sonnenburg <kernel[at]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[at]vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


kernel at nn7

May 13, 2008, 9:58 AM

Post #3 of 3 (189 views)
Permalink
Re: how to empty buffers/cache? [In reply to]

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[at]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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.