From owner-freebsd-stable Fri Sep 21 12:15:46 2001 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 3450737B429 for ; Fri, 21 Sep 2001 12:15:23 -0700 (PDT) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id MAA19964; Fri, 21 Sep 2001 12:10:45 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda19962; Fri Sep 21 12:10:37 2001 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.6/8.9.1) id f8LJASa25746; Fri, 21 Sep 2001 12:10:28 -0700 (PDT) Received: from UNKNOWN(10.1.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpds25732; Fri Sep 21 12:09:47 2001 Received: (from smtpd@localhost) by cwsys.cwsent.com (8.11.6/8.9.1) id f8LJ9jH16272; Fri, 21 Sep 2001 12:09:45 -0700 (PDT) Message-Id: <200109211909.f8LJ9jH16272@cwsys.cwsent.com> X-Authentication-Warning: cwsys.cwsent.com: smtpd set sender to using -f Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdP16268; Fri Sep 21 12:09:37 2001 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-Sender: schubert To: j mckitrick Cc: Matt Dillon , Mike Meyer , "Daniel O'Connor" , Kevin Oberman , stable@FreeBSD.ORG Subject: Re: hw.ata.wc && hw.ata.tags && softupdates short question In-reply-to: Your message of "Fri, 21 Sep 2001 18:54:11 BST." <20010921185411.C81649@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 21 Sep 2001 12:09:36 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20010921185411.C81649@dogma.freebsd-uk.eu.org>, j mckitrick writes: > > | You can choose one or the other, neither, or both. I typically run my > | laptop with softupdates turned on and write caching also turned on. A > | somewhat safer configuration would be softupdates turned off and write > | caching turned on, but not because softupdates and write caching might > | conflict. They don't. Only because softupdates itself delays meta-dat > a > | I/O and more work can be lost if a crash occurs then otherwise. > > Without knowing the details, I was just trying to sort out the tradeoffs of > each option. We've been told softupdates is reliable and makes UFS about as > fast as Linux ext2fs. We've been told write caching turned OFF causes a > huge performance hit, but ON can cause data loss. And we've also heard that > some controllers tell you WC is off even when it is still on. When you put > it all together, it makes quite an interesting fuzzy-logic truth table. :-) The reason that EXT2FS on Linux and UFS on Solaris and Tru64-UNIX are so fast is because by default those filesystems are mounted async. UFS on FreeBSD is mounted by default with SMD (Symmetric Meta Data), in that data is written asynchronously and metadata is written synchronously. SMD is more reliable than async but less reliable than synchronously mounted filesystems where the data is also written out synchronously. Softupdates orders writes of metadata such that you get almost the same speed (3% slower) as asynchronously mounted filesystems with the same benefits as SMD, except for the 30-60 second write delay. When the system crashes, there is greater risk of data loss over SMD or synchronously mounted filesystems. If you want almost absolute reliability, as absolute as it can get in this business, mount your filesystems synchronously and turn of write caching. If you want raw speed mount your filesystems asynchronously and turn on write caching. If we want even more speed, mount your filesystems with noatime. I personally have write caching turned on and use softupdates. It is a good compromise for what I need to do, which is a few desktops, firewalls, web servers, console and Kerberos servers (e.g. no database servers). It is also safer than what Linux, Solaris, and Tru64-UNIX do, which is by default asynchronously mounting their UFS and EXT2FS filesystems. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/Alpha Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD Ministry of Management Services Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message