From: Luciano Miguel Ferreira Rocha <luciano@lsd.di.uminho.pt>
To: "Måns Rullgård" <mru@users.sourceforge.net>
Cc: linux-kernel@vger.kernel.org, spiridonov@gamic.com
Subject: Re: how to turn off, or to clear read cache?
Date: Wed, 20 Aug 2003 17:49:49 +0100 [thread overview]
Message-ID: <20030820164949.GA5613@lsd.di.uminho.pt> (raw)
In-Reply-To: <yw1x8ypocv63.fsf@users.sourceforge.net>
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
next prev parent reply other threads:[~2003-08-20 16:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-20 13:22 how to turn off, or to clear read cache? John Bradford
2003-08-20 13:23 ` Sergey Spiridonov
2003-08-20 13:31 ` Måns Rullgård
2003-08-20 16:49 ` Luciano Miguel Ferreira Rocha [this message]
2003-08-20 16:57 ` Måns Rullgård
2003-08-20 17:17 ` Jeff Garzik
2003-08-20 17:28 ` Måns Rullgård
[not found] <mzNF.3z3.47@gated-at.bofh.it>
[not found] ` <mB2M.4Jv.35@gated-at.bofh.it>
[not found] ` <mCi4.5Kq.3@gated-at.bofh.it>
2003-08-21 10:01 ` Ihar 'Philips' Filipau
-- strict thread matches above, loose matches on Subject: below --
2003-08-20 11:52 Sergey Spiridonov
2003-08-20 12:30 ` Måns Rullgård
2003-08-20 13:11 ` Denis Vlasenko
2003-08-20 14:30 ` Sergey Spiridonov
2003-08-20 22:46 ` Jamie Lokier
2003-08-20 22:52 ` Mike Fedyk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030820164949.GA5613@lsd.di.uminho.pt \
--to=luciano@lsd.di.uminho.pt \
--cc=linux-kernel@vger.kernel.org \
--cc=mru@users.sourceforge.net \
--cc=spiridonov@gamic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox