From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michal Sojka Newsgroups: gmane.emacs.help Subject: High CPU load after pressing arbitrary key (mostly in C mode) Date: Wed, 17 Aug 2011 17:56:41 +0200 Message-ID: <87ty9gf2va.fsf@steelpick.2x.cz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1313609275 636 80.91.229.12 (17 Aug 2011 19:27:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2011 19:27:55 +0000 (UTC) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 17 21:27:52 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QtlmJ-00088p-Rh for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2011 21:27:51 +0200 Original-Received: from localhost ([::1]:52858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtlmJ-0008Iw-6l for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2011 15:27:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiU3-0006bS-CM for help-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:56:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtiU2-0005Yj-90 for help-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:56:47 -0400 Original-Received: from max.feld.cvut.cz ([147.32.192.36]:44401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiU1-0005Y8-SH for help-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:56:46 -0400 Original-Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id E8AFD3CFE77 for ; Wed, 17 Aug 2011 17:56:42 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Original-Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id VHrfS1RJjRZ7 for ; Wed, 17 Aug 2011 17:56:42 +0200 (CEST) Original-Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 009C93CFE74 for ; Wed, 17 Aug 2011 17:56:41 +0200 (CEST) Original-Received: from steelpick.2x.cz (unknown [141.76.49.12]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id D2B5CFA003 for ; Wed, 17 Aug 2011 17:56:41 +0200 (CEST) Original-Received: from wsh by steelpick.2x.cz with local (Exim 4.76) (envelope-from ) id 1QtiTx-00089Z-JB for help-gnu-emacs@gnu.org; Wed, 17 Aug 2011 17:56:41 +0200 User-Agent: Notmuch/0.6.1-91-g55c2c34 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 147.32.192.36 X-Mailman-Approved-At: Wed, 17 Aug 2011 15:27:47 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81971 Archived-At: Hi all, I experience a weird a problem. It appears more or less randomly, typically after using emacs for several hours. The responsiveness of emacs starts to be very slow. Whenever I press a key, for example to type some character, it appears on the screen in let say half a second. By pressing several keys fast, the CPU load goes to 100%. This happens mostly in C mode. By switching to another mode, the response is better but occasionally there is a long delay even in the other modes. I workaround this by exiting emacs and starting it again. Is there any way how to debug such problems. For example tracing all functions that are called when a key is pressed? I tried to switch off font-lock-mode, but it didn't change anything. My emacs is: GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4), Debian. Thanks, Michal