Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262081AbTHTRa5 (ORCPT ); Wed, 20 Aug 2003 13:30:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262082AbTHTRa5 (ORCPT ); Wed, 20 Aug 2003 13:30:57 -0400 Received: from main.gmane.org ([80.91.224.249]:63709 "EHLO main.gmane.org") by vger.kernel.org with ESMTP id S262081AbTHTRaz (ORCPT ); Wed, 20 Aug 2003 13:30:55 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: mru@users.sourceforge.net (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=) Subject: Re: how to turn off, or to clear read cache? Date: Wed, 20 Aug 2003 19:28:02 +0200 Message-ID: References: <200308201322.h7KDMQga000797@81-2-122-30.bradfords.org.uk> <3F437646.4050107@gamic.com> <20030820164949.GA5613@lsd.di.uminho.pt> <20030820171713.GA21822@gtf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) Cancel-Lock: sha1:k0zsm013kaitMDAe3noReF8s63k= Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 700 Lines: 19 Jeff Garzik 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. - 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/