The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Hesse, Christian" <mail@earthworm.de>
To: "Yakov Lerner" <iler.ml@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: invalidate/drop filesystem caches & io buffers
Date: Wed, 8 Nov 2006 13:58:25 +0100	[thread overview]
Message-ID: <200611081358.25245.mail@earthworm.de> (raw)
In-Reply-To: <f36b08ee0611080453p5401de04td2fef8bff4d0efb3@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

On Wednesday 08 November 2006 13:53, Yakov Lerner wrote:
> I'd like to invalidate/free the filesystem caches and io buffer cache
> How can I do this when I can't unmount the filesystem (and w/o reboot) ?
>
> (I run filesystem I/O test that needs to  start from fresh  cache &
> buffer state -- as emty as possible, like right after mount/boot).
>
> I tried  'mount -o remount' but it didn't make any difference
> on the timing. Apparently 'mount -o remount' did not invalidate
> cases/buffers ? ( The difference between fresh run vs non-fresh
> run timing is x5 times ).

You can do

echo 3 > /proc/sys/vm/drop_caches

Take a look at filesystems/proc.txt for details.
-- 
Regards,
Christian

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2006-11-08 12:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-08 12:53 invalidate/drop filesystem caches & io buffers Yakov Lerner
2006-11-08 12:55 ` Arjan van de Ven
2006-11-08 12:58 ` Hesse, Christian [this message]

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=200611081358.25245.mail@earthworm.de \
    --to=mail@earthworm.de \
    --cc=iler.ml@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox