From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 13:14:01 2010 Received: (at submit) by debbugs.gnu.org; 22 Apr 2010 17:14:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4zyT-0000kv-6c for submit@debbugs.gnu.org; Thu, 22 Apr 2010 13:14:01 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4zyR-0000kp-6M for submit@debbugs.gnu.org; Thu, 22 Apr 2010 13:13:59 -0400 Received: from lists.gnu.org ([199.232.76.165]:48756) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O4zyM-0002xj-9I for submit@debbugs.gnu.org; Thu, 22 Apr 2010 13:13:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4zyL-00042h-Ca for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 13:13:53 -0400 Received: from [199.232.76.173] (port=41777 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4zyK-00041U-L9 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 13:13:52 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1O4zyJ-0002xb-99 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 13:13:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 Received: from fencepost.gnu.org ([140.186.70.10]:57404) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1O4zyJ-0002xX-2X for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 13:13:51 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4zyJ-0000bX-0J for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2010 13:13:51 -0400 To: bug-gnu-emacs@gnu.org Subject: recent emacs binary size increase by 800KB From: Dan Nicolaescu X-Debbugs-No-Ack: yes Date: Thu, 22 Apr 2010 13:13:50 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Looking at recent emacs builds: $ ls -l emacs-24* -rwx------ 1 dann dann 7541146 Apr 15 16:04 emacs-24.0.50.1* -rwx------ 1 dann dann 7545209 Apr 15 17:49 emacs-24.0.50.2* -rwx------ 3 dann dann 8405343 Apr 18 15:53 emacs-24.0.50.3* $ size -f emacs-24* text data bss dec hex filename 1847515 5426628 0 7274143 6efe9f emacs-24.0.50.1 1848083 5430148 0 7278231 6f0e97 emacs-24.0.50.2 1848275 6290116 0 8138391 7c2e97 emacs-24.0.50.3 The "data" segment size has increased between the .2 and .3 version by 800KB. The change responsible seems to be this: 2010-04-18 Stefan Monnier * loadup.el: Setup hash-cons for pure data. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 15:35:08 2010 Received: (at 6006) by debbugs.gnu.org; 22 Apr 2010 19:35:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O52B2-0001kr-50 for submit@debbugs.gnu.org; Thu, 22 Apr 2010 15:35:08 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O52B0-0001kQ-Jp for 6006@debbugs.gnu.org; Thu, 22 Apr 2010 15:35:07 -0400 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o3MJZ1wK021049; Thu, 22 Apr 2010 15:35:01 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 099CE70499; Thu, 22 Apr 2010 15:35:01 -0400 (EDT) From: Stefan Monnier To: Dan Nicolaescu Subject: Re: bug#6006: recent emacs binary size increase by 800KB Message-ID: References: Date: Thu, 22 Apr 2010 15:35:00 -0400 In-Reply-To: (Dan Nicolaescu's message of "Thu, 22 Apr 2010 13:13:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3519=0 X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: 6006 Cc: 6006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > The "data" segment size has increased between the .2 and .3 version > by 800KB. [...] > * loadup.el: Setup hash-cons for pure data. Yes, this patch makes Emacs use free up a fairly large hash-table just before dumping, so its image is larger, with a fair amount of memory that's not actually used (it's still allocated to the Emacs process but Emacs has it registered as "free for reuse"). Some of that memory can be recovered by adjusting the size of the pure-space (since the patch reduces the pure-space usage but didn't reduce the redefined size of the pure space), but not all. This said, I don't think it's a real problem since that memory is not really wasted (it will be used when Emacs starts to allocate), other than on the disk. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 16:45:22 2010 Received: (at 6006) by debbugs.gnu.org; 22 Apr 2010 20:45:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O53H0-0002DC-K8 for submit@debbugs.gnu.org; Thu, 22 Apr 2010 16:45:22 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O53Gy-0002D5-M5 for 6006@debbugs.gnu.org; Thu, 22 Apr 2010 16:45:21 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O53Gu-0002G8-DX; Thu, 22 Apr 2010 16:45:16 -0400 To: Stefan Monnier Subject: Re: bug#6006: recent emacs binary size increase by 800KB References: From: Dan Nicolaescu X-Debbugs-No-Ack: yes Date: Thu, 22 Apr 2010 16:45:16 -0400 In-Reply-To: (Stefan Monnier's message of "Thu\, 22 Apr 2010 15\:35\:00 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 6006 Cc: 6006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Stefan Monnier writes: >> The "data" segment size has increased between the .2 and .3 version >> by 800KB. > [...] >> * loadup.el: Setup hash-cons for pure data. > > Yes, this patch makes Emacs use free up a fairly large hash-table just > before dumping, so its image is larger, with a fair amount of memory > that's not actually used (it's still allocated to the Emacs process but > Emacs has it registered as "free for reuse"). > > Some of that memory can be recovered by adjusting the size of the > pure-space (since the patch reduces the pure-space usage but didn't > reduce the redefined size of the pure space), but not all. > > This said, I don't think it's a real problem since that memory is not > really wasted (it will be used when Emacs starts to allocate), other > than on the disk. Part of that memory will be read from the disk at start up.... What if you allocate the hash table with a bigger size when creating it? and maybe prefill it too. That way there's a higher chance that the memory will be returned to the OS when freed... From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 14:05:44 2011 Received: (at control) by debbugs.gnu.org; 13 Jul 2011 18:05:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh3oe-0001TQ-7v for submit@debbugs.gnu.org; Wed, 13 Jul 2011 14:05:44 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh3oc-0001T9-Ca for control@debbugs.gnu.org; Wed, 13 Jul 2011 14:05:42 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qh3oR-00024t-Fe for control@debbugs.gnu.org; Wed, 13 Jul 2011 20:05:31 +0200 Date: Wed, 13 Jul 2011 20:05:30 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #6006 X-MailScanner-ID: 1Qh3oR-00024t-Fe X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311185131.61941@34q/b4Y5E7RO8RSdEvd7og X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 6006 wontfix close 6006 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 14:09:22 2011 Received: (at 6006) by debbugs.gnu.org; 13 Jul 2011 18:09:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh3s9-0001aT-LT for submit@debbugs.gnu.org; Wed, 13 Jul 2011 14:09:21 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh3s7-0001a4-LN for 6006@debbugs.gnu.org; Wed, 13 Jul 2011 14:09:20 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qh3rv-0002Aa-QX; Wed, 13 Jul 2011 20:09:07 +0200 From: Lars Magne Ingebrigtsen To: Stefan Monnier Subject: Re: bug#6006: recent emacs binary size increase by 800KB In-Reply-To: (Stefan Monnier's message of "Thu, 22 Apr 2010 15:35:00 -0400") Date: Wed, 13 Jul 2011 20:05:26 +0200 Message-ID: References: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Talking Heads's _The Name Of This Band Is Talking Heads (Disc 2: 1980-1981)_: "Born Under Punches (The Heat Goes On)" X-Hashcash: 1:23:110713:6006@debbugs.gnu.org::IsFUclAOrNoFFd23:000000000000000000000000000000000000000002sZc X-Hashcash: 1:23:110713:monnier@iro.umontreal.ca::BhFMOUO9nAjyn/2p:0000000000000000000000000000000000000UsGj X-Hashcash: 1:23:110713:dann@gnu.org::t9QNn8g4vAETlukD:00000iUwi MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Qh3rv-0002Aa-QX X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311185347.90802@DML3l543VsVzKDQOYqJSpQ X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6006 Cc: Dan Nicolaescu , 6006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: > This said, I don't think it's a real problem since that memory is not > really wasted (it will be used when Emacs starts to allocate), other > than on the disk. Makes sense, so I'm closing this report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From unknown Fri Jun 20 07:17:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Aug 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator