Re: magic sysrq keys functionality

From: Scott Long (scottl_at_freebsd.org)
Date: 07/27/04

  • Next message: Arne Schwabe: "compile errors in current kernel whene locale is set to de_DE.UTF-8"
    Date: Mon, 26 Jul 2004 16:06:33 -0600 (MDT)
    To: Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
    
    

    On Mon, 26 Jul 2004, Matthias Andree wrote:
    > Scott Long <scottl@freebsd.org> writes:
    >
    > > GAH! No, please don't start this war again! The last time that we tried
    > > turning this off in a release (4.1 IIRC), were were plagqued by months of
    > > earthquakes, plagues, and deaths of first-born youngsters. I 100% agree
    > > that write caching in ATA is not compatible with data integrety, but the
    > > ATA marketting machine has convinced us that cached+untagged speed is
    > > better than uncached+tagged safety. C'est la vie, or so they say here.
    >
    > Looking out of the cosy FreeBSD hut, for the Linux kernel, write barrier
    > support (i. e. using the ATA cache flush facility on those drives that
    > support it, and logging a warning if a drive doesn't) to enforce proper
    > write order and synchronization is underway, with some distros already
    > using it, for instance SuSE. It's not yet in the baseline code AFAIK.
    >
    > BTW, is proper write order guaranteed on SCSI drives through ordered
    > tags? softdep doesn't really like blocks being written in different
    > order than scheduled.
    >

    I don't believe that any order is guaranteed. FreeBSD used to have the
    concept of a B_ORDERED bio flag that would help order the bioq, but it was
    removed early in the 5-current cycle due to apparent non-use. It's tough
    to rely on ATA Flush Cache since many devices exist that advertise it but
    don't actually support it (i.e. they lock up if you try it). SCSI
    certainly supports it, but again it was information that was never getting
    to the device. Some SCSI drivers compensate by sending periodic ordered
    tags to help decrease the chances for an out-of-order commit, but it's
    still a small gamble. This works right now because we assume that disks
    will commit blocks in order, and that assumption generally hasn't been
    broken. If legacy ATA were to drop off the face of the earth and drive
    makers were to commit to producing honest and non-buggy firmware, I'd love
    to bring back B_ORDERED and make it actually work.

    Scott
    _______________________________________________
    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: Arne Schwabe: "compile errors in current kernel whene locale is set to de_DE.UTF-8"

    Relevant Pages

    • Re: 306GB drives!
      ... > advocating replacing SCSI drives with ATA drives in Mission Critical ... come pretty close to U160 SCSI in effective transfer rate. ...
      (comp.os.vms)
    • Re: Difference between IDE and SCSI ??
      ... Can someone briefly explain to me the difference between an IDE (ATA) ... and a SCSI device. ... SCSI, ATA and SATA are technical terms that refer to specific technologies, much like christianity, islam and hinduism refer to different belief systems. ... in reality SCSI drives also have integrated electronics. ...
      (Fedora)
    • Re: External or Internal Harddrive, which one to get?
      ... on some motherboards it prevents glitches that are present in SATA ... some very recent drives are not available in ATA ... more expensive than SCSI ...
      (rec.audio.pro)
    • Re: 306GB drives!
      ... >> ATA and SCSI disk drives. ... >> advocating replacing SCSI drives with ATA drives in Mission Critical ... > non-negligible queues actually start to form at the disks). ...
      (comp.os.vms)
    • Re: Strange PEER error with Danis 506 1.81 generic question
      ... First, a really large number of the systems around me are still SCSI systems which use not only SCSI hard drives, but also SCSI DAT drive tape backup systems, additional SCSI hard drives which can be plugged in, but are not normally there, in mobile drive trays; as well as, in some cases actual SCSI CD-RW units. ... The only use there for the IDE interface is another CD or DVD device for read purposes. ...
      (comp.os.os2.bugs)