From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 17 18:02:05 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 121A5106564A for ; Wed, 17 Mar 2010 18:02:05 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp101.plus.mail.re1.yahoo.com (smtp101.plus.mail.re1.yahoo.com [69.147.102.64]) by mx1.freebsd.org (Postfix) with SMTP id 9BF8B8FC15 for ; Wed, 17 Mar 2010 18:02:04 +0000 (UTC) Received: (qmail 27047 invoked from network); 17 Mar 2010 17:35:23 -0000 Received: from (se@88.128.92.181 with plain) by smtp101.plus.mail.re1.yahoo.com with SMTP; 17 Mar 2010 10:35:21 -0700 PDT X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. X-YMail-OSG: VTTXE78VM1mFyWnQIWqPVXfovDw6fgpiTLeLD9t2vrC7EwmXvgzg6Aum4xJCRyf5kCaPETNjBNTDISC73bydI7zr6dz1NQ1YmNUmOQUQan6XofFCN_dvptdexoMuFAV.vhku0IXlN3DJ0rZehTHG7Z.LFcKSBG98Pi3Kb8AhK3rW8mCoYTj0Bt_ALwg4rwt1ghP5K95gmU3aTp6gnZ0j62jN5srjZljFt7BT8HJld50J9QgPB9EG6SjNL2lYpg2rIpeyoFjRwL3xFtxE2PGwB5BrtqKFWuvOQJJXvmIupJCttUfEA954Ptw.6uBnrC1NIVmudRqhOVsPUJ6K7_EoVQIF2gJh50AHjFrOFDaL.aBxS1C3YpO5mK.Ktvg- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4BA0E57E.7040909@FreeBSD.org> Date: Wed, 17 Mar 2010 15:21:50 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 ThunderBrowse/3.2.2.1 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <3ed617d61003142033o5a4ca4bfh88db0b27f1ead01e@mail.gmail.com> <201003161700.12694.pieter@degoeje.nl> In-Reply-To: <201003161700.12694.pieter@degoeje.nl> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Pieter de Goeje , Havacci Subject: Re: Drop cache X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 18:02:05 -0000 Am 16.03.2010 17:00, schrieb Pieter de Goeje: > On Monday 15 March 2010 04:33:04 Havacci wrote: >> How I can drop cache memory of my FreeBSD ? I search a lot about this >> and don't find anything. >> In Linux i usualy use this command: >> sync; echo 3 > /proc/sys/vm/drop_caches > > Something comparable can be achieved by unmounting and remounting the test > filesystem. It used to be the case, that the cache was flushed early enough to make the following flush all data for a file-system: # cd /mount/point # umount /mount/point The unmount fails, since PWD is within the file-system to be unmounted. But the cache has already been flushed by then ... If the question was not about flushing the cache e.g. for benchmarking purposes, then I'm not sure that a direct equivalent to the Linux command exists (not knowing Linux and the exact semantics of drop_caches in the original message). Regards, STefan