From owner-freebsd-questions Sat Sep 25 16:58:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from whispers.blackmist.org (adsl-216-103-50-27.dsl.lsan03.pacbell.net [216.103.50.27]) by hub.freebsd.org (Postfix) with SMTP id 587CE14DCC for ; Sat, 25 Sep 1999 16:58:53 -0700 (PDT) (envelope-from jbarbee@singular.com) Received: (qmail 803 invoked from network); 26 Sep 1999 00:03:09 -0000 Received: from tesseract.internal.blackmist.org (HELO dew) (192.168.0.27) by whispers.internal.blackmist.org with SMTP; 26 Sep 1999 00:03:09 -0000 Message-Id: <4.2.0.58.19990925164835.00c607c0@server0.singular.com> X-Sender: jbarbee@server0.singular.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 (demo) Date: Sat, 25 Sep 1999 16:58:28 -0700 To: Alfred Perlstein From: john Subject: Re: performance increase with MSF? Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: References: <4.2.0.58.19990925130141.00d75370@server0.singular.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Yes, basically when you create the file it's in the buffercache > >You need to purge the cache by reading a lot of data from >unrelated files. > >-Alfred the cache indeed. here is the difference. server# /usr/bin/time grep blah testfile ...grep output... 1.53 real 0.06 user 0.09 sys server# /usr/bin/time grep blah /usr/local/www/global/tmp/testfile ...grep output... 0.30 real 0.09 user 0.10 sys > > server# /usr/bin/time grep blah testfile > > ...grep output... > > 0.11 real 0.06 user 0.05 sys > > server# /usr/bin/time grep blah /usr/local/www/global/tmp/testfile > > ...grep output... > > 0.11 real 0.06 user 0.05 sys thanx. john. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message