From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP Date: Fri, 06 Sep 2024 19:09:22 +0300 Message-ID: <865xr8228d.fsf@gnu.org> References: <87o75241qh.fsf@gmail.com> <86plpi2ixa.fsf@gnu.org> <87seudke20.fsf@gmail.com> <8634md2vc2.fsf@gnu.org> <87h6asrk42.fsf@gmx.de> <86a5gk28ht.fsf@gnu.org> <87le0450x8.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19781"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73046@debbugs.gnu.org To: suhailsingh247@gmail.com, Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 06 18:10:12 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1smbXI-0004w4-Kn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Sep 2024 18:10:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smbXA-00057W-QD; Fri, 06 Sep 2024 12:10:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smbX8-00054E-Rj for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 12:10:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smbX8-00021J-I0 for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 12:10:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=5t3r4mYV6YZ8YAdWgBGjwbJ/MYNJFod9toxp3MzKPpU=; b=ATTmhnB3LTCe6uAVBtuDIVvEIDo1Gan39aJeOJ4gtK2MY+yyyXOaRC2U9hKKo4EVEEkHexf0e5NRprSQf0hn8G7AZqrLnyqDf8uiAUqKHrkUxxPgJDg00nTLEhcJgUdmsPuNkZEdyynewU25tfytlAbSu1Weme2BnBNdQs4D4vyHud9NkaFoOt62v7zmnqr7YDli4H2foPpxM4d6SX3FYIMjl4o/q16tnNEzw0XehFeMNEE6VzLQOkZav3cruFrcPdKY9dnMT7icdoMVbXoRC2FEDFgBaMmSrmccCtjm6uSRjxbt4Ulxtz6NjDSBkO+OOSXD2VaRXWPwxRBMYXqfRw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smbX8-00009e-29 for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 12:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2024 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73046 X-GNU-PR-Package: emacs Original-Received: via spool by 73046-submit@debbugs.gnu.org id=B73046.1725638971541 (code B ref 73046); Fri, 06 Sep 2024 16:10:01 +0000 Original-Received: (at 73046) by debbugs.gnu.org; 6 Sep 2024 16:09:31 +0000 Original-Received: from localhost ([127.0.0.1]:54022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbWd-00008e-Gj for submit@debbugs.gnu.org; Fri, 06 Sep 2024 12:09:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbWb-00008P-Jm for 73046@debbugs.gnu.org; Fri, 06 Sep 2024 12:09:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smbWW-0001y4-NK; Fri, 06 Sep 2024 12:09:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5t3r4mYV6YZ8YAdWgBGjwbJ/MYNJFod9toxp3MzKPpU=; b=IIa86U65x2Iz /9Ip+K8o5YCmzwHyhuhb4EOkaf3iSfzpe4+EmhYXU8+3pfMgL9u2D2Eh9004eo9hjqFb/AF4LoJ8v YxkCsdGKEIvPtZHiqDK1CGQr2uss2vT+4AeJqXmAYms8hfd1CeE+SBOUV11ZLdJmk1GZ6jn+nds7m U9DNJgwfbRPFmOx43xns3CATNJj4JJB9soAwgQhPlSgUuEfTEb4OwtP6QP6LPLPMfwf2YSwrlO2ZP rGJzlYgMN03nxuf4ldBmRIZfxkV8Db2lROPwiLFATWr1FDVvCYsrz83eM54HjyxQIEafTnv6m97+t Rq3WvuRtoYm8oUGzrcd9BA==; In-Reply-To: <87le0450x8.fsf@gmx.de> (message from Michael Albinus on Fri, 06 Sep 2024 16:09:23 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291325 Archived-At: > From: Michael Albinus > Cc: suhailsingh247@gmail.com, 73046@debbugs.gnu.org > Date: Fri, 06 Sep 2024 16:09:23 +0200 > > Eli Zaretskii writes: > > >> It seems to be related to font-locking, indeed. See variable > >> `dired-font-lock-keywords'. It specifies face recognition running basic > >> file oprtations. For example, ";; Broken Symbolic link" calls > >> `file-truename' and `file-exists-p', while "Symbolic link to a directory" > >> and ";; Symbolic link to a non-directory" invoke `file-truename' and > >> `file-directory-p'. > > > > But font-lock is ON by default, so what I saw also includes this, > > right? > > Sure. But we don't know the exact setting of the OP. The connection > could be extremely slow for him, Tramp's cache might be disabled, > whatever. Perhaps it's worth to rerun the test with "emacs -Q". I think we should also try to establish how slow is that connection. How much time does "ping" take? How long does it take to fetch a file of, say 20 KBytes? Also, if font-lock is disabled, does the problem go away?