From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T.V. Raman" Newsgroups: gmane.emacs.devel Subject: Memory Usage On Emacs 24 Lucid Linux: Date: Tue, 13 Mar 2012 16:44:27 -0700 Message-ID: References: <20318.22787.38879.789013@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1331682277 5805 80.91.229.3 (13 Mar 2012 23:44:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2012 23:44:37 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 14 00:44:37 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S7bOO-0006SA-KH for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 00:44:36 +0100 Original-Received: from localhost ([::1]:57184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7bON-0008Hj-OW for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2012 19:44:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7bOK-0008Hb-Jd for emacs-devel@gnu.org; Tue, 13 Mar 2012 19:44:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7bOI-0004Ac-F5 for emacs-devel@gnu.org; Tue, 13 Mar 2012 19:44:32 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:41305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7bOI-0004AP-7p for emacs-devel@gnu.org; Tue, 13 Mar 2012 19:44:30 -0400 Original-Received: by iajr24 with SMTP id r24so1729049iaj.0 for ; Tue, 13 Mar 2012 16:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=hLxO9xXmbeCA4E6E4GqNWk9o55zeppzaU7cQX+Wc0VU=; b=MXdl0KnXUblHZ94xvN/Al4oxOHTT5JSNt1WBS9lu7ANkj0JvAPbm3PHJHijLTBmUnR fnkB36wUNlIAzRfzgNb4IOyLxECKphw76+K2169vgByyZNh+RAEBnExB3ZWYEuNw3Ajf Z5bALgLFQAA62NG9U+D2VT7sThJ2gQ/LvytIsOa9hxy+kGzOE0W0qeo8YghjuOv5jWjL +jExEYyYLdyg+iU3sjXeX0r9hCYMftphvdpevElFXLx9UdJLPgSNsZWKyl/8e3m6yUh2 QDmm8FChso6vnG4rpm5qZNaJpwJx2rPBLduUHsIfYtiPxXsFv3CgAm+R+Ph1RuJ3a3LA WqOg== Original-Received: by 10.43.52.138 with SMTP id vm10mr572607icb.31.1331682267312; Tue, 13 Mar 2012 16:44:27 -0700 (PDT) Original-Received: by 10.231.168.212 with HTTP; Tue, 13 Mar 2012 16:44:27 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149021 Archived-At: Hi Stephane, I started an emacs -q -- loaded memory-usage.el -- and produced memory-usage report -- attached below. It looks normal, as do the numbers reported by free no leak. My emacs world is admittedly complicated. If I load emacspeak and things start talking -- so emacs -q -l then I do see the memory numbers blowing up. If it is any help, emacspeak uses advice *heavily*. On the other hand, I am running emacs 24 successfuly on a 64 bit laptop and a 32-bit home desktop machine. Garbage collection stats: ((51337 . 9533) (14771 . 0) (73 . 107) 76102 325117 (67 . 81) (180 . 54) (3028 . 4598)) => 821392+152528 bytes in cons cells 709008+0 bytes in symbols 2920+4280 bytes in markers 1072+1296 bytes in floats 10080+3024 bytes in intervals 96896+147136 bytes in string headers 76102 bytes of string chars 76102 bytes of vector slots Total bytes in lisp objects: 2350851 (live 2042587, dead 308264) Buffer ralloc memory usage: 10 buffers 8865 bytes total (2382 in gaps) Size Gap Name 4632 463 memory-usage.el 778 77 *GNU Emacs* 521 1597 *Buffer Details* 329 33 *Messages* 191 20 *scratch* 82 20 *Echo Area 0* 42 20 *code-conversion-work* 0 20 *Minibuf-1* 0 20 *Minibuf-0* 0 20 *Echo Area 1* On 3/12/12, Stefan Monnier wrote: >> Just did a git pull -a to see if nmy memory woes on the 16-core >> workstation (HP Z600) were a thing of the past, alas No. > >> Here are some numbers that I hope are useful: > >> Running Emacs 23.2 on that machine, with my default .emacs >> loaded, RSS is about 235MB VSS about 430MB. This is an Emacs >> session that has been up for about a week. > >> Emacs 24 built from today's git snapshot: > >> Starting Emacs with the same .emacs loaded: > >> 0. All memory on the machine goes away to Emacs (started with 9GB >> of 12GB free) -- as reported by free. > >> 1. After running a garbage collect in that emacs (before GC, it >> was basically too slow to use) >> Running proced showed an RSS of 7gb and a VSS of approx 8GB. > >> I ran M-x memory-usage and here are the numbers. > >> Garbage collection stats: >> ((833982 . 321192) (57906 . 5) (116 . 491) 4504763 1000738985 (1539 . 520) >> (13100 . 7508) (171211 . 33823)) > >> => 13343712+5139072 bytes in cons cells >> 2779488+240 bytes in symbols >> 4640+19640 bytes in markers >> 24624+8320 bytes in floats >> 733600+420448 bytes in intervals >> 5478752+1082336 bytes in string headers >> 4504763 bytes of string chars >> 4504763 bytes of vector slots > > Hmm... there's a bug in the above output: it should say 1000738985 bytes > of vector slots. That a whole 1G of vector slots. Where could these > come from? > > Can you reproduce the above output with just "emacs; M-x memory-usage" > or do you need to do something more? Can you try to figure out which > part of your setup triggers this behavior? > > > Stefan >