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: Sat, 06 Jul 2024 05:38:01 +0200 Message-ID: References: <-plQctKgNkvp-LJ9ov2QAiXQKxd9V-hI0yz_opRGxQtbknubCjH4rH2-ymgbw_Qr1ZhB1rtlmiEW8XtuIVNr7nR_Yj20AH6WkH6kUGp68g0=@protonmail.com> <_mNcR6ailVKpYHLxgfo_tJlYGeR0AQIzQWluspYYp5_g5pIIKkHLNfFkklQQgOKNiVW8jn8NS3i2dJ7_B2Qyx9v-Dq3MQ9mP8HNL30UWsqY=@protonmail.com> <878qyf4sgm.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="7198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , Eli Zaretskii , Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 06 05:39:00 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 1sPwGJ-0001hM-19 for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jul 2024 05:38:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPwFU-000507-Pm; Fri, 05 Jul 2024 23:38:08 -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 1sPwFT-0004zv-5F for emacs-devel@gnu.org; Fri, 05 Jul 2024 23:38:07 -0400 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPwFR-0004DA-Go; Fri, 05 Jul 2024 23:38:06 -0400 Original-Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a77b550128dso278511466b.0; Fri, 05 Jul 2024 20:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720237083; x=1720841883; 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=OvGbKSp9Zj3BK45KdsOm5vp0H1tk1PirFRHji3XdgVE=; b=DGg1NKk0mCEoEf/nR74Civxdw/Nd4gzpHohCEIOSp6k9ZwNVnIheP37zQkm+snBIld ieRcvnDdtSqAD1iekBTVmmR9TdDTAuCNJc/BNeSxnW61PHMfbOP4vhUndOfZmJZ7A5PO ATE5h/6gHbabFOEu6C6qWQUK0FcG7F93SLjQxSRguNewcK0VQlBQUji632l3bW6nRJts q0czz/6IFzedPuaitTXyi78ocuzjI6vC2NIfhqBEA3/rkocHsL80JaQevlws/ImW935H 4lfEFfE4P1drDk5uGDGXsf6JLg+cdA7I0MP6cdD+nrq9Ev2n4qVfBOL2lQ016Ss1vJBr 1swQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720237083; x=1720841883; 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=OvGbKSp9Zj3BK45KdsOm5vp0H1tk1PirFRHji3XdgVE=; b=XMjiJpDeNGSG9OR0X1Edb16O9aORnslVDAxt7JbETHTYK03Qwg/OHGe1eeunV+qfB/ SrMBww22y5pdUljy7xNNP8T0hT5Nfu9RcO7qRtMVsEsFahOeaSNx5HVQXKIdjpAj2p5m bDWtyx1CkYJUNb2XRSaY//y8o+/OjCk1tYBXJj/sJG1tEkQ6KUAyG9+DyVo2ldEbbhl6 Wd0sWV2Bgh0z/wn3sh+2D6bykje//CbEHqfUf2WgUdp7qg0iq8hvOoH80wte607Wf+cS ocIlqCLhEffAbfW0wxQ9zKd8U4fmiakbf94gVVOjAMXQ0lJBKLVEQ7N1IO3iqBCxixGe NrGA== X-Forwarded-Encrypted: i=1; AJvYcCWT1T+oFRQx0FfpfFbUpoC0wE8xE7LxTnyHDghShsvXvBcHoNSb9iUI7PHuxXrR0MiOPQu5TM3CMFNmH7wBRR6rJEJ5kfzjNblqrlcdcZ1D15M= X-Gm-Message-State: AOJu0Yy6YosCaidMD+0/0FOG7wKIKoMOokUzJt5pk7lxYWmnmzfQuUy+ 3s+WStNhnEkuYfO57j1IzdyqHzK5mXcps8sh90bblvZN4BPkPZGBqtodEg== X-Google-Smtp-Source: AGHT+IHPU/iKanlrSOtpNNL0AvdVJcn8Q//O7mI62mCtDRUdHuaf5ShHV0Z7o+M1ux0HgTIQLLMHVA== X-Received: by 2002:a17:906:f296:b0:a77:cdaa:88aa with SMTP id a640c23a62f3a-a77cdaa8b23mr235723866b.4.1720237082890; Fri, 05 Jul 2024 20:38:02 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a82e.dip0.t-ipconnect.de. [79.227.168.46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77b8195453sm186487966b.1.2024.07.05.20.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 20:38:02 -0700 (PDT) In-Reply-To: <878qyf4sgm.fsf@gmail.com> (Helmut Eller's message of "Fri, 05 Jul 2024 20:14:01 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x635.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:321402 Archived-At: Helmut Eller writes: > On Fri, Jul 05 2024, Pip Cet wrote: > >> Feature/bug-wise, what's still missing? > > ert-tests.el worries me the most. There, MPS looks pretty bad compared > to the old GC. (Who would have thought that printing backtraces > involves copying and rebalancing interval trees with thousands of nodes? > And why does it perform so poorly with a generational GC?) Hm, sounds almost like a bug to me. The bug being the copying. Why does it do that, do you know? > It would be nice to have a way to set a "memory limit". Preferably with > some "out of memory error". Even aborting would be better than starting > to swap. There is MPS_KEY_COMMIT_LIMIT (type size_t) is the maximum amount of main memory, in bytes (1), that the MPS will obtain from the operating system. See mps_arena_commit_limit() for details. The default commit limit is the maximum value of the size_t type. Never tried that. There are also functions to read/set the limit, so maybe we could introduce a DEFVAR with variable watcher for playing with it, or a function. > I also think that something needs to be done about the pidigits > benchmark. It's not about the bignums (which I couldn't care less > about) but the problem that finalization messages are only processed > when Emacs is idle. Hm, so this one didn't help. void garbage_collect (void) { #ifdef HAVE_MPS igc_process_messages (); #endif Looks like it needs to be put somewhere else.