From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14273: `write-region-inhibit-fsync' should default to t Date: Sat, 04 May 2013 15:53:33 -0400 Message-ID: References: <517A2189.3040900@cs.ucla.edu> <87ip39xuxn.fsf@kima.orebokech.com> <517CD2AF.5070404@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367697269 32135 80.91.229.3 (4 May 2013 19:54:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 May 2013 19:54:29 +0000 (UTC) Cc: 14273@debbugs.gnu.org, Romain Francoise To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 04 21:54:28 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UYiXF-0000d1-Q1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 May 2013 21:54:21 +0200 Original-Received: from localhost ([::1]:40984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYiXF-00065P-A1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 May 2013 15:54:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYiXA-000658-VE for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 15:54:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYiXA-0006g9-1I for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 15:54:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYiX9-0006g5-Tg for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 15:54:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UYiXu-0000oS-IR for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 15:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 May 2013 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14273-submit@debbugs.gnu.org id=B14273.13676972743065 (code B ref 14273); Sat, 04 May 2013 19:55:02 +0000 Original-Received: (at 14273) by debbugs.gnu.org; 4 May 2013 19:54:34 +0000 Original-Received: from localhost ([127.0.0.1]:58205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYiXR-0000nN-OJ for submit@debbugs.gnu.org; Sat, 04 May 2013 15:54:33 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:56151) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYiXP-0000nG-Lm for 14273@debbugs.gnu.org; Sat, 04 May 2013 15:54:32 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r44JrYN8022715; Sat, 4 May 2013 15:53:34 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id EFE25AE1B2; Sat, 4 May 2013 15:53:33 -0400 (EDT) In-Reply-To: <517CD2AF.5070404@cs.ucla.edu> (Paul Eggert's message of "Sun, 28 Apr 2013 00:41:35 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4569=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4569> : streams <954038> : uri <1411557> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73964 Archived-At: > 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