all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Running two processes rapidly makes Emacs eat 100% CPU on w32
Date: Fri, 13 Oct 2006 17:50:35 +0200	[thread overview]
Message-ID: <ulknki59w.fsf@gnu.org> (raw)
In-Reply-To: <20061012145009.C39D.SLAWOMIR.NOWACZYK.847@student.lu.se> (message from Slawomir Nowaczyk on Thu, 12 Oct 2006 15:52:20 +0200)

> Date: Thu, 12 Oct 2006 15:52:20 +0200
> From: Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se>
> 
> Thanks for the advice, I managed to activate DebPrint. I have added one
> which prints the return value of w32proc:sys_select, and it is "1"
> consistently. None of the DebPrint statements already present in this
> function gets executed, neither in normal work nor when Emacs eats all
> the CPU.
> 
> Your guess that sys_select is to be blamed was likely correct, though,
> as (under normal circumstances) my newly added DebPrint executes a
> couple of times per second, while after I execute the problematic code,
> it gets called thousands of times per second.
> 
> There were two DebPrint statements guarded by FULL_DEBUG, but I have
> activated those as well. Now the one from line 1175:
> 		DebPrint (("select waiting on child %d fd %d\n",
> 			   cp-child_procs, i));
> keeps printing "select waiting on child 0 fd 3" (thousands of times per
> second, every time sys_select is called.

Looks like somehow Emacs doesn't pay attention that the process
exited, and keeps trying to read its pipe.  Do you agree with this
conclusion?

  reply	other threads:[~2006-10-13 15:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12  8:44 Running two processes rapidly makes Emacs eat 100% CPU on w32 Slawomir Nowaczyk
2006-10-12 10:47 ` Eli Zaretskii
2006-10-12 13:52   ` Slawomir Nowaczyk
2006-10-13 15:50     ` Eli Zaretskii [this message]
2006-10-14  7:53       ` Slawomir Nowaczyk
2006-10-27 21:36       ` Slawomir Nowaczyk
2006-11-03 21:11         ` Slawomir Nowaczyk
2006-11-04  3:37           ` Chong Yidong

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=ulknki59w.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.