From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nix Newsgroups: gmane.emacs.devel Subject: Re: Emacs bzr memory footprint Date: Fri, 21 Oct 2011 13:05:42 +0100 Message-ID: <877h3ymtwp.fsf@spindle.srvr.nix> References: <83fwix2osa.fsf@gnu.org> <0B3EE7A4-D0D6-4D1E-ADC4-0BEE68F179B2@mit.edu> <87fwivwp37.fsf@turtle.gmx.de> <87sjmvpmd2.fsf@lifelogs.com> <87aa93wmc4.fsf@turtle.gmx.de> <87sjmnrdjw.fsf@spindle.srvr.nix> <87ty73mc0m.fsf@spindle.srvr.nix> <83aa8usqnt.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319198763 22986 80.91.229.12 (21 Oct 2011 12:06:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 12:06:03 +0000 (UTC) Cc: jwiegley@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 14:05:59 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RHDrJ-0000XN-7e for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 14:05:57 +0200 Original-Received: from localhost ([::1]:46605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHDrI-0004D7-Ee for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 08:05:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHDrE-0004Cv-NC for emacs-devel@gnu.org; Fri, 21 Oct 2011 08:05:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHDrA-0006of-09 for emacs-devel@gnu.org; Fri, 21 Oct 2011 08:05:52 -0400 Original-Received: from icebox.esperi.org.uk ([81.187.191.129]:33933 helo=mail.esperi.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHDr7-0006oO-S7; Fri, 21 Oct 2011 08:05:46 -0400 Original-Received: from esperi.org.uk (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.5/8.14.5) with ESMTP id p9LC5g22014770; Fri, 21 Oct 2011 13:05:42 +0100 Original-Received: (from nix@localhost) by esperi.org.uk (8.14.5/8.14.5/Submit) id p9LC5gtG012753; Fri, 21 Oct 2011 13:05:42 +0100 Emacs: it's like swatting a fly with a supernova. In-Reply-To: <83aa8usqnt.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Oct 2011 10:19:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-DCC-STAT_FI_X86_64_VIRTUAL-Metrics: spindle 1245; Body=3 Fuz1=3 Fuz2=3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 81.187.191.129 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:145385 Archived-At: On 21 Oct 2011, Eli Zaretskii outgrape: > Do you see a similar growth of the footprint in Emacs 23.3? None of > what you are describing seems to be specific to Emacs 24, so it would > be good to compare with the memory usage of Emacs 23.3. Sorry, I'm afraid I switched from XEmacs to Emacs during the 24.x development period and jumped straight onto the trunk, so I have no experience of 23.x. Ripping the lexbinds back out of my .emacs would be extremely unpleasant, but I'll see if I can manage it :) > As for memory fragmentation: this is on GNU/Linux, right? Yes. > If so, the > memory allocator used by Emacs should prevent any such fragmentation, > at least in the simple scenarios you described. So I don't think > memory fragmentation can explain what you see. What, even if what's happening is massive allocation of conses followed by allocation of longer-lived stuff followed by freeing of those conses? Conses are small: there's no way they'll go over the M_MMAP_THRESHOLD. -- NULL && (void)