mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Mark Atwood <mra@pobox.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to invalidate the filesystem buffer cache?
Date: Wed, 20 Nov 2002 18:42:15 -0800	[thread overview]
Message-ID: <3DDC4807.D1349FC7@digeo.com> (raw)
In-Reply-To: <m365urfzat.fsf@marka.linux.digeo.com>

Mark Atwood wrote:
> 
> Like the question says, is there a way to invalidate the whole buffer
> cache at once?
> 

"There is no buffer cache".

There's a pagecache, which caches the contents of files and block devices.
You can invalidate the block device pagecache with `blockdev --flushbufs' but
there is no interface for invalidating the pagecache of regular files.

Allocating and then freeing a ton of anonymous memory, then running a
swapoff/swapon cycle might suit.

      parent reply	other threads:[~2002-11-21  2:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-21  1:20 Fwd: Re: agp driver update for linux Rizsanyi Zsolt
2002-11-21  2:10 ` How to invalidate the filesystem buffer cache? Mark Atwood
2002-11-21  2:16   ` Rik van Riel
2002-11-21  2:42   ` Andrew Morton [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=3DDC4807.D1349FC7@digeo.com \
    --to=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mra@pobox.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

all inboxes | Powered by JetHome®