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.help Subject: Re: Emacs Slowdown Date: Wed, 18 Mar 2015 14:13:40 +0000 Message-ID: <874mpifl63.fsf@newcastle.ac.uk> References: <87pp8i75nk.fsf@newcastle.ac.uk> <87lhj2qwfo.fsf@newcastle.ac.uk> <87r3sp6uga.fsf@newcastle.ac.uk> <87wq2g51iy.fsf@newcastle.ac.uk> <87h9tifq9e.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426688044 1514 80.91.229.3 (18 Mar 2015 14:14:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2015 14:14:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 15:13:59 2015 Return-path: Envelope-to: geh-help-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 1YYEjP-0006EO-2T for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 15:13:59 +0100 Original-Received: from localhost ([::1]:34041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYEjO-0001cQ-AJ for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 10:13:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYEjC-0001cC-1B for help-gnu-emacs@gnu.org; Wed, 18 Mar 2015 10:13:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYEj8-0005Wa-PD for help-gnu-emacs@gnu.org; Wed, 18 Mar 2015 10:13:45 -0400 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:34108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYEj8-0005WO-Jv for help-gnu-emacs@gnu.org; Wed, 18 Mar 2015 10:13:42 -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 1YYEj6-0005rv-CE; Wed, 18 Mar 2015 14:13:40 +0000 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 1YYEj6-0007WP-CM; Wed, 18 Mar 2015 14:13:40 +0000 In-Reply-To: (Stefan Monnier's message of "Wed, 18 Mar 2015 08:44:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 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:103198 Archived-At: Stefan Monnier writes: >> Apologies if I have not done the right thing here -- I've not written >> much C nor used gdb before. > > Looks useful, thank you. AFAICT in all those backtraces, Emacs is not > "busy" but it is simply waiting for input (a process monitor such as > "top" should be able to confirm that the Emacs process is not using any > significant amount of CPU at those times). Oh, sorry, forgot to mention that. Indeed, emacs is not chewing up the CPU, nor memory. I didn't think to check iotop. I can do that if needed. > When Emacs feels slow, what happens if you keep typing without waiting > for Emacs's response? It catches up eventually. It *seems* to get some keystrokes garbled (i.e. in the wrong order) although typing without visual feedback is fairly hard work, so I might just be hitting the wrong keys. This is up to the point that it dies -- then it seems to really hang (repaint stops for instance). I've let it alone for several minutes and get not keypresses at all. > >> The last two backtraces are after it >> has become non-responsive, up till the kill. > > The last two backtraces are actually different: Emacs is also waiting > but it's doing so elsewhere at a spot I find weird (it's actually inside > an X11 library call waiting for some input event (in "XimRead" the "im" > stands for "input method"), while in the middle of redrawing part of > Emacs's display). I'm not sufficiently familiar with this code to go > much further with it, so please M-x report-emacs-bug and include the > last backtrace (the last 2 are identical, AFAICT). > Okay, I will do so! Phil