From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: memory usage Date: Mon, 11 Jun 2007 17:28:21 -0400 Message-ID: References: <87ps4244a9.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 1181597331 1690 80.91.229.12 (11 Jun 2007 21:28:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2007 21:28:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 11 23:28:49 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 1HxrRR-00054v-HL for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2007 23:28:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxrRR-0007Ed-16 for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2007 17:28:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxrR7-00078F-Au for emacs-devel@gnu.org; Mon, 11 Jun 2007 17:28:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxrR6-00077w-SE for emacs-devel@gnu.org; Mon, 11 Jun 2007 17:28:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxrR6-00077q-Hl for emacs-devel@gnu.org; Mon, 11 Jun 2007 17:28:28 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HxrR6-0003h5-77 for emacs-devel@gnu.org; Mon, 11 Jun 2007 17:28:28 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 995B52CEB87; Mon, 11 Jun 2007 17:28:27 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 968DF3FE0; Mon, 11 Jun 2007 17:28:21 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 7CC8B4C6D25; Mon, 11 Jun 2007 17:28:21 -0400 (EDT) In-Reply-To: <87ps4244a9.fsf@escher.local.home> (Stephen Berman's message of "Mon\, 11 Jun 2007 22\:36\:30 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) 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:72651 Archived-At: > 2007-06-03 on escher I have the impression, though I cannot be > certain, that memory usage is greater than it had been with earlier > builds. My current session has been running for 13+ hours; top shows: > PID %MEM VIRT SWAP RES CODE DATA SHR nFLT nDRT S PR NI %CPU COMMAND > 4707 54.5 623m 349m 274m 1476 602m 8336 8928 0 S 17 0 0.0 emacs 200MB of resident size sounds a bit large. Of course, it complely depends on what you do with it. Now that you mention it, I also see it here (my main Emacs process is at more than 600MB of RSS). Interestingly, I don't see it with my Emacs process running Gnus (it's at 45MB of RSS). Both of them were started on June 6. The 600MB process reports the appended info, which doesn't seem to justify its size (even if you mutliply all the data by 2 since this is a 64bit system and I'm not sure if the memory-report tool correctly takes it into account). Stefan Garbage collection stats: ((281590 . 116799) (22937 . 71) (14614 . 1238) 1039910 (23907 . 893363) (124 . 364) (18634 . 717) (37375 . 7234)) => 4505440+1868784 bytes in cons cells 1100976+3408 bytes in symbols 584560+49520 bytes in markers 1984+5824 bytes in floats 1043504+40152 bytes in intervals 1196000+231488 bytes in string headers 1039910 bytes of string chars 382512 bytes of vector headers 7146904 bytes of vector slots Total bytes in lisp objects: 19200966 (live 17001790, dead 2199176) Buffer ralloc memory usage: 54 buffers 7172725 bytes total (97049 in gaps) Size Gap Name 2167440 1998 *DOC* 1202880 2000 loaddefs.el 1018260 1885 ChangeLog | src 897402 2000 *Unicode Data* 719303 2000 monnier@iro.umontreal.ca--first%emacs--monnier--0--patch-478 199744 2000 fileio.c 174892 2000 icicles-fn.el 104255 2000 eval.c 104170 1564 font-lock.el | trunk 104170 1564 font-lock.el | release 97227 1977 term.c 78031 2000 complete.el 35706 2000 icicles-var.el 31587 1919 ChangeLog | lisp 26356 2000 hi-lock.el 21546 1896 vc-svn.el 19836 1841 css-mode.el 16021 129 *Completions* 12699 2000 ChangeLog | admin 7612 501 *MPC Albums* 7202 2000 =tagging-method 4754 2000 memory-usage.el 3851 1650 *Messages* 3464 574 *MPC Artists* 3464 1919 *code-converting-work* 2909 2000 *grep* 2846 2000 FOR-RELEASE 2120 1646 *cvs* | trunk 1772 2000 *Help* 804 1196 *vc-diff* 688 1782 *MPC Songs* 604 1540 *Buffer Details* 524 2000 *cvs* | release 432 1595 *MPC Genres* 304 2000 *cvs-tmp* 217 2000 *vc* 200 1952 foo.sml 191 2000 *scratch* 86 1914 *VC-log* 69 1960 *MPC-Status* 58 1956 *code-conversion-work* 51 2000 *cvs-commit* 25 1975 *Echo Area 0* 0 20 *Minibuf-0* 0 2000 *Minibuf-1* 0 2000 *Minibuf-2* 0 2000 *Echo Area 1* 0 2000 *mpc* 0 2000 *mpc download* 0 2000 *mpc download*<2> 0 2000 *Backtrace* 0 2000 *mpc download*<3> 0 2000 *cvs-tmp*<2> 0 2000 *mpc download*<4>