all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs in CVS plus GTK patches hogs CPU
Date: Wed, 08 Jan 2003 21:40:24 +0100	[thread overview]
Message-ID: <iluvg0z4bpj.fsf@latte.josefsson.org> (raw)
In-Reply-To: ("Jan D."'s message of "Wed, 8 Jan 2003 18:59:08 +0100 (CET)")

"Jan D." <jan.h.d@swipnet.se> writes:

>> I've been using the #2 GTK patch for several days with some heavy use,
>> and this is my first problem.  I'm not positive it is GTK related.
>> 
>> Emacs is unresponsive to C-g and consumes all CPU.  Attaching with gdb
>> and breaking alternatively generates two different backtraces (see
>> below).  At the time I was reading mail from a IMAP group using Gnus
>> (i.e., likely both network activity and keyboard activity).
>> 
>> I'll keep the process running if someone has any ideas what to
>> investigate.
>
> I have Motif and GTK versions running side by side, the GTK version
> actually takes *less* CPU for me.

Yes, normally I have no problems, but this emacs instance is
completely lost in a busy wait.  No redisplay, C-g doesn't work.

> Can you strace or truss the Emacs process to see if is in some sort of busy
> wait?  A very short timeout perhaps?

Yes, it is a busy wait:

...
kill(17005, SIGIO)                      = 0
gettimeofday({1042058269, 284790}, NULL) = 0
select(8, [3 7], NULL, NULL, {0, 451252}) = 1 (in [7], left {0, 453096})
gettimeofday({1042058269, 284976}, NULL) = 0
getpid()                                = 17005
kill(17005, SIGIO)                      = 0
gettimeofday({1042058269, 285079}, NULL) = 0
select(8, [3 7], NULL, NULL, {0, 450963}) = 1 (in [7], left {0, 451143})
gettimeofday({1042058269, 285265}, NULL) = 0
getpid()                                = 17005
kill(17005, SIGIO)                      = 0
gettimeofday({1042058269, 285368}, NULL) = 0
select(8, [3 7], NULL, NULL, {0, 450674}) = 1 (in [7], left {0, 451143})
gettimeofday({1042058269, 285554}, NULL) = 0
...

This doesn't look GTK related, but rather network process related,
though.  Hm.  17005 is the pid of the emacs process itself.  Does GTK
catch SIGIO or something?

  reply	other threads:[~2003-01-08 20:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-08  6:18 Emacs in CVS plus GTK patches hogs CPU Simon Josefsson
2003-01-08 17:59 ` Jan D.
2003-01-08 20:40   ` Simon Josefsson [this message]
2003-01-08 21:12     ` Jan D.
2003-01-08 21:36       ` Simon Josefsson
2003-01-09 23:14         ` Richard Stallman
2003-01-10  1:46           ` Simon Josefsson
2003-01-08 23:00       ` Kim F. Storm

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

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

  git send-email \
    --in-reply-to=iluvg0z4bpj.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.