From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikhail Pomaznoy Newsgroups: gmane.emacs.bugs Subject: bug#59151: Major performance issues in dired over ssh (Tramp) when remote directory contains symlinks Date: Wed, 9 Nov 2022 21:45:35 +0700 Message-ID: <907b450b-c502-a09c-0f81-0ff57e3a3bfa@mikpom.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 To: 59151@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 18:18:50 2022 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 1osoiv-0008rr-Ke for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 18:18:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osoiD-0004Aa-UW; Wed, 09 Nov 2022 12:18:05 -0500 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 1osoiA-00049w-QG for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:18:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osoiA-0003zn-Ho for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osoiA-0002sA-6M for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mikhail Pomaznoy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 17:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59151 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166801424710973 (code B ref -1); Wed, 09 Nov 2022 17:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 17:17:27 +0000 Original-Received: from localhost ([127.0.0.1]:40776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osoha-0002qn-5h for submit@debbugs.gnu.org; Wed, 09 Nov 2022 12:17:27 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:48920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osmKw-00077A-5L for submit@debbugs.gnu.org; Wed, 09 Nov 2022 09:45:54 -0500 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 1osmKu-0000YY-Uw for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 09:45:52 -0500 Original-Received: from mikpom.ru ([212.193.52.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osmKm-0002YY-TD for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 09:45:52 -0500 Original-Received: from [10.61.0.4] (unknown [45.86.188.211]) by mikpom.ru (Postfix) with ESMTPSA id 0E300FA4 for ; Wed, 9 Nov 2022 21:45:35 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mikpom.ru; s=dkim; t=1668005136; bh=pBodLgx99w/RL9e/tajokEtCJ+wcLQYCcDqnYlWvxWI=; h=Date:From:Subject:To:From; b=qksQWqfml+nEU0/PklQ5Q7SMTiZudIp0MU32sWqycF0vyojCCz64MOCcOxeS906mI GDduNb9CnTHHU0CZimBgiP6Pvi32N7K1pGGE8rOl97zmheLg/KeOZgaCPKLRekQr1K 8pQvxiHaHNZyod96PSioyjDRLw/XG4W/tTewBU6RVVz/aTWGIh7JpMci4aU1kR6Ys8 MCHE4g/FOfIUyxK79pRmH7bq11ulHSUHpZ48ozdpyXcdqDs0sYm4m+Dcr8rGNNzpWV ERfLEipnsQV7FEtdJpJ/lS81f01N11XedICucDHKv+EbB9mBj2HqETHpVwr1XdOs+z q0CjX8NJ+o27A== Content-Language: en-US Received-SPF: pass client-ip=212.193.52.17; envelope-from=mikpom@mikpom.ru; helo=mikpom.ru X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 09 Nov 2022 12:17:24 -0500 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:247450 Archived-At: Greetings emacs devs, or to whom it may concern! I am having troubles with dired listings of remote directories containing many files and symlinks. When I scroll through such a dired buffer Emacs lags (over a second) on every page-down scroll. The problem is easily reproducible with -Q if the directory contains a hundred files and a hundred symbolic links to some other hundred files somewhere on the filesystem. If I kill the links in the dired buffer (without deleting any actual files or links) then everything scrolls smoothly as usual. Could you please check if thats a real issue in your setting? ssh connection I am using is not so slow... Kind regards, -Mikhail In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6)  of 2022-09-12 built on frederik Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Arch Linux Configured using:  'configure --with-x-toolkit=gtk3 --with-native-compilation  --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib  --localstatedir=/var --with-cairo --with-harfbuzz --with-libsystemd  --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fstack-clash-protection -fcf-protection -g  -ffile-prefix-map=/build/emacs/src=/usr/src/debug -flto=auto'  'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings:   value of $LANG: en_US.UTF-8   locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect:   shell-dirtrack-mode: t   tooltip-mode: t   global-eldoc-mode: t   show-paren-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t   buffer-read-only: t   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-aux dired dired-loaddefs tramp-sh tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs cl-loaddefs cl-lib password-cache json subr-x map seq byte-opt gv bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 103629 9492)  (symbols 48 8400 0)  (strings 32 27457 1311)  (string-bytes 1 928685)  (vectors 16 17653)  (vector-slots 8 390979 10629)  (floats 8 27 45)  (intervals 56 2626 0)  (buffers 992 14))