From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Mon, 08 Jul 2024 11:24:25 +0200 Message-ID: References: <-plQctKgNkvp-LJ9ov2QAiXQKxd9V-hI0yz_opRGxQtbknubCjH4rH2-ymgbw_Qr1ZhB1rtlmiEW8XtuIVNr7nR_Yj20AH6WkH6kUGp68g0=@protonmail.com> <_mNcR6ailVKpYHLxgfo_tJlYGeR0AQIzQWluspYYp5_g5pIIKkHLNfFkklQQgOKNiVW8jn8NS3i2dJ7_B2Qyx9v-Dq3MQ9mP8HNL30UWsqY=@protonmail.com> <878qyf4sgm.fsf@gmail.com> <878qye3l81.fsf@gmail.com> <86a5iu4tiy.fsf@gnu.org> <87msmu1uy5.fsf@gmail.com> 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="362"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Helmut Eller , Eli Zaretskii , pipcet@protonmail.com, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 08 11:25:21 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 1sQkca-000AOU-Vs for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jul 2024 11:25:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQkbr-0006vM-MS; Mon, 08 Jul 2024 05:24:35 -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 1sQkbq-0006vD-TN for emacs-devel@gnu.org; Mon, 08 Jul 2024 05:24:34 -0400 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 1sQkbm-00053N-7m; Mon, 08 Jul 2024 05:24:34 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a77e2f51496so196854566b.0; Mon, 08 Jul 2024 02:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720430667; x=1721035467; darn=gnu.org; h=content-transfer-encoding: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=WzBdAdXBvPYEuCqPtQwhwViawD5jcXXBjbyexZLHfl4=; b=ahsvsZ04qSLEbBT9txS9SvRdi7osW0oAs8VMMeC3UoPymteuPvo8XuMCL2vnMKl6T/ NvtxWfuFiuKjcXGOJjLdvxCBpt6cMoK3sfIi07iZ6ocgcfq3bcAxejrJUYd95uJ6d12w TtHMrsiu2Kwj4cSR8SkewUqUwoIt0BOOPW+4fD3bC/7YwB/8wBVFPfNFpdu2Wa8Dyv9j Ne/fsyVsMkLPCVHWGk5XnVA+wUWhij7tePor1ffUGUtg+mmyS+9CYVZTPglqRnuEKVZg rZEGBENakqeraZ/5BAgap/bLY32HPo7mEASzm0/wE3tn3WgAscYYotsMqRjZrtS7+k0X Q6QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720430667; x=1721035467; h=content-transfer-encoding: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=WzBdAdXBvPYEuCqPtQwhwViawD5jcXXBjbyexZLHfl4=; b=TUTYbye9wgwgU+BP0/Lgz8cRWDcNdaO0+ALoDSWl2vKwdN58v/CZPQZVd+IOIbmLkJ fqlfYQd+xTLMvzCZI565d7I3+8hMoImiLUR/DhqGsIhTWRwXjJ1O3i2LPRcsKuldqYyc v7T7frlBzoo6e33Ytoa3qFQEY+ig8LVc4/WoIpbgv4Dpq321H7bEKG6+QhaSSu46GRmF UicLsNzSkrXBf/y7uqLtcwMmA9N73bvlIpgBiiakirfwIFYCvFtZCM5ZzbC8zBNC5HJN 1aRneXBV6IT+O0mSj4/aET/e8jR0Y3R3WFmJuepU8GnYpbqsmf+wGEnNgXxfOryBI2GC R1Ig== X-Forwarded-Encrypted: i=1; AJvYcCW2tfRErsN4lIIYDPbxKKP+oi86mGMSO2Pa11A3Uz+hhYpUm25LI6q3aR7RDSJX7SJc8tYXd0gh4f1wep0bMIUvUFsnCW5RTI2/u2+PKH9IiIg= X-Gm-Message-State: AOJu0YznSDDG5IYHRAJpYza7S2OkOvNA6y8YSAnDdXakkW7aI4EBubtQ isNZy+8A9bOnGnnoKTnmvyJqhAn7G4WTv5jxiqoZcDUqu1pvWnUFfBbZrA== X-Google-Smtp-Source: AGHT+IEtbd752pxyrM+RSVFCfj9eeh0TtCge5urScWPeEAHt6+kafeWTESEwRaMJfTc7KOoFr3U3+A== X-Received: by 2002:a17:906:17c1:b0:a6f:1443:1e24 with SMTP id a640c23a62f3a-a77ba489382mr655467166b.34.1720430666492; Mon, 08 Jul 2024 02:24:26 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a2f7.dip0.t-ipconnect.de. [79.227.162.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77c03837a6sm344746766b.122.2024.07.08.02.24.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 02:24:26 -0700 (PDT) In-Reply-To: (Andrea Corallo's message of "Mon, 08 Jul 2024 05:16:20 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:321530 Archived-At: Andrea Corallo writes: > Helmut Eller writes: > >> On Sat, Jul 06 2024, Gerd M=C3=B6llmann wrote: >> >>> Helmut, could you please see if that helps with the pi code? >> >> Yes, it helps: >> >> ./src/emacs -Q -batch -l \ >> ~/.emacs.d/elpa/elisp-benchmarks-1.14/elisp-benchmarks.el --eval \ >> '(elisp-benchmarks-run "pidigits" nil 1)' >> >> finishes and requires 41.82 seconds compared to the 12.26 of the non-MPS >> version. And it uses something like 2.8 GB compared to 350 MB of the >> non-MPS version (estimated by looking at the RES column in top). > > Such a difference in memory footprint is because MPS can't GC at the > speed the main thread is allocating or for some other reason? Yes, that's it basically. The client is allocating at a high rate, and not much is dying until the end of that phase. Both together mean that MPS is scanning like wild to make some room, without having a chance to find something it can discard.