GNU bug report logs - #37000
27.0.50; gc and laggy Emacs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Alex Branham <alex.branham@HIDDEN>; dated Sat, 10 Aug 2019 16:28:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 37000 <at> debbugs.gnu.org:


Received: (at 37000) by debbugs.gnu.org; 15 Aug 2019 14:56:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 10:56:53 2019
Received: from localhost ([127.0.0.1]:52198 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hyHBM-0004Zs-Ql
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 10:56:53 -0400
Received: from mail-oi1-f172.google.com ([209.85.167.172]:39445)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>) id 1hyHBL-0004ZX-5T
 for 37000 <at> debbugs.gnu.org; Thu, 15 Aug 2019 10:56:51 -0400
Received: by mail-oi1-f172.google.com with SMTP id 16so2323384oiq.6
 for <37000 <at> debbugs.gnu.org>; Thu, 15 Aug 2019 07:56:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=ubnAgViCJ5UTHVOP6J33QMhFya9J9l3Usz3SbsmjF7A=;
 b=K6Y+8iypaeu8JdgDfY7YzhEb9a0h6ZSww5SSwKUjcAHjbZrW9mxm3jl4gD43SU4MHj
 zrQ3KRBNZPT7+d5zdRoKWPy7xkVZIqJgfnnDtDO9N+eqojGjyacZnF/GcwNDgNgtO62b
 G1hfnBv3NYi/7TXdvcMKGdp1babW6lRwKGq2YxcNed3TJLqnDbT7RSQ0ooZjpa27Qg7S
 fletl6XR4oqbf2z00/iM2tLsgOFSsQnXk4+efJHrBcDs0R751+JNq3GxUv3txsPEzkF7
 z57Q/2CjmqLj54EmqYBMIpm9rqrwypsENYSAOg3TsnV0QJnd092RczCm8u7ndGjr6kSQ
 eESQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=ubnAgViCJ5UTHVOP6J33QMhFya9J9l3Usz3SbsmjF7A=;
 b=tvumyA75Pkn98FzZsWgvk7yD8xsqT9hggoDPNceuZII86e3JkkOhRtJJvmUZdrFhej
 SmxCuRySL3yfp9LcetNyh262eaB+1/7KFQswQIRUj7P006d88/rCUTI+oTjbapjx5qw9
 +4MN5h0RmLMekbIEc761uxQ3PI59shrVxiTNzaqmJ4+C38EsUNBDFtXJtrFcrD0xMLxV
 b4AcXW35l87GP9e53q1rQV9crljRkWEHz4ITBN0oLZpfU64wj7DwtMY0Ep4d6Jno3pyz
 8VgaXf97c30RUH6RgC9W+U8lo/7H1OrUfSrk+dnTvmWRARBCkjHH+lQLxhuFn0b8SiuR
 HsoQ==
X-Gm-Message-State: APjAAAXwxUqjECN8oN/CHdt8Dm3Z7q5f8GGTjPf5JI5BMa4WbqkTaabs
 A0ElCLMgwRmQ2JpngpnJNjt6dthhjRI=
X-Google-Smtp-Source: APXvYqyrm2XEKiCzKuHhZjryWmBrvF0I9Ok/DCctRNeuFHaPoGAZv732+54XMIBPoNuR/YzMTCIWbw==
X-Received: by 2002:aca:c50a:: with SMTP id v10mr1905376oif.174.1565881005271; 
 Thu, 15 Aug 2019 07:56:45 -0700 (PDT)
Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208])
 by smtp.gmail.com with ESMTPSA id
 q24sm1084998otl.31.2019.08.15.07.56.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 15 Aug 2019 07:56:44 -0700 (PDT)
From: Alex Branham <alex.branham@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#37000: 27.0.50; gc and laggy Emacs
References: <87a7ch9ea6.fsf@HIDDEN> <837e7l7ymr.fsf@HIDDEN>
Date: Thu, 15 Aug 2019 09:56:44 -0500
In-Reply-To: <837e7l7ymr.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 10 Aug
 2019 19:50:52 +0300")
Message-ID: <87v9uywk7n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37000
Cc: 37000 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat 10 Aug 2019 at 19:50, Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Alex Branham <alex.branham@HIDDEN>
>> Date: Sat, 10 Aug 2019 11:27:29 -0500
>> 
>> Recently I've noticed Emacs sometimes getting _very_ laggy, as in 
>> taking up to a half-second to display the a single character that 
>> I type. M-x profiler-start suggests that garbage-collection is 
>> taking up too much time (see below my signature for example 
>> output). gc-cons-percentage and gc-cons-threshold are at their 
>> default values. I can't figure out how to reproduce this reliably, 
>> but running M-x relint-directory on the Emacs source tree seems to 
>> do a decent job triggering it. My Emacs is built from commit 
>> 4ce9c6d0b58bd77bc811d6c1c5caf955a5a0be2f (~ 4 days ago) of the 
>> master branch. How can I go about tracking this down?
>
> Trying to bisect to find the offending commit would be one way.

