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: User GC customizations Date: Thu, 04 Jul 2024 20:28:23 +0200 Message-ID: References: <87v81pbgzi.fsf@localhost> <87y16khvhy.fsf@localhost> <87frspqwhr.fsf@localhost> <87tth5pdqc.fsf@localhost> <86sewp8djd.fsf@gnu.org> <86frsp88fa.fsf@gnu.org> <86bk3d87od.fsf@gnu.org> <867ce18265.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13937"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pipcet@protonmail.com, yantar92@posteo.net, emacs-devel@gnu.org, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 20:29:07 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 1sPRCc-0003Ob-Hs for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 20:29:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPRC2-0003fD-Ri; Thu, 04 Jul 2024 14:28:30 -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 1sPRC1-0003er-CO for emacs-devel@gnu.org; Thu, 04 Jul 2024 14:28:29 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPRBz-00026P-TS; Thu, 04 Jul 2024 14:28:29 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ee92f7137bso2174021fa.1; Thu, 04 Jul 2024 11:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720117705; x=1720722505; 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=fvPEXIhMA+s4GaUQGWA9KWKFzXr8weo7pZ82BuZmQOY=; b=XVr5uw++S66rRbodubVnqjz45V6sLvUjskiJ9o0MZ02zXZE31MhOSLTicHh/u5sV9B pQHpejBFlGiq26v95jsgED9+9miB7RcmR1ehIb3rzSv7xbvy0p3pWFn78uNMVuot8BpN byI9ZFL3ux8VQKPhooI0i7y2waMq3pU/idlNeURmnqHo9nHJtJleDO4ffBOy8PWluVYs ac4GtO5t29pCGsWLE/A+uvVGjomMfOx3KqsdoYGEaVR5nrvfscIh9ER7GWYcd5UziW3L 6n4SJdQkF3jp5+Vi7E9Kvz/AoBoy6wT+WN/Sw1wvoEdqEspxsfL8RT4sa2LRrmFGxxoP qfjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720117705; x=1720722505; 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=fvPEXIhMA+s4GaUQGWA9KWKFzXr8weo7pZ82BuZmQOY=; b=ZwiOvgn7/pEHL6NCUd0kJ2O5goHDSYPT/mxkisAJn2Zb6e4bTh5KwaBLHGDA6Xcibk FJs7TdoS19lQinn3YK+vpFuWuhhtuor+4/O8BxIWRnVEEi6luvMxYCxSQ68f2xZTUuiy kPDwrZEsNNboernIzoRjjM/c9Pv44Ygi1DRYqR0wJt5CEwXrA4SjmDsp0kgRRS3EPnFc HhIXpF4RXfMAS7bW1UBi+oezob5wYhphSp96XJCKfQfqrA29cFx+UADUaxd4IYOdfxtm uT1BR7tcZ8wvaFaZ3ueddgQE32yohDdF0TlfhRV1NyD9hU617uUiAySidaXF0pDVOh3w x7Mg== X-Forwarded-Encrypted: i=1; AJvYcCXh7ATRJrc1z9nC/MCFvHYPffa5HVVKgrXFpdHeuHKKJ9Ds4YWoMNHxmsPfRkEuZO/jltT7C49xjMrSX9QD1zqNk94o X-Gm-Message-State: AOJu0Yy+UGHYR0VHy18pL+SvUBefoQGWcoCxGtZw2rQXVJPYLq+8/ixp bCLdCRmR95QBsGzsOiXRF9HHurI9V+sCaBn6FmUpVqLZsdZPRslo X-Google-Smtp-Source: AGHT+IErQK+Rv7B66gwkMzmnL/ub5Z+zIjup1LsVbQk/P7fTeTpjMBcM6X0j21Xt/uEhKiD8EKwUSw== X-Received: by 2002:a05:651c:1a27:b0:2ee:8aed:ddba with SMTP id 38308e7fff4ca-2ee8ed69fc4mr22449311fa.4.1720117705095; Thu, 04 Jul 2024 11:28:25 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36fa8.dip0.t-ipconnect.de. [217.227.111.168]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a2b4976sm32618135e9.48.2024.07.04.11.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 11:28:24 -0700 (PDT) In-Reply-To: <867ce18265.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 04 Jul 2024 21:03:46 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x22e.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:321351 Archived-At: Eli Zaretskii writes: >> The "once GC started due to idleness" confuses me. We don't "start" GC >> due to idleness. > > I didn't say "we" start GC due to idleness, I said that GC starts due > to idleness. Not necessarily by ourself. I'm sorry, I find that totally confusing. Is what you mean simply "when we call mps_arena_step? And why "start GC"? >> We allow MPS to do something concurrently, say one or more >> increments in the sense of its incremental GC algorithm. And "GC >> runs" all the time. > > You are saying that the whether Emacs is or isn't idle is not relevant > at all to the effect of this variable? Wot? Please someone help. > Then why does MPS documentation talk about "allowing the client > program to make use of idle time to do some garbage collection"? And > why does the doc string of igc-step-interval itself mention "GC when > Emacs is idle"? I wrote that because I put mps_arena_step where it is, in igc_on_idle, which is called when Emacs is idle. > IOW, let me turn the table and ask what does "idleness" have to do > with this variable? Simple. Because this person here, a long time ago, idly put mps_arena_step where it is, when writing igc_on_idle, and made Emacs call that when idle.