Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262047AbTHTQt5 (ORCPT ); Wed, 20 Aug 2003 12:49:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262062AbTHTQt5 (ORCPT ); Wed, 20 Aug 2003 12:49:57 -0400 Received: from gsd.di.uminho.pt ([193.136.20.132]:42901 "EHLO bbb.lsd.di.uminho.pt") by vger.kernel.org with ESMTP id S262047AbTHTQtv (ORCPT ); Wed, 20 Aug 2003 12:49:51 -0400 Date: Wed, 20 Aug 2003 17:49:49 +0100 From: Luciano Miguel Ferreira Rocha To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Cc: linux-kernel@vger.kernel.org, spiridonov@gamic.com Subject: Re: how to turn off, or to clear read cache? Message-ID: <20030820164949.GA5613@lsd.di.uminho.pt> Mail-Followup-To: Luciano Miguel Ferreira Rocha , =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= , linux-kernel@vger.kernel.org, spiridonov@gamic.com References: <200308201322.h7KDMQga000797@81-2-122-30.bradfords.org.uk> <3F437646.4050107@gamic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.1i X-Disclaimer: 'Author of this message is not responsible for any harm done to reader's computer.' X-Organization: 'GSD' X-Section: 'BIC' X-Priority: '1 (Highest)' Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 30 On Wed, Aug 20, 2003 at 03:31:32PM +0200, M?ns Rullg?rd wrote: > Sergey Spiridonov writes: > > >>> I need to make some performance tests. I need to switch off or to > >>> clear read cache, so that consequent reading of the same file will > >>> take the same amount of time. > >>> > >>>Is there an easy way to do it, without rebuilding the kernel? > >> Unmount and remount the filesystem. > > > > > > Would > > > > # mount -o remount > > > > do the job? > > no What about dd if=/dev/hda bs=8M count=$(awk '/MemTotal/ { printf "%d", $2/4096 }' /proc/meminfo) ? Will it clear the cache? Regards, Luciano Rocha - 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/