From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS: User GC customizations Date: Thu, 04 Jul 2024 19:04:50 +0300 Message-ID: <86bk3d87od.fsf@gnu.org> References: <87v81pbgzi.fsf@localhost> <87y16khvhy.fsf@localhost> <87frspqwhr.fsf@localhost> <87tth5pdqc.fsf@localhost> <86sewp8djd.fsf@gnu.org> <86frsp88fa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35374"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, yantar92@posteo.net, emacs-devel@gnu.org, eller.helmut@gmail.com To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 18:05:36 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 1sPOxj-00092i-Rx for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 18:05:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPOx5-0007rU-V4; Thu, 04 Jul 2024 12:04:55 -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 1sPOx4-0007rA-Fe for emacs-devel@gnu.org; Thu, 04 Jul 2024 12:04:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPOx3-0007id-TX; Thu, 04 Jul 2024 12:04:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5sB6PLniPUKyKWxALXxQeAi0/suh6P8cV7wJb+WZykg=; b=lrXHsfWtQqxf5broKvB6 sW2BHhlOM7SqbU6kbEMPTZ8xFxTiZermEGaTIrSeOEQO70i0sV1ZWLSEEaBAHbILFvvLecYXkrRO7 bnMEdArm/JFNpCVJ5/0ym2vpwWmK1uARZCcQXr2pCsgZynyWizuU1kVT3yl6qfPd/h2mrhQN/MD7k 0r8BIPMpGtleqNk1mxBwk06b/O7ozTFPUSLgQmGuLEVU/I9xnaUMdver8T7MVIN9IU9bYAE/voqL4 0sjszuI55s2KYdXbciWm68ebrTHlSBY06IjbgORXNiWZDKUjrgUTjU0LaB5DVHE/ggpOtSeOKcJUP lUc74evyKPxg+g==; In-Reply-To: (message from Pip Cet on Thu, 04 Jul 2024 15:52:35 +0000) 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:321336 Archived-At: > Date: Thu, 04 Jul 2024 15:52:35 +0000 > From: Pip Cet > Cc: Gerd Möllmann , yantar92@posteo.net, emacs-devel@gnu.org, eller.helmut@gmail.com > > On Thursday, July 4th, 2024 at 15:48, Eli Zaretskii wrote: > > > From: Gerd Möllmann gerd.moellmann@gmail.com > > > > > Cc: yantar92@posteo.net, pipcet@protonmail.com, emacs-devel@gnu.org, > > > eller.helmut@gmail.com > > > Date: Thu, 04 Jul 2024 16:30:06 +0200 > > > > > > Eli Zaretskii eliz@gnu.org writes: > > > > > > > > What this variable does is give MPS notice that the client is currently > > > > > idle and it might be a good time to do some work. > > > > > > > > Is that really what this variable does? My reading of the > > > > documentation is that it tells MPS how soon to stop GC which it > > > > started when Emacs was idle. IOW, it's not about triggering GC, > > > > it's about ending it. And the reason, AFAIU, is to avoid making > > > > Emacs responses slow because MPS started GC when it detected that > > > > Emacs is idle. > > > > > > I'm taking my view from this;: > > > > > > I'm not sure what you are saying. You've cited exactly the same text > > as I did, but didn't answer ny real question: does this variable work > > as you said above ("give MPS notice that the client is currently > > idle") or like I interpret it: tell MPS how much time it's okay to > > spend in GC which it started when Emacs was idle? > > I'm really confused. Can you explain what you think the difference is? I just did, twice. If that still doesn't explain it, then I guess my explanatory talents betray me, and I don't know what else to say. > The variable's value is a number. If the variable is zero, we don't tell MPS we're idle when we're idle. If it's nonzero, we tell it we're idle (when we are), and how much time it's okay to spend in GC. The number can only tell one thing, not two. AFAIU, it tells the latter: "how much time it's okay to spend in GC" once GC started due to idleness (and not some other reason). Gerd said something different: that this number "gives MPS notice" that Emacs is idle. (How can a number "give notice" I don't understand even in principle.)