From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alexander Asteroth Newsgroups: gmane.emacs.help Subject: Emacs regularly hangs multiple seconds in e.g. find-file Date: Fri, 18 Aug 2017 17:29:28 +0200 Message-ID: <87tw14opwn.fsf@h-brs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503092356 32180 195.159.176.226 (18 Aug 2017 21:39:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2017 21:39:16 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 26.0.50.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 18 23:39:13 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dioyz-0007zI-AW for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 23:39:09 +0200 Original-Received: from localhost ([::1]:35767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dioz5-0007Tc-P4 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 17:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dijDZ-0001cz-7O for help-gnu-emacs@gnu.org; Fri, 18 Aug 2017 11:29:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dijDV-0005uh-9B for help-gnu-emacs@gnu.org; Fri, 18 Aug 2017 11:29:49 -0400 Original-Received: from ux-2s11.inf.fh-bonn-rhein-sieg.de ([194.95.66.8]:32771) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dijDU-0005sw-Vl for help-gnu-emacs@gnu.org; Fri, 18 Aug 2017 11:29:45 -0400 Original-Received: from epsilon.h-brs.de (pD9F808EC.dip0.t-ipconnect.de [217.248.8.236]) (authenticated bits=0) by ux-2s11.inf.fh-bonn-rhein-sieg.de (8.14.4/8.14.4/Debian-4ska2) with ESMTP id v7IFTXtZ026799 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Fri, 18 Aug 2017 17:29:36 +0200 X-Auth: by SMTP AUTH @ ux-2s11 X-MIMEDefang-Info-ge: Gescannt in Inf@FH-BRS, Regeln s. MiniFAQ E-Mail/Mailscanner X-Scanned-By: MIMEDefang 2.73 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 194.95.66.8 X-Mailman-Approved-At: Fri, 18 Aug 2017 17:37:03 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114080 Archived-At: Dear all, I'm using GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) on top of Ubuntu Linux 4.4.0-92-generic #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux, as Editor, Window-Manager (exwm), ... Unfortunately after start it regularly hangs for 10 or more seconds when doing find-file or when starting a process (with autocompletion). The frequency of these hangs reduces as emacs uptime increases. I tried an strace and figured out, it probably hangs in a read: ... 0.000733 recvmsg(6, 0x7ffdfdb31430, 0) = -1 EAGAIN (Resource temporarily unavailable) 0.000273 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000230 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000435 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000202 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000288 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000177 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000390 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000159 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000199 recvmsg(6, 0x7ffdfdb31430, 0) = -1 EAGAIN (Resource temporarily unavailable) 0.000158 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000148 recvmsg(6, 0x7ffdfdb31650, 0) = -1 EAGAIN (Resource temporarily unavailable) 0.000086 poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 0 (Timeout) 0.000117 pselect6(15, [4 6 7 10 12 13 14], [], NULL, {1, 911848155}, {NULL, 8}) = 1 (in [4], left {1, 4014190}) 0.908089 read(4, "\1\0\0\0\0\0\0\0", 8) = 8 0.000229 pselect6(15, [4 6 7 10 12 13 14], [], NULL, {1, 3617217}, {NULL, 8} I tried three times and always the last call seems to be this read(4,...). Any suggestion what could be the cause? Thanks for any hint! Cheers, Alex