From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk-Jan C. Binnema Newsgroups: gmane.emacs.bugs Subject: bug#5535: 23.1.50; emacs daemon high CPU load even while ununsed Date: Sun, 07 Feb 2010 17:06:03 +0200 Organization: DJCBSoftware Message-ID: <87ock1qe5g.wl%djcb@djcbsoftware.nl> References: <867hqqnyqp.fsf@djcbsoftware.nl> <201002061834.o16IYInw028968@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1265556479 5308 80.91.229.12 (7 Feb 2010 15:27:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 15:27:59 +0000 (UTC) Cc: "5535@debbugs.gnu.org" <5535@debbugs.gnu.org> To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 16:27:55 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ne93C-0001RA-LJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 16:27:54 +0100 Original-Received: from localhost ([127.0.0.1]:55844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ne93B-00016j-UT for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 10:27:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ne938-00016P-KA for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 10:27:50 -0500 Original-Received: from [199.232.76.173] (port=40668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ne937-00016D-Tp for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 10:27:49 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ne935-0007w6-FB for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 10:27:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41765) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ne934-0007vd-Ek for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 10:27:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ne8j0-0007Xe-9t; Sun, 07 Feb 2010 10:07:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Dirk-Jan C. Binnema Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2010 15:07:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5535 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5535-submit@debbugs.gnu.org id=B5535.126555517828970 (code B ref 5535); Sun, 07 Feb 2010 15:07:02 +0000 Original-Received: (at 5535) by debbugs.gnu.org; 7 Feb 2010 15:06:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ne8iI-0007XD-Hq for submit@debbugs.gnu.org; Sun, 07 Feb 2010 10:06:18 -0500 Original-Received: from gw03.mail.saunalahti.fi ([195.197.172.111]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ne8iD-0007X2-Ni for 5535@debbugs.gnu.org; Sun, 07 Feb 2010 10:06:17 -0500 Original-Received: from djcbsoftware.nl (a88-114-93-212.elisa-laajakaista.fi [88.114.93.212]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id AA7D021652F; Sun, 7 Feb 2010 17:06:05 +0200 (EET) Original-Received: from cthulhu.mindcrime.djcbsoftware.nl (localhost [127.0.0.1]) by djcbsoftware.nl (Postfix) with ESMTP id 17CC639C1E9; Sun, 7 Feb 2010 17:06:03 +0200 (EET) In-Reply-To: <201002061834.o16IYInw028968@godzilla.ics.uci.edu> Mail-Reply-To: djcb@djcbsoftware.nl User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 07 Feb 2010 10:07:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34943 Archived-At: Hi Dan, >>>>> "Dan" == Dan Nicolaescu writes: Dan> djcb@djcbsoftware.nl writes: >> I noted that Emacs (emacs --daemon) takes a lot of of CPU (up to 80%), even >> when I am not using it. I am starting emacs --daemon from my ~/.gnomerc, which >> is invoked when I start my X session. >> >> I used strace to see what was going on: >> >> gettimeofday({1265471350, 42334}, NULL) = 0 >> read(0, "", 4096) = 0 >> write(2, "Back to top level.", 18) = 18 >> write(2, "\n", 1) = 1 >> poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout) >> gettimeofday({1265471350, 42538}, NULL) = 0 >> read(0, "", 4096) = 0 >> write(2, "Back to top level.", 18) = 18 >> write(2, "\n", 1) = 1 >> poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout) >> gettimeofday({1265471350, 42736}, NULL) = 0 >> read(0, "", 4096) = 0 >> write(2, "Back to top level.", 18) = 18 >> write(2, "\n", 1) = 1 >> >> [...] >> >> and this continues at high speed. Apparently, emacs calling the lisp function >> normal-top-level in lisp/startup.el many, many times. >> Hope this helps tracking down the issue. Dan> Did you have X11 emacs frames and kill the frames, or kill X11? Dan> If yes, then it's probably a long time bug in Gtk+ that causes this. Dan> http://bugzilla.gnome.org/show_bug.cgi?id=85715 I did not open any frames yet; emacs-daemon was just running in the background. I noticed that when I started cmdline manually, I got into some weird semi-interactive state -- emacs was not visible, but it seemed as if emacs was somehow interpreting my key strokes, and its output was only the echo area. Anyway, I'll see if it can be reproduced with the newer snapshot (I have upgraded now). Thanks, Dirk. -- Dirk-Jan C. Binnema Helsinki, Finland e:djcb@djcbsoftware.nl w:www.djcbsoftware.nl pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C