unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Beekhof <andrew@beekhof.net>
Cc: 16995@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	[thread overview]
Message-ID: <8361nioj0l.fsf@gnu.org> (raw)
In-Reply-To: <37089DA4-7533-4566-814E-6AC8857123CB@beekhof.net>

> From: Andrew Beekhof <andrew@beekhof.net>
> Date: Thu, 13 Mar 2014 11:30:15 +1100
> Cc: 16995@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.





  reply	other threads:[~2014-03-13  3:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12  7:08 bug#16995: 24.3; CPU usage spikes to 100% for minutes at a time Andrew Beekhof
2014-03-12  8:13 ` Michael Heerdegen
2014-03-12 16:17 ` Eli Zaretskii
2014-03-13  0:30   ` Andrew Beekhof
2014-03-13  3:49     ` Eli Zaretskii [this message]
2014-03-13 13:40       ` Stefan Monnier
2014-03-13 15:56         ` Glenn Morris
2014-03-17  5:12         ` Andrew Beekhof
2014-03-17  5:15           ` Daniel Colascione
2014-03-17 17:19             ` Glenn Morris
2014-03-17 22:28               ` Andrew Beekhof
2014-03-17 15:04           ` Stefan
2014-03-17 20:44             ` Andrew Beekhof

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8361nioj0l.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=16995@debbugs.gnu.org \
    --cc=andrew@beekhof.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).