Thanks. I noticed there's some activity around gc on master currently.
I'll wait for that to pass before trying this.

I'll note though that I don't see this issue on 26.2.

Alex




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37000; Package emacs. Full text available.

Message received at 37000 <at> debbugs.gnu.org:


Received: (at 37000) by debbugs.gnu.org; 10 Aug 2019 16:51:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 10 12:51:14 2019
Received: from localhost ([127.0.0.1]:44400 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hwUaH-0002dV-Q1
	for submit <at> debbugs.gnu.org; Sat, 10 Aug 2019 12:51:14 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41742)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1hwUaF-0002dG-Kb
 for 37000 <at> debbugs.gnu.org; Sat, 10 Aug 2019 12:51:12 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:55499)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1hwUaA-00067g-Ec; Sat, 10 Aug 2019 12:51:06 -0400
Received: from [176.228.60.248] (port=3997 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1hwUa9-00015b-Po; Sat, 10 Aug 2019 12:51:06 -0400
Date: Sat, 10 Aug 2019 19:50:52 +0300
Message-Id: <837e7l7ymr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Alex Branham <alex.branham@HIDDEN>
In-reply-to: <87a7ch9ea6.fsf@HIDDEN> (message from Alex Branham on Sat, 10
 Aug 2019 11:27:29 -0500)
Subject: Re: bug#37000: 27.0.50; gc and laggy Emacs
References: <87a7ch9ea6.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37000
Cc: 37000 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Alex Branham <alex.branham@HIDDEN>
> Date: Sat, 10 Aug 2019 11:27:29 -0500
> 
> Recently I've noticed Emacs sometimes getting _very_ laggy, as in 
> taking up to a half-second to display the a single character that 
> I type. M-x profiler-start suggests that garbage-collection is 
> taking up too much time (see below my signature for example 
> output). gc-cons-percentage and gc-cons-threshold are at their 
> default values. I can't figure out how to reproduce this reliably, 
> but running M-x relint-directory on the Emacs source tree seems to 
> do a decent job triggering it. My Emacs is built from commit 
> 4ce9c6d0b58bd77bc811d6c1c5caf955a5a0be2f (~ 4 days ago) of the 
> master branch. How can I go about tracking this down?

Trying to bisect to find the offending commit would be one way.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37000; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Aug 2019 16:27:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 10 12:27:48 2019
Received: from localhost ([127.0.0.1]:44392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hwUDb-000220-Na
	for submit <at> debbugs.gnu.org; Sat, 10 Aug 2019 12:27:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:52424)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>) id 1hwUDY-00021q-Om
 for submit <at> debbugs.gnu.org; Sat, 10 Aug 2019 12:27:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51670)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <alex.branham@HIDDEN>) id 1hwUDW-0008Q9-42
 for bug-gnu-emacs@HIDDEN; Sat, 10 Aug 2019 12:27:43 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alex.branham@HIDDEN>) id 1hwUDU-0000L1-RL
 for bug-gnu-emacs@HIDDEN; Sat, 10 Aug 2019 12:27:42 -0400
Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:40453)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <alex.branham@HIDDEN>)
 id 1hwUDQ-0000B9-17
 for bug-gnu-emacs@HIDDEN; Sat, 10 Aug 2019 12:27:37 -0400
Received: by mail-ot1-x32d.google.com with SMTP id c34so4445777otb.7
 for <bug-gnu-emacs@HIDDEN>; Sat, 10 Aug 2019 09:27:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=user-agent:from:to:subject:date:message-id:mime-version;
 bh=JDbdlj5ek1iiO20jASSx4wFaZq5vArV1oOKKqhD+VJE=;
 b=DecKIHu+tPkpVkE8cs1mU1xEybEDoKExP36jeZOL+wB+OXBE17vttbYC6RSxShhxlD
 qv2fwYOs+RNySkd/6m1Twz2Kjv6PsmRfJOg5+ktMbWS1GWjn+fjT2/fsIVJWWjcBz/pw
 b5YN7nTxH4f/yRl45bjg8jfw5qHVElEyYl6Q8/tpPrccUTUiQFyln6Kv+FZNXU0ejkQz
 /N4rOdHyD1/bHnQZcDurLixMrQFY1Ht9rui23CsAdQIPcyRW7BrxU2ZooJ/aed9X1sCm
 LPGe3p11sxhdMWMTzRcrtyUQ0EN+03+N7Gw5RtVGC6dmEDnL15xxSW34mIpedW/5G41N
 4hfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:user-agent:from:to:subject:date:message-id
 :mime-version;
 bh=JDbdlj5ek1iiO20jASSx4wFaZq5vArV1oOKKqhD+VJE=;
 b=VxM5YeRy0ujBuXMX2gkHh0cta1shqsIyg8q8tGqcVc0BRE3v3VX5WQZ72vHo5R6I2D
 7hvAZHgIU9Im86cm32EyVRo0M9XaSXOoaxIkWBVYFUpoXgKKOQEZeUFn5f9RVWcA4m6Y
 7Et9sRSuEB6KTVw/9aoP9oSEk1hr4tKC5eKbkLRc5i3+yNAkqr0NDf9b6Gf1HeHA+hd+
 LOD0xAzAR7gRQM5N0HBwAhhNDd6GUjbKNaSeqJlk+Fl7u616C2diW1N1WWaXDbHgGRCd
 DMqOT1aqsuh24oB2UtU61CPPx1Il70ilc71IiCyWVzXwlrsm6N+EBL7Z6b4Z70FePWTT
 5tkA==
