From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#20134: Acknowledgement (24.4.90; Emacs slowdown to eventual hang) Date: Tue, 07 Apr 2015 16:28:23 +0100 Message-ID: <877fto3qlk.fsf@newcastle.ac.uk> References: <87zj7ae6il.fsf@newcastle.ac.uk> <871tkk50pe.fsf@newcastle.ac.uk> <83d244wwy5.fsf@gnu.org> <83iod8htqp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428420564 3942 80.91.229.3 (7 Apr 2015 15:29:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Apr 2015 15:29:24 +0000 (UTC) Cc: 20134@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 07 17:29:15 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 1YfVRD-00070F-A6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Apr 2015 17:29:15 +0200 Original-Received: from localhost ([::1]:46503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfVRC-0006Gg-MM for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Apr 2015 11:29:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfVR4-00068e-Ix for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 11:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfVR0-00007c-HL for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 11:29:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfVR0-00007U-EA for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YfVQz-0004lg-SH for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2015 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Apr 2015 15:29: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.142842050718270 (code B ref 20134); Tue, 07 Apr 2015 15:29:01 +0000 Original-Received: (at 20134) by debbugs.gnu.org; 7 Apr 2015 15:28:27 +0000 Original-Received: from localhost ([127.0.0.1]:47959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfVQQ-0004kb-TD for submit@debbugs.gnu.org; Tue, 07 Apr 2015 11:28:27 -0400 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:44206) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfVQO-0004kQ-9Q for 20134@debbugs.gnu.org; Tue, 07 Apr 2015 11:28:25 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1YfVQN-0007cv-Ab; Tue, 07 Apr 2015 16:28:23 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YfVQN-0006cJ-65; Tue, 07 Apr 2015 16:28:23 +0100 In-Reply-To: <83iod8htqp.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 7 Apr 2015 17:56:46 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) 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:101258 Archived-At: Eli Zaretskii writes: >> 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. I will add this tomorrow. It takes a while to produce the crash. >> > 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? Nope. The lag is general. If I carry one for long enough, emacs hangs totally, but Emacs because unusable long before that point. > 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. timer-list is a variable defined in `C source code'. Its value is ([nil 21795 62426 202965 60 ac-clear-variables-every-minute nil nil 1000]) timer-idle-list is a variable defined in `C source code'. Its value is shown below. Documentation: List of active idle-time timers in order of increasing time. Value: ([t 0 0 500000 t jit-lock-context-fontify nil idle 0] [t 0 0 500000 t #[0 "\205\301 \207" [eldoc-mode eldoc-print-current-symbol-info] 1 "\n\n(fn)"] nil idle 0] [nil 0 1 0 t pabbrev-short-idle-timer nil idle 0] [nil 0 1 200000 t reftex-view-crossref-when-idle nil idle 0] [nil 0 5 0 t pabbrev-idle-timer-function nil idle 0] [nil 0 30 0 nil desktop-auto-save nil idle 0] [nil 0 60 0 t bibtex-parse-buffers-stealthily nil idle 0]) [back]