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#17124: 24.3.50; Occasional Extremely Slow Redraws in OSX Emacs Date: Tue, 01 Apr 2014 18:03:18 +0300 Message-ID: <83d2h1ccsp.fsf@gnu.org> References: <3720C794-D850-4F7A-B5C4-1BC1A72BA26B@gmail.com> <83a9cayekp.fsf@gnu.org> <7D2257F7-2E81-44C8-9DC7-6A837BF43DAB@gmail.com> <837g7efcc4.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1396364662 12411 80.91.229.3 (1 Apr 2014 15:04:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2014 15:04:22 +0000 (UTC) Cc: 17124@debbugs.gnu.org To: Eric Froemling Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 01 17:04:17 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 1WV0Ea-0001eT-AN for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 17:04:16 +0200 Original-Received: from localhost ([::1]:60882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV0EZ-0007Sv-S8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 11:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV0ER-0007Sj-UF for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 11:04:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV0EM-0006J0-7y for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 11:04:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV0EM-0006Iu-4W for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 11:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WV0EL-00087V-P2 for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 11:04:01 -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, 01 Apr 2014 15:04:01 +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.139636459731152 (code B ref 17124); Tue, 01 Apr 2014 15:04:01 +0000 Original-Received: (at 17124) by debbugs.gnu.org; 1 Apr 2014 15:03:17 +0000 Original-Received: from localhost ([127.0.0.1]:59482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV0Dc-00086N-5d for submit@debbugs.gnu.org; Tue, 01 Apr 2014 11:03:17 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:50085) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV0DY-00086A-U1 for 17124@debbugs.gnu.org; Tue, 01 Apr 2014 11:03:14 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N3C00600XGCDD00@a-mtaout23.012.net.il> for 17124@debbugs.gnu.org; Tue, 01 Apr 2014 18:03:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3C006CQXTA9750@a-mtaout23.012.net.il>; Tue, 01 Apr 2014 18:03:10 +0300 (IDT) In-reply-to: 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:87593 Archived-At: > From: Eric Froemling > Date: Mon, 31 Mar 2014 22:23:33 -0700 > Cc: 17124@debbugs.gnu.org > > Ok here’s some further info/possible repro case if it is of use: > I built my own emacs by doing a bzr branch bzr://bzr.sv.gnu.org/emacs/trunk, > then autogen.sh and ./configure —with-ns > I removed my .emacs file so as to get default settings, then launched emacs, > opened a large text file, and subdivided the frame into several windows. > With this setup it is quite easy for me to get the slowdown to happen by just > dragging a divider around for a bit. > Here’s a clip of a slowdown with the activity monitor visible: > https://www.youtube.com/watch?v=olkyqVOWSLs > You can see that emacs is only using a few percent cpu throughout the slow redraw, > whatever that may imply. If Emacs does not use too much CPU cycles, it's probably not an Emacs problem. > I’ve also attached a sample I took of emacs during such a slowdown. > It looks like a lot of calls are blocking in _CGSSynchronizeWindowBackingStore > under the hood. I don't know how to read that. Are the numbers there CPU times, or are they numbers of calls to each function? If the latter, then they are not very useful in this case. Thanks.