[lkml]   [2003]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: how to turn off, or to clear read cache?
On Wed, Aug 20, 2003 at 11:46:28PM +0100, Jamie Lokier wrote:
> Denis Vlasenko wrote:
> > On 20 August 2003 14:52, Sergey Spiridonov wrote:
> > > I need to make some performance tests. I need to switch off or to clear
> > > read cache, so that consequent reading of the same file will take the
> > > same amount of time.
> >
> > umount/mount cycle will do it, as well as intentional OOMing the box
> > (from non-root account please;)
> umount/mount is impractical when you're testing performance on a big
> filesystem, which is always being used (e.g. /home).
> I'm fairly sure that -o remount used to have this side effect, in fact
> I used it quite a lot for that purpose, so it should be possible to
> make it work again, or add a -o flushcache option.

Won't that hold a lot of locks, and possibly pause the system until the
flushing is complete? Hopefully, in 2.6 this doesn't call lock_kernel...
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.057 / U:27.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site