From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 14273@debbugs.gnu.org, Romain Francoise <romain@orebokech.com>
Subject: bug#14273: `write-region-inhibit-fsync' should default to t
Date: Sat, 04 May 2013 15:53:33 -0400 [thread overview]
Message-ID: <jwvip2yplpb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <517CD2AF.5070404@cs.ucla.edu> (Paul Eggert's message of "Sun, 28 Apr 2013 00:41:35 -0700")
> How about the attached patch instead? It causes Emacs to use fsync by
> default only when operating interactively.
That looks OK for now.
> + fsync can be a significant performance hit. Often it doesn't
> + suffice to make the file-save operation survive a crash. For
> + batch scripts, which are typically part of larger shell commands
> + that don't fsync other files, its effect on performance can be
> + significant so its utility is particularly questionable.
> + For more on why fsync often fails to work on today's hardware, see:
> + Zheng M, Tucek J, Qin F, Lillibridge M. Understanding the
> + robustness of SSDs under power fault. 11th USENIX Conference on
> + File and Storage Technologies, 2013 (FAST '13), 271-84
> + http://www.usenix.org/system/files/conference/fast13/fast13-final80.pdf
> + For more on why fsync does not suffice even if it works properly, see:
> + Roche X. Necessary step(s) to synchronize filename operations on disk.
> + Austin Group Defect 672, 2013-03-19
> + http://austingroupbugs.net/view.php?id=672
> + * cmdargs.texi (Initial Options):
> + * files.texi (Customize Save): Document this.
But this longish text does not belong in the commitlog/changelog but in
the code.
Stefan
next prev parent reply other threads:[~2013-05-04 19:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 6:41 bug#14273: `write-region-inhibit-fsync' should default to t Paul Eggert
2013-04-26 13:13 ` Stefan Monnier
2013-04-26 13:50 ` Romain Francoise
2013-04-28 7:41 ` Paul Eggert
2013-04-28 10:32 ` Romain Francoise
2013-05-04 19:53 ` Stefan Monnier [this message]
2013-05-05 0:53 ` Paul Eggert
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvip2yplpb.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=14273@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=romain@orebokech.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).