From owner-freebsd-performance@FreeBSD.ORG Tue Jun 27 07:41:53 2006 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A43A16A405 for ; Tue, 27 Jun 2006 07:41:53 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30311.mail.mud.yahoo.com (web30311.mail.mud.yahoo.com [68.142.201.229]) by mx1.FreeBSD.org (Postfix) with SMTP id 57B9343D69 for ; Tue, 27 Jun 2006 07:41:46 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 7402 invoked by uid 60001); 27 Jun 2006 07:41:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wDIcNkOxpZ3cjcDVf2vAu5t4Js+BnRD1TpDnXOnCr95Sm6TN5B6hRGk7TNMbEOxS7I9OCa3t6b4hGCaZshHZUKjO1gjlSesMGa8xlIwUrOadMqzhbxxU3GG7WVwYi5EQEKRz0fJtmwISvwC+fAjjVkc4e+bQY3ontKzUXnQsT40= ; Message-ID: <20060627074146.7400.qmail@web30311.mail.mud.yahoo.com> Received: from [213.54.88.121] by web30311.mail.mud.yahoo.com via HTTP; Tue, 27 Jun 2006 00:41:46 PDT Date: Tue, 27 Jun 2006 00:41:46 -0700 (PDT) From: "R. B. Riddick" To: leo huang In-Reply-To: <20060627033412.GQ10845@wantadilla.lemis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-performance@freebsd.org Subject: Re: Is the fsync() fake on FreeBSD6.1? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 07:41:53 -0000 On Tuesday, 27 June 2006 at 10:18:47 +0800, leo huang wrote: > And how I can confirm this? > You could do this test: 1. write some data with dd if=/dev/zero of=/tmp/a bs=1m count=100 2. then fsync /tmp/a 3. then listen to the hard disc 4. repeat it until u r sure, if the hard disc reacts on the fsync command... :-) I do not know, if it is possible to turn off the write cache of a SCSI disc... On the freebsd-geom@ list was something about a new feature (the BIO_FLUSH request), that can flush the write caches of hard discs. But it just works for ata and amr discs currently... See: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=3624+0+archive/2006/freebsd-geom/20060625.freebsd-geom -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com