From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#122: 23.0.60; Slowdown in directory scanning over time. Date: Thu, 11 Sep 2008 00:18:54 -0400 Message-ID: <87fxo771sh.fsf@cyd.mit.edu> References: <87r68bwgu9.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 122@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221107269 13127 80.91.229.12 (11 Sep 2008 04:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 04:27:49 +0000 (UTC) Cc: 122@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org, rms@gnu.org To: Len Trigg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 06:28:44 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KddnO-0001Zz-PC for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 06:28:43 +0200 Original-Received: from localhost ([127.0.0.1]:56498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KddmO-0002VK-Ge for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 00:27:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KddmK-0002SD-EX for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 00:27:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KddmJ-0002Rb-Qo for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 00:27:35 -0400 Original-Received: from [199.232.76.173] (port=40415 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KddmJ-0002RO-KR for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 00:27:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58346) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KddmJ-0003j7-4K for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 00:27:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8B4RXN1014785; Wed, 10 Sep 2008 21:27:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8B4P4ZK013444; Wed, 10 Sep 2008 21:25:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Sep 2008 04:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 122 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122110656011216 (code B ref -1); Thu, 11 Sep 2008 04:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 11 Sep 2008 04:16:00 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8B4FupC011209 for ; Wed, 10 Sep 2008 21:15:58 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kddb2-0003dK-2m for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 00:15:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kddb0-0003bn-Cj for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 00:15:55 -0400 Original-Received: from [199.232.76.173] (port=37094 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kddb0-0003bZ-4K for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 00:15:54 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:59391) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kddaw-0001up-A0; Thu, 11 Sep 2008 00:15:50 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id BF78957E32F; Thu, 11 Sep 2008 00:18:54 -0400 (EDT) In-Reply-To: (Len Trigg's message of "Thu, 11 Sep 2008 15:29:24 +1200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 11 Sep 2008 00:27:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20460 Archived-At: Len Trigg writes: > OK, I started a new emacs a couple of days ago under gdb. I ran the > lisp snippet scanning /usr/bin and it reported 0 seconds... Today the > lisp snippet took 7 seconds to run. Again, I repeated the call and > took several backtraces. > > The calls seem to be in a fairly even balance of mixture of > Fget_buffer and Fgarbage_collect. Why creating a list of files in a > directory should be calling get_buffer is beyond me. list-buffers > shows about 40 buffers, and when I try switch-to-buffer with a leading > space, there are about 200 buffers listed (about 170 of which are > named like *code-conversion-work*) That's very odd: those buffers are used for code conversion, and they ought to be killed automatically. Could you check if you have anything unusual in kill-buffer-query-functions or kill-buffer hook?