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 18:48:41 +0300 Message-ID: <86frsp88fa.fsf@gnu.org> References: <87v81pbgzi.fsf@localhost> <86a5j1fhd1.fsf@gnu.org> <87y16khvhy.fsf@localhost> <87frspqwhr.fsf@localhost> <87tth5pdqc.fsf@localhost> <86sewp8djd.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="21689"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, pipcet@protonmail.com, emacs-devel@gnu.org, eller.helmut@gmail.com To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 17:49:40 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 1sPOiJ-0005Oc-9h for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 17:49:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPOhU-0005iz-E7; Thu, 04 Jul 2024 11:48:48 -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 1sPOhS-0005iW-FJ for emacs-devel@gnu.org; Thu, 04 Jul 2024 11:48:46 -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 1sPOhS-0008DF-1J; Thu, 04 Jul 2024 11:48:46 -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=mkLkTV7Syvjzy2sLMi78mveG0BMz4MRb4oKJ39Wltpw=; b=Jc4OlAZDiD8QxbNL8cJI Bg7bx4ZRV8bWJUbbdYfZYbkso+9mEItlMWeLw9K6ffItnzLvv7g5W2a2BFDZ3llGdN9YgUIoHtIfi luw9OhS+G6Wm4hTB6TDcJx7kWaMs8l8JmLRR0X/ULmbDSIk189yjtpxEd53xVVklpdo5eXpsgwqMR n7jHDKmhXATIBSP4hGqfPxDubiq/XOW5xmebHiJMN+/Bejk88QPwZwXbjGeagwTi9W9dBX3kZ+KBW zvItEvSZwb3i/2n+4LOjROD6KtGz6lUZoBBaZ0Ud4e1V/j8AjUCFw+NlZyE5XRXwbFU78s0wMCVvH n2Wp/OZewCtjEg==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Thu, 04 Jul 2024 16:30:06 +0200) 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:321328 Archived-At: > From: Gerd Möllmann > 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 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? > (Haven't found out yet to prevent full collections with a message "client > predicts plenty of idle time" or some such yet. Please see the comment > in igc.c where mps_arena_step is called.) Sure. But how is this relevant to the issue at hand, may I ask?