GNU bug report logs - #961
23.0.60; Excess consing visiting files

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Thu, 11 Sep 2008 11:15:05 UTC

Severity: normal

Merged with 917, 960

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 961 in the body.
You can then email your comments to 961 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#961; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Richard M. Stallman" <rms <at> gnu.org>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; Excess consing visiting files
Date: Thu, 11 Sep 2008 07:03:36 -0400
I have noticed that there are times when just typing o in Dired
to visit a fairly small file causes a GC every time.
It does not do that when I first start Emacs, but it does
do an unreasonable amount of consing.

I did `emacs -Q', then defined the functions gc-set-base and
gc-info as shown in my other message.  Then I visited a directory
in which the following file was called out-35:

======================================================================
Content-Type: text/plain; charset=ISO-8859-15
From: "Richard M. Stallman" <rms <at> gnu.org>
To: rms
Subject: Testing
bcc: rms-outgoing <at> gnu.org
Reply-to: rms <at> gnu.org
--text follows this line--
This is a test message so I can see how much consing Emacs does.
======================================================================

Just to make things more stable, I typed o for another file in the
directory first.  Then I moved to the line for out-35, and typed M-* o
M-* and got this output:

In Emacs 23

C=47815 S=6631(92347) V=276 SYM=8 MISC=2674 INT=1173
C=58843 S=9776(135489) V=285 SYM=9 MISC=2727 INT=1174

In Emacs 22.2

C=21999 S=2025(39136) V=118 SYM=2 MISC=3904 INT=654
C=23214 S=2729(51808) V=118 SYM=3 MISC=4121 INT=655

They are both unreasonably large, but Emacs 23 conses 40k
of strings, which is really amazing for a 215-character file.

When I get into the situation where each file I visit causes
a GC, I will measure that.



In GNU Emacs 23.0.60.6 (mipsel-unknown-linux-gnu, GTK+ Version 2.12.11)
 of 2008-09-10 on lemote-menglan
configured using `configure  'CFLAGS=-O0 -g -Wno-pointer-sign' 'mipsel-unknown-linux-gnu' 'build_alias=mipsel-unknown-linux-gnu' 'host_alias=mipsel-unknown-linux-gnu' 'target_alias=mipsel-unknown-linux-gnu''

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
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Mail

Minor modes in effect:
  gpm-mouse-mode: t
  tooltip-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
2 3 C-u C-n C-n I n SPC E m a c s SPC 2 2 . 2 RET RET 
C-x i f o o RET C-a C-u C-p C-p C-p C-p C-o C-o I SPC 
m a d e SPC a SPC C-a C-k I SPC h a v e SPC n o t i 
c e d SPC t h a t SPC s o e t i m e s C-u C-b C-b C-b 
m C-e SPC j u s t SPC t y p i n g SPC o SPC i n SPC 
D i r e d RET t o SPC v i s i t SPC a SPC f a i r l 
y SPC s m a l l SPC f i l e SPC c a u s e s SPC a SPC 
G C SPC e v e r y SPC t i m e . RET I t SPC d o e s 
SPC n t SPC d o ESC b C-b C-b o C-e t h a t C-u C-b 
SPC C-e SPC w h e n SPC I SPC f i r s t SPC s t a r 
t SPC E a c DEL DEL m a c s , SPC b u t SPC i t SPC 
d i e s RET DEL DEL DEL DEL o e d RET d o SPC C-p C-e 
DEL s C-n SPC DEL a n SPC u n r e a s o n a b l e SPC 
a m o u t SPC DEL DEL n t SPC o f SPC c o n s i n g 
, C-a C-p C-p C-p C-u C-u C-u C-k ESC x r e p o r t 
TAB RET

Recent messages:
Sending...
Wrote /home/rms/outgoing/out-34
Sending...done
Expunging deleted messages...done
Quit [2 times]
Sending...
Wrote /home/rms/outgoing/out-35
Sending...done
Mark set [3 times]
Auto-saving...done




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#961; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 961 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: rms <at> gnu.org
Cc: 961 <at> debbugs.gnu.org
Subject: Re: bug#961: 23.0.60; Excess consing visiting files
Date: Thu, 11 Sep 2008 13:40:02 +0200
> I have noticed that there are times when just typing o in Dired
> to visit a fairly small file causes a GC every time.
> It does not do that when I first start Emacs, but it does
> do an unreasonable amount of consing.

It might be completely unrelated but did you look at Bug#122?  Len Trigg
reports that he had 200 open buffers "(about 170 of which are named like
*code-conversion-work*<nnn>)".

martin




Merged 917 960 961. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 11 Sep 2008 16:15:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#961; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #17 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Richard M. Stallman" <rms <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>, 961 <at> debbugs.gnu.org
Cc: bug-submit-list <at> donarmstrong.com, 961 <at> debbugs.gnu.org,
        bug-gnu-emacs <at> gnu.org
Subject: Re: bug#961: 23.0.60; Excess consing visiting files
Date: Thu, 11 Sep 2008 13:08:05 -0400
    It might be completely unrelated but did you look at Bug#122?  Len Trigg
    reports that he had 200 open buffers "(about 170 of which are named like
    *code-conversion-work*<nnn>)".

I just saw that a few minutes ago.

Just now I have one buffer called ` *code-conversion-work*'
and one called ` *code-converting-work*'.  I think these names
are confusingly similar; they should be changed so that it is clear
why they are different and what each one is used for.

But there is only one of each.  This certainly does not explain why,
shortly after `emacs -Q', visiting that short file makes 40k of strings.

Next time it gets slow, I will investigate what hidden buffers I
have,






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#961; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

bug closed, send any further explanations to rms <at> gnu.org Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Thu, 24 Jun 2010 18:24:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 Jul 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 333 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.