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: Wed, 14 Mar 2012 13:47:30 -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 1331747282 13033 80.91.229.3 (14 Mar 2012 17:48:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 17:48:02 +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 18:48:01 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 1S7sIq-0007LV-Cz for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 18:48:00 +0100 Original-Received: from localhost ([::1]:35149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7sIp-00011N-Pz for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 13:47:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7sIm-000105-Mu for emacs-devel@gnu.org; Wed, 14 Mar 2012 13:47:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7sIP-0001B3-Pc for emacs-devel@gnu.org; Wed, 14 Mar 2012 13:47:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:35446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7sIP-0001Ar-Li for emacs-devel@gnu.org; Wed, 14 Mar 2012 13:47:33 -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="167993339" 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; 14 Mar 2012 13:47:31 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 4DF36AE2B3; Wed, 14 Mar 2012 13:47:30 -0400 (EDT) In-Reply-To: (T. V. Raman's message of "Wed, 14 Mar 2012 10:13:20 -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.183 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:149055 Archived-At: > You were spot on --- I had HISTSIZE set to infinity. Great. > have an infinitely long history. It worked correctly until about > May 2011, which is when Emacs 24 built from git/bzr started > displaying the memory leak behavior we have been discussing. 1G entries, leads to 4GB or 8GB array, so I'd guess that before May 2011, Emacs still computed those sizes using `int' (32bit) or something like that. Or it's simply when shell.el started to support HISTSIZE. > I've removed these from my shell environemnt, and Emacs 24 is > running happily with my full Emacs environment loaded. So the right fix might be for shell.el to allocate its history-ring more lazily. Stefan