From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: PURESIZE increased (again) Date: Wed, 26 Apr 2006 15:50:12 +0200 Message-ID: References: <87lku5u6tx.fsf@pacem.orebokech.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146059463 30919 80.91.229.2 (26 Apr 2006 13:51:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 13:51:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 15:51:03 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYkPe-0007k1-3A for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 15:50:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYkPd-0005Vs-Kn for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 09:50:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYkPQ-0005Vc-2q for emacs-devel@gnu.org; Wed, 26 Apr 2006 09:50:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYkPO-0005VM-U6 for emacs-devel@gnu.org; Wed, 26 Apr 2006 09:50:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYkPO-0005VJ-Oa for emacs-devel@gnu.org; Wed, 26 Apr 2006 09:50:22 -0400 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYkS0-0004e0-UB; Wed, 26 Apr 2006 09:53:05 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.6/8.13.6) with ESMTP id k3QDoDSK007760; Wed, 26 Apr 2006 15:50:13 +0200 (MEST) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 1DC4E1177D; Wed, 26 Apr 2006 15:50:12 +0200 (CEST) Original-To: Eli Zaretskii X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY; Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m, tWj]&}, qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi, +g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Followup-To: Eli Zaretskii , emacs-devel@gnu.org User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) X-DCC-EATSERVER-Metrics: gemini 1166; Body=2 Fuz1=2 Fuz2=2 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:53476 Archived-At: On Fri, Apr 21 2006, Eli Zaretskii wrote: >> From: Reiner Steib >> Cc: romain@orebokech.com, emacs-devel@gnu.org >> Date: Thu, 20 Apr 2006 23:03:03 +0200 >> >> How can I investigate? > > Run temacs under GDB, put a breakpoint on Fload, and each time it > breaks print the value of pure_bytes_used. Then post here the > results; perhaps PURESIZE needs to be bumped up after all. Sorry for the late answer. I still get an overflow on 64 bit with today's sources (I can do the same on 32 bit if it's useful): --8<---------------cut here---------------start------------->8--- $ cd [...]/emacs/cvs-HEAD/emacs/src$ grep define.BASE_PURESIZE puresize.h #define BASE_PURESIZE (1205000 + SYSTEM_PURESIZE_EXTRA + SITELOAD_PURESIZE_EXTRA) $ cd [...]/emacs/cvs-HEAD/x86_64/src/; gdb ./temacs GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. [...] Breakpoint 1 at 0x556da0: file [...]/emacs/src/sysdep.c, line 1373. (gdb) break lread.c:717 Breakpoint 2 at 0x5e79dc: file [...]/emacs/src/lread.c, line 717. (gdb) run -batch -l loadup dump Starting program: [...]/emacs/cvs-HEAD/x86_64/src/temacs -batch -l loadup dump [Thread debugging using libthread_db enabled] [New Thread 182940272320 (LWP 30412)] [Switching to Thread 182940272320 (LWP 30412)] Breakpoint 2, Fload (file=11077635, noerror=10658513, nomessage=10658513, nosuffix=10658513, must_suffix=10658513) at [...]/emacs/src/lread.c:718 718 register int fd = -1; (gdb) print pure_bytes_used [ `print pure_bytes_used' and `continue'; only lines matching `Loading\|^\$' shown ] $1 = 108747 Loading loadup.el (source)... $1 = 108747 Loading loadup.el (source)... $2 = 108788 Loading emacs-lisp/byte-run... $3 = 114536 Loading emacs-lisp/backquote... $4 = 118000 Loading subr... $5 = 205328 Loading version.el (source)... $6 = 208625 Loading widget... $7 = 209471 Loading custom... $8 = 241496 Loading emacs-lisp/map-ynp... $9 = 248473 Loading env... $10 = 253068 Loading cus-start... $11 = 255909 Loading international/mule... $12 = 317596 Loading international/mule-conf.el (source)... $13 = 327085 Loading format... $14 = 350864 Loading bindings... $15 = 388019 Loading files... $16 = 537811 Loading cus-face... $17 = 556913 Loading faces... $18 = 638354 Loading loaddefs.el (source)... $19 = 831317 Loading simple... $20 = 973359 Loading help... $21 = 1011360 Loading international/mule-cmds... $22 = 1089544 Loading case-table... $23 = 1095208 Loading international/utf-8... $24 = 1120978 Loading international/utf-16... $25 = 1173558 Loading international/characters... $26 = 1176406 Loading international/latin-1 (source)... $27 = 1176406 Loading international/latin-2 (source)... $28 = 1176448 Loading international/latin-3 (source)... $29 = 1176488 Loading international/latin-4 (source)... $30 = 1176528 Loading international/latin-5 (source)... $31 = 1176568 Loading international/latin-8 (source)... $32 = 1176608 Loading international/latin-9 (source)... $33 = 1176648 Loading language/chinese... $34 = 1188035 Loading language/cyrillic... $35 = 1200328 Loading language/indian... $36 = 1205072 Loading language/devanagari (source)... $37 = 1205496 Loading language/malayalam (source)... $38 = 1205728 Loading language/tamil (source)... $39 = 1205944 Loading language/kannada (source)... $40 = 1206348 Loading language/english (source)... $41 = 1206518 Loading language/ethiopic... $42 = 1208167 Loading language/european... $43 = 1227713 Loading language/czech (source)... $44 = 1228054 Loading language/slovak (source)... $45 = 1228391 Loading language/romanian (source)... $46 = 1228745 Loading language/greek (source)... $47 = 1229686 Loading language/hebrew (source)... $48 = 1231287 Loading language/japanese (source)... $49 = 1235385 Loading language/korean (source)... $50 = 1237607 Loading language/lao (source)... $51 = 1238336 Loading language/thai (source)... $52 = 1240061 Loading language/tibetan... $53 = 1287208 Loading language/vietnamese... $54 = 1292846 Loading language/misc-lang (source)... $55 = 1293018 Loading language/utf-8-lang (source)... $56 = 1293803 Loading language/georgian (source)... $57 = 1294121 Loading international/ucs-tables... $58 = 1303955 Loading indent... $59 = 1317264 Loading window... $60 = 1342250 Loading frame... $61 = 1377063 Loading term/tty-colors... $62 = 1384552 Loading font-core... $63 = 1392250 Loading facemenu... $64 = 1410597 Loading emacs-lisp/syntax... $65 = 1415424 Loading font-lock... $66 = 1466936 Loading jit-lock... $67 = 1480512 Loading mouse... $68 = 1532487 Loading scroll-bar... $69 = 1544909 Loading select... $70 = 1555983 Loading emacs-lisp/timer... $71 = 1572540 Loading isearch... $72 = 1633608 Loading rfn-eshadow... $73 = 1641876 Loading menu-bar... $74 = 1682850 Loading paths.el (source)... $75 = 1686340 Loading startup... $76 = 1746594 Loading emacs-lisp/lisp... $77 = 1762973 Loading textmodes/page... $78 = 1765605 Loading register... $79 = 1776122 Loading textmodes/paragraphs... $80 = 1785931 Loading emacs-lisp/lisp-mode... $81 = 1812188 Loading textmodes/text-mode... $82 = 1816570 Loading textmodes/fill... $83 = 1848273 Loading replace... $84 = 1894000 Loading abbrev... $85 = 1904972 Loading buff-menu... $86 = 1926450 Loading fringe... $87 = 1933480 Loading image... $88 = 1945720 Loading international/fontset... $89 = 1968027 Loading dnd... $90 = 1973102 Loading mwheel... $91 = 1982031 Loading tool-bar... $92 = 1991013 Loading x-dnd... $93 = 3206 Loading emacs-lisp/float-sup... $94 = 3864 Loading vc-hooks... $95 = 785 Loading jka-cmpr-hook... $96 = 774 Loading ediff-hook... $97 = 1055 Loading tooltip... $98 = 944 $99 = 986 (gdb) continue Continuing. Dumping under names emacs and emacs-22.0.50.7 emacs:0:Pure Lisp storage overflow (approx. 2157456 bytes needed) 9296 pure bytes used Program exited normally. (gdb) --8<---------------cut here---------------end--------------->8--- Maybe you could run this output through your awk script. >> Will it cause problems? > > Not grave problems (we have plan B for such situations), but it > shouldn't happen. I also noticed an enormous memory consumption as pointed out in the thread "mem leak" (started by Miles): http://thread.gmane.org/gmane.emacs.devel/53300/focus=53311 Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/