From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20134: Acknowledgement (24.4.90; Emacs slowdown to eventual hang) Date: Tue, 07 Apr 2015 17:56:46 +0300 Message-ID: <83iod8htqp.fsf@gnu.org> References: <87zj7ae6il.fsf@newcastle.ac.uk> <871tkk50pe.fsf@newcastle.ac.uk> <83d244wwy5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428418642 1370 80.91.229.3 (7 Apr 2015 14:57:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Apr 2015 14:57:22 +0000 (UTC) Cc: 20134@debbugs.gnu.org To: phillip.lord@newcastle.ac.uk Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 07 16:57:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YfUw9-0002QT-WC for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Apr 2015 16:57:10 +0200 Original-Received: from localhost ([::1]:45705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfUw9-00066Q-6O for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Apr 2015 10:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfUw5-00066E-JW for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 10:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfUw2-0008Al-EX for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 10:57:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfUw2-0008Ae-BD for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YfUw1-0003q0-Pf for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 10:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Apr 2015 14:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20134 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20134-submit@debbugs.gnu.org id=B20134.142841861014734 (code B ref 20134); Tue, 07 Apr 2015 14:57:01 +0000 Original-Received: (at 20134) by debbugs.gnu.org; 7 Apr 2015 14:56:50 +0000 Original-Received: from localhost ([127.0.0.1]:47785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfUvo-0003pZ-Ku for submit@debbugs.gnu.org; Tue, 07 Apr 2015 10:56:49 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61085) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfUvk-0003pJ-RA for 20134@debbugs.gnu.org; Tue, 07 Apr 2015 10:56:46 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NMF00500YHZEH00@a-mtaout20.012.net.il> for 20134@debbugs.gnu.org; Tue, 07 Apr 2015 17:56:38 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMF005WTYUD8I40@a-mtaout20.012.net.il>; Tue, 07 Apr 2015 17:56:38 +0300 (IDT) In-reply-to: <83d244wwy5.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101256 Archived-At: > From: phillip.lord@newcastle.ac.uk (Phillip Lord) > Date: Tue, 07 Apr 2015 15:38:42 +0100 > > > I don't understand how could the slow-down happen here, at least not > > due to something Emacs does. Can you collect thread-level CPU usage, > > and see which threads are using CPU? > > How do I go about this? Pressing 'H' in 'top' is one way; there might be others. > > What about timers -- do you have many of them running? What is the > > value of timer-list and timer-idle-list? > > A few, indeed, but not thousands. I know how to debug timers but not > work out if one is chewing CPU. Some of them my own timers. When Emacs becomes sluggish, does pressing and holding an arrow key produces a slow response time for the first keypress, followed by more or less normal response times for the next keypresses? If so, the culprit is probably some idle timer. If all the keypresses get the same slow response, then it could be a non-idle timer. Showing a list of the timers you have might be a first step towards digging into this possibility.