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: Wed, 09 Apr 2014 10:41:43 +0100 Organization: The first against the wall Message-ID: <87fvlmq1pk.fsf@capuchin.co.uk> References: <871txekiid.fsf@capuchin.co.uk> <87a9c28clz.fsf@capuchin.co.uk> <87lhvl6xog.fsf@capuchin.co.uk> <8761motb26.fsf@capuchin.co.uk> <87zjk0rq15.fsf@capuchin.co.uk> <87r45crm6k.fsf@capuchin.co.uk> <87ha66fx8w.fsf@capuchin.co.uk> <87a9byfk6d.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 1397037025 7834 80.91.229.3 (9 Apr 2014 09:50:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2014 09:50:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 09 11:50:20 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 1WXp9A-0001k3-3l for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Apr 2014 11:50:20 +0200 Original-Received: from localhost ([::1]:45193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXp99-0008TT-Gb for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Apr 2014 05:50:19 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 79 Original-X-Trace: individual.net U6CZcPLCooGQot1OTm0nYQ5snpFI4/uJzfT2mYtKNdDt2oPdo= X-Orig-Path: faure.capuchin.co.uk!not-for-mail Cancel-Lock: sha1:PkAYD2kiz8AAqJiGUpqV1vkm8PQ= sha1:WI75d3FAuElH+N2RVIsQKEtsYLk= 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:204786 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:97055 Archived-At: On Sun, Apr 06 2014, Robert Marshall wrote: > On Sun, Apr 06 2014, Eli Zaretskii wrote: > >>> From: Robert Marshall >>> Date: Sun, 06 Apr 2014 13:39:11 +0100 >>> So it would appear to be either what I'm loading in .emacs.desktop or >>> what I'm doing after that in that session which causes that symptom to >>> gradually appear. I've never seen the problem with an emacs session >>> which lasts less than c 2 hours. >> >> I guess the next step is to look in your desktop file. >> > > First I'm going to try starting an emacs session with the .emacs.desktop > file loaded and largely leave that session alone (apart from dired > renames) give it 12 hours and see if the problem appears. If so I'll > start reducing the desktop, otherwise I'm going to have to look at what I > do in emacs in the normal session - I'll compare featurep between the > desktop left alone session and now. > That session - which I left sitting there didn't produce the problem. AFAICT, there appears to be a point where the memory footprint of the bad emacs session greatly increases (but spotting when it does is still eluding me) /proc/$emacspid/status is currently giving me VmPeak: 2123196 kB VmSize: 2120600 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 1274504 kB VmRSS: 983744 kB VmData: 1373744 kB VmStk: 156 kB VmExe: 2184 kB VmLib: 36492 kB VmPTE: 2816 kB VmSwap: 370112 kB the process is using around 25% of the available memory (4GB) but maybe the problem is that there isn't more and it's spending its time getting out of swap? I've not opened any particularly large buffers since I started this session (some were opened during startup by the desktop but the largest one is around 1meg) Looking at the variables suggested by https://www.gnu.org/software/emacs/manual/html_node/elisp/Memory-Usage.html cons-cells-consed 59741973 floats-consed 196763 vector-cells-consed 71162058 symbols-consed 252132 string-chars-consed 307585551 misc-objects-consed 1241806 intervals-consed 400985 strings-consed 7853976 do any of these look out of the ordinary for an emacs session which has been running around 24 hours (having suspended the machine overnight)? A manual call to garbage-collect returns nil and pure-bytes-used is 88 - I don't know what this should be but it doesn't look sensible? Maybe a refresh from bzr and rebuild? Robert -- La grenouille songe..dans son château d'eau