From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758326AbYEMQ7T (ORCPT ); Tue, 13 May 2008 12:59:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754644AbYEMQ7L (ORCPT ); Tue, 13 May 2008 12:59:11 -0400 Received: from nn7.de ([85.214.94.156]:41783 "EHLO nn7.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752909AbYEMQ7K convert rfc822-to-8bit (ORCPT ); Tue, 13 May 2008 12:59:10 -0400 Subject: Re: how to empty buffers/cache? From: Soeren Sonnenburg To: Alejandro Riveira =?ISO-8859-1?Q?Fern=E1ndez?= , "Carlos R\. Mafra" Cc: Linux Kernel In-Reply-To: <20080510001124.6bc3a5c6@Varda> References: <1210369787.4142.24.camel@localhost> <20080510001124.6bc3a5c6@Varda> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT Date: Tue, 13 May 2008 18:58:16 +0200 Message-Id: <1210697896.4964.104.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2008-05-10 at 00:11 +0200, Alejandro Riveira Fernández wrote: > El Fri, 09 May 2008 21:49:47 +0000 > Soeren Sonnenburg escribió: > > > Dear all, > > > > I am trying to perform some benchmarks that involve reading the same big > > file a couple of times from disk. However I would want to make sure that > > the file is not buffered/cached by the kernel when I read the file a > > second/third/etc time. > > > > Is there a way (except rebooting/unmounting the disk) to clear the > > buffers? > > echo 3 > /proc/sys/vm/drop_caches IIRC thank you both very much ( echo 3 > ... is what I was looking for) Soeren