X-Gm-Message-State: APjAAAV0xD0hapho7PA5Q9qqpPvMDuxHXIws+ZmRUHjVX5qLL+qY8gv0
 soJvI7mFjM8LlmY+BFF4bJVjfGg7
X-Google-Smtp-Source: APXvYqwn0PxtQ02KMrijjL7mB6Bsh4mVHHbG5smkgJmpqkmK31lVMwxxy94WnBzEB+xKGgSgK0/4Fw==
X-Received: by 2002:a9d:5788:: with SMTP id q8mr21133844oth.237.1565454451282; 
 Sat, 10 Aug 2019 09:27:31 -0700 (PDT)
Received: from mars (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208])
 by smtp.gmail.com with ESMTPSA id e10sm34317177otq.69.2019.08.10.09.27.30
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Sat, 10 Aug 2019 09:27:30 -0700 (PDT)
User-agent: mu4e 1.2.0; emacs 27.0.50
From: Alex Branham <alex.branham@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; gc and laggy Emacs
Date: Sat, 10 Aug 2019 11:27:29 -0500
Message-ID: <87a7ch9ea6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::32d
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hello -

Recently I've noticed Emacs sometimes getting _very_ laggy, as in 
taking up to a half-second to display the a single character that 
I type. M-x profiler-start suggests that garbage-collection is 
taking up too much time (see below my signature for example 
output). gc-cons-percentage and gc-cons-threshold are at their 
default values. I can't figure out how to reproduce this reliably, 
but running M-x relint-directory on the Emacs source tree seems to 
do a decent job triggering it. My Emacs is built from commit 
4ce9c6d0b58bd77bc811d6c1c5caf955a5a0be2f (~ 4 days ago) of the 
master branch. How can I go about tracking this down?

Thanks,
Alex

- ... 
  51442  74%
   Automatic GC 
   51440  74%
 + winum-select-window-1 
 1   0%
 + #<compiled 0x443aa1> 
 1   0%
+ command-execute 
11973  17%
+ timer-event-handler 
4837   6%
+ flyspell-post-command-hook 
536   0%
+ redisplay_internal (C function) 
262   0%
+ xcb:-connection-filter 
60   0%
+ internal-timer-start-idle 
38   0%
  mu4e~proc-filter 
  11   0%
+ winner-save-old-configurations 
6   0%
+ eldoc-pre-command-refresh-echo-area 
4   0%
+ #<compiled 0x1ffab289c50b> 
3   0%
+ undo-auto--add-boundary 
1   0%
  exwm-layout--on-echo-area-change 
  1   0%
+ mu4e~update-sentinel-func 
1   0%
+ gui-set-selection 
1   0%
+ #<compiled 0x10b7815> 
1   0%



In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.10)
Windowing system distributor 'The X.Org Foundation', version 
11.0.12004000
System Description: NixOS 19.03.173251.56d94c8c69f (Koi)

Configured using:
 'configure
 --prefix=/nix/store/zwkzz533szjmra431czdyr39hibfzxni-emacs-27.0.50
 --disable-build-details --with-modules --with-x-toolkit=gtk3 
 --with-xft
 CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200'
Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY 
INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT 
ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD 
JSON
PDUMPER GMP
Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Memory information:
((conses 16 678039 134311)
 (symbols 48 88978 26)
 (strings 32 245611 6884)
 (string-bytes 1 7634214)
 (vectors 16 142349)
 (vector-slots 8 3015732 58606)
 (floats 8 741 448)
 (intervals 56 9225 1373)
 (buffers 992 1263))




Acknowledgement sent to Alex Branham <alex.branham@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37000; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 15 Aug 2019 15:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.