From: mru@users.sourceforge.net (Måns Rullgård)
To: linux-kernel@vger.kernel.org
Subject: Re: how to turn off, or to clear read cache?
Date: Wed, 20 Aug 2003 18:57:15 +0200 [thread overview]
Message-ID: <yw1xptj0b72s.fsf@users.sourceforge.net> (raw)
In-Reply-To: 20030820164949.GA5613@lsd.di.uminho.pt
Luciano Miguel Ferreira Rocha <luciano@lsd.di.uminho.pt> 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?
It will probably clear some cache to make room for cache from hda.
perl -e '@f[0..100000000]=0'
will do it faster.
--
Måns Rullgård
mru@users.sf.net
next prev parent reply other threads:[~2003-08-20 17:01 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
2003-08-20 16:57 ` Måns Rullgård [this message]
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=yw1xptj0b72s.fsf@users.sourceforge.net \
--to=mru@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.