All of lore.kernel.org
 help / color / mirror / Atom feed
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 19:28:02 +0200	[thread overview]
Message-ID: <yw1xhe4cb5nh.fsf@users.sourceforge.net> (raw)
In-Reply-To: 20030820171713.GA21822@gtf.org

Jeff Garzik <jgarzik@pobox.com> writes:

>> > 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.
>
> Using fillmem will do it better :)

[39 lines of C code]

If you already have that piece of code, of course.

-- 
Måns Rullgård            You can write faster programs in C, but
mru@users.sf.net         you can write programs faster in Perl. 


  reply	other threads:[~2003-08-20 17:30 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
2003-08-20 17:17         ` Jeff Garzik
2003-08-20 17:28           ` Måns Rullgård [this message]
     [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=yw1xhe4cb5nh.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.