From unknown Sat Sep 06 03:34:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9559 <9559@debbugs.gnu.org> To: bug#9559 <9559@debbugs.gnu.org> Subject: Status: 23.2; diff mode refining creates many temporary files causing busy hard disk Reply-To: bug#9559 <9559@debbugs.gnu.org> Date: Sat, 06 Sep 2025 10:34:37 +0000 retitle 9559 23.2; diff mode refining creates many temporary files causing = busy hard disk reassign 9559 emacs submitter 9559 Trevor Spiteri severity 9559 minor tag 9559 notabug wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 08:36:32 2011 Received: (at submit) by debbugs.gnu.org; 20 Sep 2011 12:36:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5zYt-00015X-Aa for submit@debbugs.gnu.org; Tue, 20 Sep 2011 08:36:31 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5zYq-00015P-6P for submit@debbugs.gnu.org; Tue, 20 Sep 2011 08:36:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5zTn-0008Tv-N1 for submit@debbugs.gnu.org; Tue, 20 Sep 2011 08:31:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:38953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5zTn-0008Tr-LW for submit@debbugs.gnu.org; Tue, 20 Sep 2011 08:31:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]:37580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5zTj-00014c-7G for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2011 08:31:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5zTe-0008Su-R3 for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2011 08:31:11 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:36439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5zTe-0008Se-I1 for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2011 08:31:06 -0400 Received: by wyi11 with SMTP id 11so550819wyi.0 for ; Tue, 20 Sep 2011 05:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=FtxVLAmjGZishMstATttmf2ObkMTsYWZ5y4LElo1mAg=; b=JhuDoB01r0wX613oMbh9TxzCR3vjDhkoQbw864J2SXZcZsScSVVcRFCGaeG82r/g+y 33YlRu8YcXkWq3L87gKikTDUECmqJQXVPzIW1AgwjxkOPJNqYvPtKV3XvUSbTNk7BcHS QjKTxeL2/xQUXwUBnKhGw88CXdk+S11CvMHjQ= Received: by 10.216.178.194 with SMTP id f44mr783946wem.110.1316521865278; Tue, 20 Sep 2011 05:31:05 -0700 (PDT) Received: from Trevor-HP.local (een5056.een.bris.ac.uk. [137.222.185.56]) by mx.google.com with ESMTPS id fa3sm2106053wbb.3.2011.09.20.05.31.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Sep 2011 05:31:04 -0700 (PDT) Message-ID: <4E788787.10406@ieee.org> Date: Tue, 20 Sep 2011 13:31:03 +0100 From: Trevor Spiteri User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 23.2; diff mode refining creates many temporary files causing busy hard disk Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) When I open a diff file, and one hunk has a lot of changes, I noticed that the hard disk becomes busy for quite a bit of time until the refinements in the hunk are highlighted. I am including a simple diff file a.diff below which causes the problem to me. The diff file has 40 changes in one hunk. I tried to track down what was causing this, and found that the function smerge-refine-subst was creating two temporary files and deleting them for each part of the hunk, so for the example below it creates and deletes 80 temporary files, and the hard disk is a bit busy for about 3 seconds on my system, just to refine one hunk. If I modify smerge-refine-subst by changing the lines (file1 (make-temp-file "diff1")) (file2 (make-temp-file "diff2"))) to (file1 "/dev/shm/diff1") (file2 "/dev/shm/diff2")) the hard disk remains quiet and I do not have to wait for 3 seconds, presumably because /dev/shm is in RAM, not on the hard disk. This reminds me of something that nags me a bit, although it is not really a problem. Whenever I'm using ediff, moving to the next hunk always makes the hard disk work, so I hear a short hard disk sound for each hunk I move to. I don't know if this is related. a.diff: --- a 2011-09-20 13:08:11.760491820 +0100 +++ b 2011-09-20 13:08:17.891515308 +0100 @@ -2,85 +2,85 @@ x x x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x -a +b x x x In GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4) of 2011-05-23 on x86-12.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11003000 configured using `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr message idna sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 17:59:22 2011 Received: (at 9559) by debbugs.gnu.org; 20 Sep 2011 21:59:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R68La-0002vM-AI for submit@debbugs.gnu.org; Tue, 20 Sep 2011 17:59:22 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R68LX-0002vD-Oo for 9559@debbugs.gnu.org; Tue, 20 Sep 2011 17:59:20 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p8KLx4x3032546; Tue, 20 Sep 2011 17:59:04 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id C692CB4170; Tue, 20 Sep 2011 17:59:05 -0400 (EDT) From: Stefan Monnier To: Trevor Spiteri Subject: Re: bug#9559: 23.2; diff mode refining creates many temporary files causing busy hard disk Message-ID: References: <4E788787.10406@ieee.org> Date: Tue, 20 Sep 2011 17:59:05 -0400 In-Reply-To: <4E788787.10406@ieee.org> (Trevor Spiteri's message of "Tue, 20 Sep 2011 13:31:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3986=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3986> : streams <683536> : uri <964618> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 9559 Cc: 9559@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > This reminds me of something that nags me a bit, although it is not > really a problem. Whenever I'm using ediff, moving to the next hunk always > makes the hard disk work, so I hear a short hard disk sound for each hunk > I move to. I don't know if this is related. I'd think the answer for you is to use tmpfs for /tmp rather than only for /dev/shm. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 16:16:20 2011 Received: (at control) by debbugs.gnu.org; 7 Oct 2011 20:16:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RCGqB-0003MK-Fi for submit@debbugs.gnu.org; Fri, 07 Oct 2011 16:16:19 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RCGq8-0003M7-NG for control@debbugs.gnu.org; Fri, 07 Oct 2011 16:16:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RCGps-0001yw-IT for control@debbugs.gnu.org; Fri, 07 Oct 2011 16:16:00 -0400 Date: Fri, 07 Oct 2011 16:16:00 -0400 Message-Id: Subject: control message for bug 9559 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) severity 9559 minor tag 9559 notabug wontfix From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 15 10:48:42 2012 Received: (at control) by debbugs.gnu.org; 15 Apr 2012 14:48:42 +0000 Received: from localhost ([127.0.0.1]:59722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJQkr-0001FC-KR for submit@debbugs.gnu.org; Sun, 15 Apr 2012 10:48:42 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:45910) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJQko-0001F4-SU for control@debbugs.gnu.org; Sun, 15 Apr 2012 10:48:40 -0400 Received: from static-195.22.91.6.addr.tdcsong.se ([195.22.91.6] helo=rusty) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SJQjG-0005Ek-S9 for control@debbugs.gnu.org; Sun, 15 Apr 2012 16:47:02 +0200 Date: Sun, 15 Apr 2012 16:47:02 +0200 Message-Id: <87ty0lf3x5.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #9559 X-MailScanner-ID: 1SJQjG-0005Ek-S9 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1335106022.98677@6RptaBmbOZ8E0I+KjSUf5g X-Spam-Status: No X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) close 9559 From unknown Sat Sep 06 03:34:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 May 2012 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator