All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alejandro Riveira Fernández" <ariveira@gmail.com>
To: Soeren Sonnenburg <kernel@nn7.de>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: how to empty buffers/cache?
Date: Sat, 10 May 2008 00:11:24 +0200	[thread overview]
Message-ID: <20080510001124.6bc3a5c6@Varda> (raw)
In-Reply-To: <1210369787.4142.24.camel@localhost>

El Fri, 09 May 2008 21:49:47 +0000
Soeren Sonnenburg <kernel@nn7.de> escribió:

> Dear all,
> 
> I am trying to perform some benchmarks that involve reading the same big
> file a couple of times from disk. However I would want to make sure that
> the file is not buffered/cached by the kernel when I read the file a
> second/third/etc time.
> 
> Is there a way (except rebooting/unmounting the disk) to clear the
> buffers?

 echo 3  > /proc/sys/vm/drop_caches IIRC

> 
> Thanks,
> Soeren
> --
> 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/

  reply	other threads:[~2008-05-09 22:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 21:49 how to empty buffers/cache? Soeren Sonnenburg
2008-05-09 22:11 ` Alejandro Riveira Fernández [this message]
2008-05-13 16:58   ` Soeren Sonnenburg

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=20080510001124.6bc3a5c6@Varda \
    --to=ariveira@gmail.com \
    --cc=kernel@nn7.de \
    --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.