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: Opportunistic GC Date: Tue, 09 Mar 2021 15:01:36 +0200 Message-ID: <83a6rcqy4v.fsf@gnu.org> References: <83a6rdso07.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34798"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 09 14:11:27 2021 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 1lJc91-0008yQ-1V for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 14:11:27 +0100 Original-Received: from localhost ([::1]:59548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJc90-0004tn-2Q for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 08:11:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJbzh-0004mk-0B for emacs-devel@gnu.org; Tue, 09 Mar 2021 08:01:49 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36348) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJbzg-000838-9V; Tue, 09 Mar 2021 08:01:48 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3328 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lJbza-0001KN-7F; Tue, 09 Mar 2021 08:01:43 -0500 In-Reply-To: (message from Pip Cet on Mon, 8 Mar 2021 14:57:06 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:266238 Archived-At: > From: Pip Cet > Date: Mon, 8 Mar 2021 14:57:06 +0000 > Cc: Stefan Monnier , emacs-devel@gnu.org > > > What happens when, on a 8GB machine, we have an Emacs session with a > > 5GB memory footprint, and you fork and start marking (which triggers > > copy-on-write)? > > That is, indeed, one of the cases in which we have to use the > synchronous GC or suffer the consequences. How do we know if/when we are in that case? Because if we err, we have a meeting with the OOM killer and a swift death. > > Also, I quite frequently need to run Emacs on a system where I'm > > forbidden to run more than 2 processes simultaneously ("make -j3" > > aborts with an error message), and you propose to take those two > > processes with 2 copies of Emacs? > > That is, indeed, one of the cases in which we have to use synchronous GC. Again, how do we know we are in that case?