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 On Emacs 24 Lucid Linux: Date: Tue, 13 Mar 2012 21:55:22 -0400 Message-ID: References: <20318.22787.38879.789013@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331690436 24455 80.91.229.3 (14 Mar 2012 02:00:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 02:00:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: "T.V. Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 14 03:00:35 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 1S7dVy-0001gC-KW for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 03:00:34 +0100 Original-Received: from localhost ([::1]:45360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7dVy-00077E-4M for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2012 22:00:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7dVv-00076m-3z for emacs-devel@gnu.org; Tue, 13 Mar 2012 22:00:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7dVt-0005KV-F9 for emacs-devel@gnu.org; Tue, 13 Mar 2012 22:00:30 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:36884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7dVt-0005K7-CC for emacs-devel@gnu.org; Tue, 13 Mar 2012 22:00:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicFAKU/KE9soXdS/2dsb2JhbACBX5x7eYhwnhmGGQSbGYQJ X-IronPort-AV: E=Sophos;i="4.73,1,1325480400"; d="scan'208";a="167908293" Original-Received: from 108-161-119-82.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([108.161.119.82]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Mar 2012 22:00:26 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id D832DAE08C; Tue, 13 Mar 2012 21:55:22 -0400 (EDT) In-Reply-To: (T. V. Raman's message of "Tue, 13 Mar 2012 16:53:22 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:149023 Archived-At: > 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