From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Froemling Newsgroups: gmane.emacs.bugs Subject: bug#17124: 24.3.50; Occasional Extremely Slow Redraws in OSX Emacs Date: Fri, 28 Mar 2014 09:19:41 -0700 Message-ID: <7D2257F7-2E81-44C8-9DC7-6A837BF43DAB@gmail.com> References: <3720C794-D850-4F7A-B5C4-1BC1A72BA26B@gmail.com> <83a9cayekp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_17CC92EA-FDE4-40E9-84C9-BFD1644FF8E8" X-Trace: ger.gmane.org 1396023612 5346 80.91.229.3 (28 Mar 2014 16:20:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 16:20:12 +0000 (UTC) Cc: 17124@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 17:20:21 2014 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 1WTZVy-00009I-1A for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 17:20:18 +0100 Original-Received: from localhost ([::1]:34714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTZVx-0002VT-9t for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 12:20:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTZVo-0002Jr-IK for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 12:20:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTZVj-00031T-Ns for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 12:20:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTZVj-0002za-Ih for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 12:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WTZVi-0000Fp-RN for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 12:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Froemling Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Mar 2014 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17124 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17124-submit@debbugs.gnu.org id=B17124.1396023589954 (code B ref 17124); Fri, 28 Mar 2014 16:20:02 +0000 Original-Received: (at 17124) by debbugs.gnu.org; 28 Mar 2014 16:19:49 +0000 Original-Received: from localhost ([127.0.0.1]:55033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTZVU-0000FJ-3m for submit@debbugs.gnu.org; Fri, 28 Mar 2014 12:19:48 -0400 Original-Received: from mail-pd0-f172.google.com ([209.85.192.172]:59747) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTZVR-0000FA-I0 for 17124@debbugs.gnu.org; Fri, 28 Mar 2014 12:19:46 -0400 Original-Received: by mail-pd0-f172.google.com with SMTP id p10so5034056pdj.31 for <17124@debbugs.gnu.org>; Fri, 28 Mar 2014 09:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=mKujf4xfehdLu38hHE/cFdEmT7PN0bY9BpM4VoXBGZk=; b=TeioM+SwD1Zd2ZHybaUfYshs7Nq1hwsoh6ghxGw0GQXF5mdHajuFPLybHsGYkzrIEI zljJssgeKllGTi0Tap3+fH6P8BU8zM1B9OGydaC9ydqGulWyHFqX3kblAj99SIzFKYF+ NjsSRmY4Dln8NpEZAe23WGgE9HJsmepA8MxfbO+XPQCt1++9BY2ZtX6ptlkiOy96eG2G mgR+HcXmgQjzISHuf3EjVQVtQt7CvY7+TdLOdjR+ycvTX94kVVcWSvMnbt2HJH+/Zfqd 1x3/gmDscyOhGE7oAnHmGtf2ZK0+NXUK/zJ9cnxKE60lk+Ugymnjx2mwxD1E9Bwq2wfD +NwA== X-Received: by 10.66.122.1 with SMTP id lo1mr9723291pab.118.1396023584317; Fri, 28 Mar 2014 09:19:44 -0700 (PDT) Original-Received: from [10.0.1.7] (c-69-181-20-108.hsd1.ca.comcast.net. [69.181.20.108]) by mx.google.com with ESMTPSA id zb2sm24939445pbc.30.2014.03.28.09.19.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 09:19:43 -0700 (PDT) In-Reply-To: <83a9cayekp.fsf@gnu.org> X-Mailer: Apple Mail (2.1874) 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:87490 Archived-At: --Apple-Mail=_17CC92EA-FDE4-40E9-84C9-BFD1644FF8E8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Eli, Thanks for the info. I=92ll try to take a look at CPU load next time. Here=92s a youtube vid (unlisted) of my example in case that=92s = something you can view: https://www.youtube.com/watch?v=3DFSAGh4ER_AE&feature=3Dyoutu.be I=92m definitely seeing delays between characters on individual lines, = but also even things like drawing the borders around all of the frame=92s windows = are taking multiple frames. In total, refreshing the whole UI takes about 30 seconds whereas it is usually pretty instantaneous. It looks sort of like the slow-motion-redraw you see in X11 on a box that is completely swapped out, (though there is definitely no swapping going on in this = case) -Eric On Mar 28, 2014, at 12:20 AM, Eli Zaretskii wrote: >> From: Eric Froemling >> Date: Thu, 27 Mar 2014 14:23:28 -0700 >>=20 >> I've been using various OSX emacs builds from = http://emacsformacosx.com >> for a few years now. I'm on a 2012 Retina Macbook Pro 15". Every so >> often when I am resizing the emacs frame or window I get a single >> extremely slow redraw. Here's a screen-capture video I was able to=20= >> take of one just now as it was occurring: >> http://www.files.froemling.net/misc/SlowEmacs.mov >=20 > I cannot see that movie on my box. Do you see delays between > characters on the same screen lines, or is the delay between screen > lines? >=20 >> I have not found a way to reliably reproduce these, though they = happen >> somewhat regularly when I am working. Please let me know if there's >> any other info I can provide or anything I can do on my end to help >> get to the bottom of this. >=20 > Try to look at the CPU load when this happens, in particular if more > than a single CPU core is busy (assuming you have a multi-core CPU). > If more than one core us busy, it probably means that more than one > thread is using the CPU (Emacs redisplay engine is single-threaded). --Apple-Mail=_17CC92EA-FDE4-40E9-84C9-BFD1644FF8E8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi = Eli,
Thanks for the info.
I=92ll try to take a look at CPU = load next time.
Here=92s a youtube vid (unlisted) of my = example in case that=92s something
you can view:


From: Eric Froemling <ericfroemling@gmail.com>Date: Thu, 27 Mar 2014 14:23:28 -0700

I've been using various = OSX emacs builds from http://emacsformacosx.com
for = a few years now.  I'm on a 2012 Retina Macbook Pro 15".  Every = so
often when I am resizing the emacs frame or window I get a = single
extremely slow redraw.  Here's a screen-capture video I = was able to
take of one just now as it was occurring:
http://www.file= s.froemling.net/misc/SlowEmacs.mov

I cannot see = that movie on my box.  Do you see delays between
characters on = the same screen lines, or is the delay between = screen
lines?

I have not found a way = to reliably reproduce these, though they happen
somewhat regularly = when I am working.  Please let me know if there's
any other info = I can provide or anything I can do on my end to help
get to the = bottom of this.

Try to look at the CPU load when = this happens, in particular if more
than a single CPU core is busy = (assuming you have a multi-core CPU).
If more than one core us busy, = it probably means that more than one
thread is using the CPU (Emacs = redisplay engine is = single-threaded).

= --Apple-Mail=_17CC92EA-FDE4-40E9-84C9-BFD1644FF8E8--