From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 22.1.50; insert-file-contents is slow under tramp Date: Thu, 23 Aug 2007 14:33:39 +0200 Message-ID: <87veb6l9b0.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187872435 14648 80.91.229.12 (23 Aug 2007 12:33:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 12:33:55 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 23 14:33:52 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IOBsi-0004B2-VF for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 14:33:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOBsi-0002VM-7n for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 08:33:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOBsf-0002V1-MQ for emacs-devel@gnu.org; Thu, 23 Aug 2007 08:33:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOBse-0002Ud-OG for emacs-devel@gnu.org; Thu, 23 Aug 2007 08:33:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOBse-0002Ua-Lt for emacs-devel@gnu.org; Thu, 23 Aug 2007 08:33:44 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOBse-0004D7-DV for emacs-devel@gnu.org; Thu, 23 Aug 2007 08:33:44 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOBwd-0002KO-BY for emacs-pretest-bug@gnu.org; Thu, 23 Aug 2007 08:37:51 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IOBsc-0004Cl-VV for emacs-pretest-bug@gnu.org; Thu, 23 Aug 2007 08:33:43 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IOBsc-0004Ca-El for emacs-pretest-bug@gnu.org; Thu, 23 Aug 2007 08:33:42 -0400 Original-Received: (qmail invoked by alias); 23 Aug 2007 12:33:40 -0000 Original-Received: from i577BCBE3.versanet.de (EHLO escher.local.home) [87.123.203.227] by mail.gmx.net (mp026) with SMTP; 23 Aug 2007 14:33:40 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX19jbdAO0yFjddU4Obfl/TQUUqCo24SNWL3qlU1BcA Xry9gg4cbNfx4A Original-Received: by escher.local.home (Postfix, from userid 1000) id BA8A3546DD; Thu, 23 Aug 2007 14:33:39 +0200 (CEST) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77026 gmane.emacs.pretest.bugs:19594 Archived-At: 1. emacs -Q 2. I type C-x d and at the prompt type "/localhost:/ RET" and when prompted type my user password and then complete the path to some directory that contains a fairly large file (> 1MB is enough to clearly show the problem), e.g. the lisp directory of the Emacs sources. 3. I put the cursor on a large file, e.g. ChangeLog.12 (1251246 bytes) and press RET. On my machine it takes ~20 seconds for the buffer visiting this file to appear and during that time emacs is consuming almost 100% CPU. If at step 2 I directly enter the path to the lisp directory of the Emacs sources, avoiding tramp, and then do step 3, the buffer appears almost instantly, as usual. So the slowdown is only with tramp (also if I use a different user, e.g. with /su::/, which is how I first encountered the problem). The slowdown seems to be proportional to the size of the file, so not too long (but noticeable) with small files. Using edebug I found the slowdown occurs when insert-file-contents is called in find-file-noselect-1. I don't know how to debug it further. This slowdown did not exist in my previous Emacs build from 2007-06-30. In GNU Emacs 22.1.50.7 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of 2007-08-21 on escher Windowing system distributor `The X.Org Foundation', version 11.0.70199902 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-agent-mode: t shell-dirtrack-mode: t gnus-topic-mode: t gnus-undo-mode: t tabbar-mwheel-mode: t tabbar-mode: t recentf-mode: t display-time-mode: t show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: identity Recent input: e s r s c v e / l i l i s C-c j m a / o 5 0 0 C-s t r a m C-w C-s C-s C-a C-s C-s C-r C-r SPC SPC SPC q M-x r e p o r b Recent messages: Fetching headers for gmane.emacs.devel...done Loading cl-seq...done Loading cl-extra...done Generating summary...done Mark set Mark saved where search started [2 times] Loading w3m-symbol...done Loading w3m-form...done Making completion list... Loading emacsbug...done