From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: 64-bit emacs crashes a lot Date: Sun, 18 Aug 2013 21:10:38 +0200 Message-ID: <52111C2E.7020301@alice.it> References: <520FD272.50907@alice.it> <520FDA06.8020206@cornell.edu> <520FF7FB.5030906@alice.it> <521107DE.40803@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376853086 27461 80.91.229.3 (18 Aug 2013 19:11:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Aug 2013 19:11:26 +0000 (UTC) Cc: emacs To: Ken Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 18 21:11:28 2013 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 1VB8Nq-0007cc-3J for ged-emacs-devel@m.gmane.org; Sun, 18 Aug 2013 21:11:26 +0200 Original-Received: from localhost ([::1]:39747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB8Np-0002ot-HM for ged-emacs-devel@m.gmane.org; Sun, 18 Aug 2013 15:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB8Nf-0002ng-6i for emacs-devel@gnu.org; Sun, 18 Aug 2013 15:11:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VB8NX-0000rS-Ev for emacs-devel@gnu.org; Sun, 18 Aug 2013 15:11:14 -0400 Original-Received: from smtp203.alice.it ([82.57.200.99]:39193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB8NX-0000rF-3X for emacs-devel@gnu.org; Sun, 18 Aug 2013 15:11:07 -0400 Original-Received: from [192.168.1.100] (79.2.111.188) by smtp203.alice.it (8.6.060.28) (authenticated as angelo.graziosi@alice.it) id 51F2748A01FCBCB0; Sun, 18 Aug 2013 21:11:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <521107DE.40803@cornell.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.99 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:162858 Archived-At: Il 18/08/2013 19.43, Ken Brown ha scritto: > On 8/17/2013 6:23 PM, Angelo Graziosi wrote: >> Il 17/08/2013 22.16, Ken Brown ha scritto: >>> >>> This probably means that the static heap isn't big enough for >>> --enable-checking=all on 32-bit Cygwin. I'll test it and increase it if >>> necessary. I may not get to this today, but I'll do it soon. (And you >>> can do it yourself locally if you're anxious to bootstrap right now.) >> >> OK, with 18MB it is still bootstrapping and has printed: >> >> ... >> Finding pointers to doc strings...done >> Dumping under the name emacs >> Static heap usage: 16099796 of 18874368 bytes >> ... >> >> but... really should we increase the static heap from 13 to 18 MB also >> for a not-checking bootstrap? > > No. I made the increase to 18 conditional on ENABLE_CHECKING. > >> Usually, in that case, the build log shows >> >> ... >> Static heap usage: 10273280 of 13631488 bytes >> ... >> Static heap usage: 5419520 of 13631488 bytes >> >> >> Doesn't it mean that the "end" product uses only about 5.2 MB? > > Yes, but you still need a bigger static heap for bootstrapping. While > bootstrap-emacs is being built, many *.el files get loaded, and this > requires a large static heap. Then bootstrap-emacs byte-compiles those > files. Now when emacs is built, the smaller *.elc files can be used, so > a smaller static heap suffices for that second step. > > By the way, it just occurred to me that the "static heap usage" report > isn't very informative. It shows how much of the static heap is in use > at the time emacs (or bootstrap-emacs) is dumped, but there might have > been more in use and then freed at some earlier stage. I changed > sheap.c:report_sheap_usage so that it reports the maximum usage, since > this is what determines how big the static heap needs to be. All this sounds good.. and interesting.. Thanks! Ciao, Angelo.