lkml.org 
[lkml]   [2003]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how to turn off, or to clear read cache?
On Wed, Aug 20, 2003 at 03:31:32PM +0200, Måns Rullgård wrote:
> Sergey Spiridonov <spiridonov@gamic.com> writes:
>
> >>> 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.
> >>>
> >>>Is there an easy way to do it, without rebuilding the kernel?
> >> Unmount and remount the filesystem.
> >
> >
> > Would
> >
> > # mount -o remount
> >
> > do the job?
>
> no

What about dd if=/dev/hda bs=8M count=$(awk '/MemTotal/ { printf "%d", $2/4096 }' /proc/meminfo) ?

Will it clear the cache?

Regards,
Luciano Rocha
-
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/

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