From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Marshall Newsgroups: gmane.emacs.help Subject: Re: emacs slow on dired renaming Date: Thu, 03 Apr 2014 19:57:44 +0100 Organization: The first against the wall Message-ID: <87a9c28clz.fsf@capuchin.co.uk> References: <871txekiid.fsf@capuchin.co.uk> Reply-To: robert@capuchin.co.uk NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1396551934 22240 80.91.229.3 (3 Apr 2014 19:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 19:05:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 21:05:27 2014 Return-path: Envelope-to: geh-help-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 1WVmwz-0003wN-CZ for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 21:05:21 +0200 Original-Received: from localhost ([::1]:45842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVmwy-0006vy-Ka for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 15:05:20 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-X-Trace: individual.net t0Pga4pGIYwIpy1gsUWRoQ2H1cdEso1aNANE+1rASowrKtP1E= X-Orig-Path: faure.capuchin.co.uk!not-for-mail Cancel-Lock: sha1:sZvwgpzD21wTy50PMDcCwJrP+Dc= sha1:g669euHNps/7m0RWBhXxH2IeuuQ= X-Home-Page: http://rmstar.blogspot.com/ User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:204679 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96949 Archived-At: On Thu, Apr 03 2014, Eli Zaretskii wrote: >> From: Robert Marshall >> Date: Thu, 03 Apr 2014 07:57:14 +0100 >> >> I have a build of emacs from the bzr trunk (of last week) for which >> dired renaming of files is very slow. It takes around 60 seconds to move >> 16 files to a subdirectory of their current location (within the same >> filesystem). The delay is spread across the files so each rename appears >> to take the same (c 5 seconds) time. > > Try profiling Emacs with "M-x profile-start". That might show you a > hint where the delay hides. > It appears that the delay gradually increases when it does go bad. At the moment a rename is taking around 1 sec (same copy operation is virtually instantaneous when emacs first started) This (cpu report) was with moving 10 files - command-execute 4937 99% - call-interactively 4937 99% - dired-do-rename 4844 97% - dired-do-create-files 4844 97% - dired-create-files 4763 96% - byte-code 4728 95% - dired-rename-file 3510 70% - dired-rename-subdir 2276 45% - dired-fun-in-all-buffers 1187 23% - dired-buffers-for-dir 1183 23% dired-in-this-tree 13 0% - dired-remove-file 1222 24% - dired-fun-in-all-buffers 1222 24% - dired-buffers-for-dir 1186 23% dired-in-this-tree 4 0% + apply 28 0% - dired-add-file 1214 24% - dired-fun-in-all-buffers 1214 24% dired-buffers-for-dir 1184 23% + apply 30 0% + dired-file-marker 35 0% + dired-mark-read-file-name 58 1% dired-get-marked-files 19 0% + mapcar 4 0% + byte-code 62 1% + minibuffer-complete 21 0% + execute-extended-command 10 0% + timer-event-handler 8 0% + redisplay_internal (C function) 4 0% + ... 0 0% so the delay appears spread across various routines? I did have a report with the very long delay and I think it was similar[1] - certainly there wasn't one obvious routine which was hogging the CPU. The system monitor shows emacs at 100% of 1 cpu while it does the rename. Robert [1] unfortunately I forgot to save it when restarting to get a fresh emacs :-( -- La grenouille songe..dans son château d'eau Links and things http://rmstar.blogspot.com/