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: Time to drop the pre-dump phase in the build? Date: Sat, 11 Jan 2014 00:13:09 -0500 Message-ID: References: <20140110191530.5772E38019B@snark.thyrsus.com> <52D071EC.4090607@dancol.org> <52D08B37.5090505@dancol.org> <52D0BC7C.2000700@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389417208 32178 80.91.229.3 (11 Jan 2014 05:13:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2014 05:13:28 +0000 (UTC) Cc: "Eric S. Raymond" , stephen@xemacs.org, Emacs developers To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 11 06:13:34 2014 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 1W1qt3-0005gN-JU for ged-emacs-devel@m.gmane.org; Sat, 11 Jan 2014 06:13:33 +0100 Original-Received: from localhost ([::1]:60194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1qt3-0000gz-4N for ged-emacs-devel@m.gmane.org; Sat, 11 Jan 2014 00:13:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1qst-0000gC-Qc for emacs-devel@gnu.org; Sat, 11 Jan 2014 00:13:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1qsh-0003T0-8j for emacs-devel@gnu.org; Sat, 11 Jan 2014 00:13:23 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1qsh-0003SJ-50 for emacs-devel@gnu.org; Sat, 11 Jan 2014 00:13:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxKG9/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFFxKG9/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="44709522" Original-Received: from 69-196-161-189.dsl.teksavvy.com (HELO pastel.home) ([69.196.161.189]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Jan 2014 00:13:10 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D04E66045A; Sat, 11 Jan 2014 00:13:09 -0500 (EST) In-Reply-To: <52D0BC7C.2000700@dancol.org> (Daniel Colascione's message of "Fri, 10 Jan 2014 19:37:32 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (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:168061 Archived-At: > Another possibility is to just allocate enough space in the emacs image > itself in BSS, then replace that mapping with a view of the dump file. Indeed, that should work, assuming you can mmap into existing space. > image base). Or we can make the dump file a section in the image, but at > that point, we're starting to talk about portability problems again. But not nearly as bad: the main dump problem we have is with generating the `emacs' executable, whereas here we'd only need to generate the "swap file" which is later loaded into the same executable. Should still be a lot more portable. > By the way: is it me, or are we dirtying far too much of the current emacs > image? On my Emacs, we're dirtying (and COWing) 8MB; if I make > Fgarbage_collect a no-op, that drops to 4MB. For sure, GC will dirty up pretty much all pages that hold Lisp objects (except for those in the purespace), because of the need to set/reset the `mark' bit. Stefan