From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: Change in process.c Date: Mon, 26 Mar 2007 23:06:06 -0400 Organization: disorganization Message-ID: References: Reply-To: sds@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1174964803 7922 80.91.229.12 (27 Mar 2007 03:06:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2007 03:06:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 27 05:06:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HW215-0006JL-Rg for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2007 05:06:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HW23O-0007rd-Mw for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 22:08:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HW23K-0007rW-Tz for emacs-devel@gnu.org; Mon, 26 Mar 2007 23:08:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HW23I-0007rK-GY for emacs-devel@gnu.org; Mon, 26 Mar 2007 23:08:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HW23I-0007rH-9b for emacs-devel@gnu.org; Mon, 26 Mar 2007 22:08:52 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HW20y-0001wk-Gm for emacs-devel@gnu.org; Mon, 26 Mar 2007 23:06:28 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HW20n-0005ql-TP for emacs-devel@gnu.org; Tue, 27 Mar 2007 05:06:17 +0200 Original-Received: from ool-182f780f.dyn.optonline.net ([24.47.120.15]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Mar 2007 05:06:17 +0200 Original-Received: from sds by ool-182f780f.dyn.optonline.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Mar 2007 05:06:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ool-182f780f.dyn.optonline.net Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) Cancel-Lock: sha1:Y5RJdtw1fGqyFYSzw3kT2bgqYAQ= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68650 Archived-At: > * Richard Stallman [2007-03-26 19:13:42 -0400]: > > What was the reason for moving the first sleep before the first wait3 > call? It looks like that will force a one-second delay even > in cases where it would succeed straightaway. > > Using usleep would reduce that problem to an acceptable level, > but I am not sure all systems have usleep. So it is risky > to make that change. > > What's the issue here? this has been discussed here: http://thread.gmane.org/gmane.emacs.devel:67722 I have been observing the following behavior: emacs hangs in sigchld_handler waiting for the child process to terminate. the system stops responding, loadavg goes to 5-8(!), CPU is 100% busy. this lasts for ~10 seconds. this happens on M-c compile and when I click on a URL (it is passed to an existing Firefox). the sleep (and the most recent usleep) patch fixes the problem for me. this may be linux-specific - I have to defer to kernel experts on that. -- Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod) http://openvotingconsortium.org http://jihadwatch.org http://truepeace.org http://memri.org http://iris.org.il http://camera.org http://dhimmi.com We're too busy mopping the floor to turn off the faucet.