Re: Improvements to fsck performance in -current ...?

From: Terry Lambert (tlambert2_at_mindspring.com)
Date: 10/02/03

  • Next message: Chris Jackman: "panic: pmap_remove_all: illegal for unmanaged/fake page 0x9d2000"
    Date: Thu, 02 Oct 2003 10:02:43 -0700
    To: Jens Rehsack <rehsack@liwing.de>
    
    

    Jens Rehsack wrote:
    > Kevin Oberman wrote:
    > > Current has two major changes re speeding up fsck.
    > >
    > > The most significant is the background operation of fsck on file
    > > system with soft updates enabled. Because of the way softupdates
    > > works, you are assured of metadata consistency on reboot, so the file
    > > systems can be mounted and used immediately with fsck started up in
    > > the background about a minute after the system comes up.
    >
    > Be careful what you promise :-)
    > Most new disks have an own disk cache and some of them have a
    > write cache enabled. In case of a hardware failure (or power
    > failure) this data may get lost and the disk's metadata isn't
    > consistent. It's only when no write cache below the system
    > is active.

    Actually, write caching is not so much the problem, as the disk
    reporting that the write has completed before the contents of
    the transaction saved in the write cache have actually been
    committed to stable storage.

    Unfortunately, IDE disks do not permit disconnected writes, due
    to a bug in the original IDE implementation, which has been
    carried forward for [insert no good reason here].

    Therefore IDE disks almost universally lie to the driver any
    time write caching is enabled on an IDE drive.

    In most cases, if you use SCSI, the problem will go away.

    -- Terry
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Chris Jackman: "panic: pmap_remove_all: illegal for unmanaged/fake page 0x9d2000"

    Relevant Pages

    • Re: Improvements to fsck performance in -current ...?
      ... >> write cache enabled. ... > Unfortunately, IDE disks do not permit disconnected writes, due ... Unfortunately SCSI drives all seem to ship with the WCE bit set, ...
      (freebsd-current)
    • Re: Harddisk in Sunblade 100 questions
      ... >> As a rule most Sun disks have the cache disabled in order to reduce the ... >> chances of data loss. ... > Many SCSI disks have separate read and write caches. ... All the IDE disks I worked with also were able to deactivate the ...
      (comp.unix.solaris)
    • Re: ZFS performance weirdness on a a Netra X1
      ... That way ZFS cannot enable the write cache on the disks. ... are IDE disks and on non-Sun IDE disks the write cache is normally enabled ...
      (comp.unix.solaris)
    • Re: Tips sought for optimizing 10.4.10s performance
      ... upgrade to disks with those speeds. ... Most desktop drives have been 7200 RPM, ... 7200 RPM disks have only had 2MB of cache. ... a CPU upgrade, or do I just get a new Mac. ...
      (comp.sys.mac.system)
    • Re: Tips sought for optimizing 10.4.10s performance
      ... If you're doing graphics or video editing, even more RAM. ... upgrade to disks with those speeds. ... 7200 RPM disks have only had 2MB of cache. ...
      (comp.sys.mac.system)