GNU bug report logs - #16995
24.3; CPU usage spikes to 100% for minutes at a time

Previous Next

Package: emacs;

Reported by: Andrew Beekhof <andrew <at> beekhof.net>

Date: Wed, 12 Mar 2014 07:17:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrew Beekhof <andrew <at> beekhof.net>
Cc: 16995 <at> debbugs.gnu.org
Subject: bug#16995: 24.3; CPU usage spikes to 100% for minutes at a time
Date: Thu, 13 Mar 2014 05:49:14 +0200
> From: Andrew Beekhof <andrew <at> beekhof.net>
> Date: Thu, 13 Mar 2014 11:30:15 +1100
> Cc: 16995 <at> debbugs.gnu.org
> 
> > The backtrace you posted indicates that Emacs is in garbage
> > collection.  To see if this is indeed the cause of those "lockups",
> > could you please customize garbage-collection-messages to a non-nil
> > value, and then see if every time Emacs locks up there's a message in
> > the echo area announcing GC?
> 
> It took about 2 hours of solid editing to hit it again this morning, but eventually I did.
> 
> For the first while I saw 'Garbage collecting...done', with the 'done' part flashing.
> 
> Then it switched to 'Garbage collecting...'
> 
> At some point I must have hit C-l (goto-line) because after I came back from making breakfast (I wasn't exaggerating when I said 'minutes') it was prompting for a line number.
> Pressing C-g (cancel) at this point resulted in the buffer flashing between displaying 'Quit' and 'Garbage collecting...'
> 
> After it stopped doing this, I used the pointer to move the cursor which got me back to the 'Garbage collecting...' phase followed by 'Garbage collecting...done', with the 'done' part flashing again.
> 
> Top says:
> 
> 22971 beekhof   20   0  658092  61636  15584 R  99.1  0.8  37:03.28 emacs                                                                                                                                                                                                                                         
> 
> (note that its still the same process from yesterday)
> 
> 
> If I now switch to a .c file, things appear normal.
> Switching back to the .py file and doing anything results in more garbage collection.

So I guess the question now becomes why does Python mode conses so
many Lisp objects that it triggers GC so frequently.




This bug report was last modified 9 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.