public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jamie Lokier <lk@tantalophile.demon.co.uk>
To: Al Peat <al_kernel@yahoo.com>
Cc: linux-kernel@vger.kernel.org, myself <al_peat@yahoo.com>,
	Juri Haberland <juri.haberland@innominate.com>
Subject: Re: Purging the Page Table (was: Purging the Buffer Cache)
Date: Thu, 28 Dec 2000 06:50:20 +0100	[thread overview]
Message-ID: <20001228065020.B4578@thefinal.cern.ch> (raw)
In-Reply-To: <20001222011652.30206.qmail@web10101.mail.yahoo.com>
In-Reply-To: <20001222011652.30206.qmail@web10101.mail.yahoo.com>; from al_kernel@yahoo.com on Thu, Dec 21, 2000 at 05:16:52PM -0800

Al Peat wrote:
> > >   Is there any way to completely purge the buffer
> > > cache -- not just the write requests (ala 'sync'
> > or
> > > 'update'), but the whole thing?  Can I just call
> > > invalidate_buffers() or destroy_buffers()?

Try this script:

case "`id -u`" in
  0) ;;
  *) echo Only root can run this script. 1>&2; exit 1 ;;
esac

mount | sort -k3 -r | \
while read dev ON dir TYPE type etc; do
  echo mount $dir -o remount
  mount $dir -o remount
done

mount | sort -k1 | \
while read dev ON dir TYPE type etc; do
  case "$dev" in
    /dev/*) echo hdparm -f $dev
      hdparm -f $dev >/dev/null ;;
  esac
done

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2000-12-28  6:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-22  1:16 Purging the Page Table (was: Purging the Buffer Cache) Al Peat
2000-12-28  5:50 ` Jamie Lokier [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=20001228065020.B4578@thefinal.cern.ch \
    --to=lk@tantalophile.demon.co.uk \
    --cc=al_kernel@yahoo.com \
    --cc=al_peat@yahoo.com \
    --cc=juri.haberland@innominate.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