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 19:24:36 -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 1331691886 570 80.91.229.3 (14 Mar 2012 02:24:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 02:24:46 +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 03:24:45 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 1S7dtM-0000L3-Uf for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 03:24:45 +0100 Original-Received: from localhost ([::1]:50036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7dtM-0000bS-3q for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2012 22:24:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7dtI-0000aB-Vo for emacs-devel@gnu.org; Tue, 13 Mar 2012 22:24:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7dtG-0001pf-OT for emacs-devel@gnu.org; Tue, 13 Mar 2012 22:24:40 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:41630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7dtG-0001pS-H7 for emacs-devel@gnu.org; Tue, 13 Mar 2012 22:24:38 -0400 Original-Received: by iajr24 with SMTP id r24so1907213iaj.0 for ; Tue, 13 Mar 2012 19:24:36 -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=z28+ZYBiXyaPFNHNWaaSkmNBa3Lc8oIs5thCRn8TrWw=; b=fBe4Nn0kF+5M98izEBOTI7AtP7PbcAXKgv29cDwCAG0p/dgbXs5C2vEQGG/+zx/5+t XP6b+oLR7v69htjbALllOREtOleO+/e/Stul6BiNtFqBLnVIk4J/JElwh2RwBpOtU+Ml /5g48UqyAGQwHFGNBxFP7g52z9GDa+kdnkUFegUJ379w551Wm7VN9uqzmxv/466shpQJ L0qenOwy5x52NBWRtjss+kk+ziCURzcNiSXU+P7Fd4+AXlDtr+/Jqs+/ud+hutmAY7bv In1CWnCgtVk4XlYvMpQ2yD7dGabcCUjZcRUzftH9Rn2wIM1XEp6YIgoNdMhEzC/LfVQ7 E+gA== Original-Received: by 10.50.217.137 with SMTP id oy9mr1369055igc.31.1331691876698; Tue, 13 Mar 2012 19:24:36 -0700 (PDT) Original-Received: by 10.231.168.212 with HTTP; Tue, 13 Mar 2012 19:24:36 -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:149026 Archived-At: I'll check tomorrow when I get to work, but you may be correct; I do remember setting up a histsize hack a long time ago so that Ididn't have to remember long, complex commandline utterances. This would also explain why this is biting only on the office workstation and not at either home or on the laptop. -- Best Regards, --raman -- Best Regards, --raman On 3/13/12, Stefan Monnier wrote: >> After running emacs -q -- and then M-x shell, I see all of the >> memory on the machine getting shewed up -- at least as reported >> by free. > > Aha! > >> Shell: emacs -q M-x shell M-x memory-usage > >> Garbage collection stats: >> ((54977 . 10205) (15045 . 0) (90 . 121) 417724 1000327014 (67 . 191) >> (117 . 161) (25648 . 1043)) > >> => 879632+163280 bytes in cons cells >> 722160+0 bytes in symbols >> 3600+4840 bytes in markers >> 1072+3056 bytes in floats >> 6552+9016 bytes in intervals >> 820736+33376 bytes in string headers >> 417724 bytes of string chars >> 417724 bytes of vector slots > >> Total bytes in lisp objects: 1003392058 (live 1003178490, dead 213568) > > OK, that's very helpful, it narrows it down a good deal. > Now, all we have to figure out is how on earth does "M-x shell" create > so many (or such large) vectors! > Could it be you have $HISTSIZE set to a really large number? > > > Stefan >