From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Sun, 07 Jul 2024 06:38:42 +0000 Message-ID: References: <878qyeffjh.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ihor Radchenko , Helmut Eller , Eli Zaretskii , emacs-devel@gnu.org To: =?utf-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 07 08:47:41 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 1sQLgT-0003KD-Hm for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jul 2024 08:47:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQLfa-0005cp-MF; Sun, 07 Jul 2024 02:46:46 -0400 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 1sQLXy-0004RT-CW for emacs-devel@gnu.org; Sun, 07 Jul 2024 02:38:55 -0400 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQLXw-0004iB-Cr for emacs-devel@gnu.org; Sun, 07 Jul 2024 02:38:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720334328; x=1720593528; bh=+pgGr5Ve081no+N8ertqzuxbFCRh1qjkMosw/nSx4JU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=jNAyi3YpPzHZkXwpYebpY0ia0cwi2rhh2GqdnuQSo2kgbF8dGJcePONHjsa1E2oty ZOXyEYScKL7R3v12T+aqr2lw9A/tOX1kb7HXvaHsroGttsBX7tVvf2SszYKBsjXiIu MKyRryZN+5FWKhtPQZRGsfBoV/OUIx40leab6jeOZ5BlKqr0H5CysptCGLJCTVrM0T zaZAh9soHrLwJHQ2+IG8ufakB9BEpVTcTS7X5knyXwkGUP7LLJMO45zBFA/p7uXrfa jfzwdmdlqOvfbbLu4agJ63Hh4Ai37f2MmJhBzPnz2yhV40sJODmAg/ltotsaWVV+OH WNewqiR6tYaeg== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 182e31c3f5b3311dc8081790a3d9a5463743a86f Received-SPF: pass client-ip=185.70.40.131; envelope-from=pipcet@protonmail.com; helo=mail-40131.protonmail.ch 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 07 Jul 2024 02:46:37 -0400 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:321468 Archived-At: On Sunday, July 7th, 2024 at 04:27, Gerd M=C3=B6llmann wrote: > Ihor Radchenko yantar92@posteo.net writes: > > Gerd M=C3=B6llmann gerd.moellmann@gmail.com writes: > >=20 > > > So, we had 14 * 64M total before, and 16 * 64M afterwards. A bit more > > > makes sense since we now have GMP objects, but a dramatic improvement= ? > > > ... > > >=20 > > > That's the only thing I can come up with ATM. Complete guesswork, of > > > course. I wonder how one would find an "optimal" configuration at all= . > >=20 > > I feel kind of silly, but > > https://memory-pool-system.readthedocs.io/en/latest/guide/perf.html > > maybe? It has an example of "dramatic improvement". >=20 > Interestingly, the 3 gens have the opposite effect with the Helmut showed= . >=20 > master passed 27/54 ert-test-run-tests-batch-expensive (5.857224 sec) > 2-gen passed 27/54 ert-test-run-tests-batch-expensive (80.113908 sec) > 3-gen passed 27/54 ert-test-run-tests-batch-expensive (142.356406 sec) I'm confused by that test. I see similar results to you when I "make lisp/e= macs-lisp/ert-tests", but when I run the test directly it finishes quickly: $ ../src/emacs -Q --batch -f igc--collect -l lisp/emacs-lisp/ert-tests.el -= -eval '(ert-run-tests-batch-and-exit "ert-test-run-tests-batch-expensive")' Running 1 tests (2024-07-07 06:00:57-0000, selector =E2=80=98"ert-test-run-= tests-batch-expensive"=E2=80=99) passed 1/1 ert-test-run-tests-batch-expensive (1.079868 sec) Ran 1 tests, 1 results as expected, 0 unexpected (2024-07-07 06:00:58-0000,= 1.080000 sec) What's going on here? Pip