From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Kasperski Newsgroups: gmane.emacs.devel Subject: Idle emacs taking 100% cpu - how to track it? Date: Fri, 03 Aug 2007 15:11:23 +0200 Message-ID: <87r6mkahl0.fsf@cauchy.softax.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186147224 9026 80.91.229.12 (3 Aug 2007 13:20:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2007 13:20:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 03 15:20:22 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 1IGx4j-0008Pq-At for ged-emacs-devel@m.gmane.org; Fri, 03 Aug 2007 15:20:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGx4i-0008Q4-Ds for ged-emacs-devel@m.gmane.org; Fri, 03 Aug 2007 09:20:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGx4e-0008Pi-Tl for emacs-devel@gnu.org; Fri, 03 Aug 2007 09:20:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGx4c-0008Nw-7Z for emacs-devel@gnu.org; Fri, 03 Aug 2007 09:20:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGx4c-0008Np-3q for emacs-devel@gnu.org; Fri, 03 Aug 2007 09:20:10 -0400 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 1IGx4X-0005fM-Pm for emacs-devel@gnu.org; Fri, 03 Aug 2007 09:20:07 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IGx4U-0001O7-Dq for emacs-devel@gnu.org; Fri, 03 Aug 2007 15:20:02 +0200 Original-Received: from mekk.waw.pl ([82.195.149.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Aug 2007 15:20:02 +0200 Original-Received: from Marcin.Kasperski by mekk.waw.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Aug 2007 15:20:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mekk.waw.pl User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:m4M2BzqLfr8gg+Y5jB23rsGRAAE= 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:75991 Archived-At: For some time I observe some irritating problem: when I leave some emacs running (say, on another virtual desktop) and unused, after some time it starts taking 100% CPU (on the fast modern machine). Sometimes it is still responsive and I can start using it again (while it handles keystrokes it usually stop eating CPU but when I leave it it starts hogging again), sometimes it seems frozen (does not repaint buffer windows). I use debian's snapshot version (at the moment GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, GTK+ Version 2.8.20)) First I suspected server mode, but replacing it with gnuserv did not change anything. Now I suspect 'something' updating semantic.cache (it happened to me that when I had returned to hogging emacs, found it frozen and pressed Ctrl-G, after some time semantic.cache has been displayed). But I am not sure. Has anybody faced similar behaviour? What can I do to track the problem (I of course suspect some elisp code going wild, but how to check what exactly is wrong...)?