From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Merging scratch/no-purespace to remove unexec and purespace Date: Wed, 18 Dec 2024 07:56:27 +0100 Message-ID: <87seql7a3o.fsf@gmail.com> References: <87zfku6ra9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8249"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Kangas , emacs-devel@gnu.org, Pip Cet To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 18 07:57:43 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tNo07-00020H-FU for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Dec 2024 07:57:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNnz5-0003Pj-AJ; Wed, 18 Dec 2024 01:56:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNnz3-0003Ov-K6 for emacs-devel@gnu.org; Wed, 18 Dec 2024 01:56:37 -0500 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNnyy-00071A-3s for emacs-devel@gnu.org; Wed, 18 Dec 2024 01:56:37 -0500 Original-Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-aa689a37dd4so1161607166b.3 for ; Tue, 17 Dec 2024 22:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734504989; x=1735109789; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=A/UT7EBFfYh0eY1S24sJWJ77O54LrzzZIk7NgLbRmYM=; b=dDhQobVFcWzKD7MiMbaQeyI99rAa5IOYfEO7wNJ3CTk9m3kkp2gCiTy9/VNi4MsFQ5 8EpBAd7tjc6WsnkQjxCdycTS14SQZz9OBEPRlCmOxf6PrMHbvSRmnC1qRjuVVrM5vYqf DulDaz8SRMyFuGq4NYBPsWdTVaBWpjBRmiOWTtr6rsu9GPKV6YTiOz1YA87i+5gGCHsv DjJLhstUJYpzNjfUf1dJAbTY/cbTjM2C4K+Ad5B284ORU/D/xvJtE0nztpW4zwsewNZ1 mTckNy8f42cuVihO9gXkHCxtyiJHPLqxL5dWXyTmX3aSmcL6iQzkCN4i+J22md2pC6Ae m8fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734504989; x=1735109789; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=A/UT7EBFfYh0eY1S24sJWJ77O54LrzzZIk7NgLbRmYM=; b=gvyjFd6h+IWbHoqi9+wsBb/DOoKQ9Zu7XAdjVIQ8RKw3/Cow8VMVotJByBIHHtWQcg XRJLnfH0AtgwhG/2d2Bsm/g4j1ROaFSsXEed0ZPjV/l27wkqd+xwWwWCgks2h+E29Bz+ 6Gi5+UNoa8CEUIjHEBUxEmyGBZPbsPx2UU5poa0DuAyUZecLw8E7aB4PcCF5wmMrO5w0 /KSwgxOEfGcOsN9hGSUIkzHzpKF7q7E7CT6ziCfopcpiEESgp85RSjSE8yp2LlH29KJl ROPXJcj5ag1gpToZ8KRb8c3cB+IdSY5O9uoRyQDae80j5Sb9u99zy7HYeC9WFR/Xm3fr 4KmA== X-Forwarded-Encrypted: i=1; AJvYcCX29fUVYP91GRjy5Hd6gKpWgp4N2WAOty4LvEw+tjwewwwE9uWLWB8x9VZAgA/Ec7ku4zPXcUACPdzFSQ==@gnu.org X-Gm-Message-State: AOJu0Yw0juO4frEAGqtCHvgngk3oELB/CpJkK+13vV1my3q6NjnkSQVY j+BrwoJY6slmr/NGzIVb4a5qdrLIVyvD6YZIgggp09BBIgGyksqk X-Gm-Gg: ASbGnctR7Q0CVw5ZxkgjzSy1mIJZJAJSWS6qMDnHBL05VsXizrgZg1EdzXzyEGGXrfD ug+urZJofxf0vwegufufmR74AETRyZaKT9pFffL9tW+Vk2skckjLR6YI7LVyMvR3xaETzjR8OH7 7wHv7A/6g6u2j/5dr13QXiyWoY9ZzjksB+ZOtm4V4DnJv9ofRo/x/izTzGvFcHZBYA1JrXYYNdg 1FXcpDUf1RSgY4q4Q0rE7Dh20bLRltERGjBVzeQhJW1AqIIxQfZAVw= X-Google-Smtp-Source: AGHT+IGt82ktL1Y8aXiF4CAs/K/NCUKmkqOUBk2qsNnq3eEVXrj6cgE1FGfH2zlACTPzjaFoyNUsXg== X-Received: by 2002:a17:907:7e8a:b0:aa6:71dc:3123 with SMTP id a640c23a62f3a-aabf471f823mr120057366b.8.1734504988564; Tue, 17 Dec 2024 22:56:28 -0800 (PST) Original-Received: from caladan ([31.177.115.143]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aab963594c9sm521721866b.112.2024.12.17.22.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2024 22:56:28 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Tue, 17 Dec 2024 15:47:14 -0500") Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326630 Archived-At: On Tue, Dec 17 2024, Stefan Monnier wrote: >> Do you have an estimate what removing purespace will cost in terms of GC >> time? I mean something like "1ms per collection". Or perhaps a >> suggestion how I could measure it? > > In the pdump case it should have no effect at all, or maybe even > a slight *speedup*. > > That's because the pdump already fails to take advantage of the > purespace (i.e. the GC traces through the purespace like the rest of > the heap). So the pdumper copies objects from purespace to the dump like normal objects; when loading the dump, purespace stays empty. I had (wrongly) assumed that the pdumper creates a separate section for pure objects. Creating such a section sounds easy enough (hmm, maybe not so easy because of hashtables). Still not sure if it would be worth the effort. Helmut