all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Making fsync() optional
Date: Wed, 14 Sep 2005 10:06:53 -0400	[thread overview]
Message-ID: <E1EFXuX-0004t1-0B@fencepost.gnu.org> (raw)
In-Reply-To: <87mzmgsudo.fsf@pacem.orebokech.com> (message from Romain Francoise on Tue, 13 Sep 2005 20:19:31 +0200)

    In theory, yes.  In practice, IDE drives use write caching and lie to
    the kernel about the status of the data: even if fsync() returns the
    data may not be on the platter.  The drives do that to write data to
    disk out of order, and to be able to delay writing blocks as long as
    needed under heavy seek load.  The only way to ensure immediate data
    consistency is to disable write caching (on GNU/Linux, using the -W
    option to hdparm) or to use SCSI disks.

Will the drive finish writing the blocks even if the computer crashes?
If so, this isn't a serious problem, because only a sudden power failure
would stop it.  That simply does not happen on a laptop.  It could
be a real problem on a desktop machine without UPS.  It has been many
years since I had a desktop machine; are IDE disks commonly used on them?
It seems really dumb if there is no way for the CPU to tell the disk,
"Write these blocks now, and tell me when you're done."

  reply	other threads:[~2005-09-14 14:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-12 19:27 Making fsync() optional Romain Francoise
2005-09-13 15:55 ` Richard M. Stallman
2005-09-13 18:19   ` Romain Francoise
2005-09-14 14:06     ` Richard M. Stallman [this message]
2005-09-15  8:45       ` Romain Francoise
2005-09-16  1:01         ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1EFXuX-0004t1-0B@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.