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: master 5c532fe303: Recommend that the user turn off memory overcommit Date: Sat, 09 Apr 2022 12:56:55 +0300 Message-ID: <83tub28tqw.fsf@gnu.org> References: <164941780605.21656.13343783431945268284@vcs2.savannah.gnu.org> <20220408113647.815ACC051D6@vcs2.savannah.gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 09 11:58:21 2022 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 1nd7rI-0008FA-Po for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 11:58:20 +0200 Original-Received: from localhost ([::1]:58732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nd7rH-0004wH-Ag for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 05:58:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd7pm-0003zk-Aa for emacs-devel@gnu.org; Sat, 09 Apr 2022 05:56:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd7pl-0001I8-7e; Sat, 09 Apr 2022 05:56:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mz6GeKqcZMWBsDFB/Us0KEcenoB433DiRt1Nm1itIV8=; b=r14CCUzviFw1 orKuZlHqZK/W48wUExAXyL41cLmb7O14P5kmcCBSGi5JzqaJ9qcA9DrwJLSorZW63QjbjZFd9YJBO P2XnoTBZKNgxzW9ZrrhgExDSPP83eADrYASBSRNsLDY1jQo3eIxYP2SgXGKdyKjjmhWN2KK4Sia8x xBvJbPgmYIk4byJc+AxpQQz96Zdb3K52pWPA0sPJa+fdZ2Wdm2p43DmiqmwmHk9vABZOT4qiiNTZ7 jtmS7W2QLX/8V3ZY+qJPD2l9Lhg1qSf/rxbqMA9pvRSu2pajq3+hxqGWSMGYK38ZO6MRA3+Tv3ENY ul44AkM9kJk3uRru9YMPPw==; Original-Received: from [87.69.77.57] (port=4190 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd7pi-0006pT-Jz; Sat, 09 Apr 2022 05:56:42 -0400 In-Reply-To: (message from Phil Sainty on Sat, 09 Apr 2022 20:42:51 +1200) 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" Xref: news.gmane.io gmane.emacs.devel:288009 Archived-At: > Date: Sat, 09 Apr 2022 20:42:51 +1200 > From: Phil Sainty > Cc: luangruo@yahoo.com, Stefan Monnier , > emacs-devel@gnu.org > > I keep seeing the choice of process to kill being described as > "random", but it is not random. > > The kernel may or may not choose the best process to kill, but > it does choose it for a reason, and I would suggest that the > described criteria is fairly unlikely to describe an Emacs > process (although it's obviously still possible). I've now removed the "random" and "we recommend" parts from the text. What about using "ulimit -v" -- is that of any help, if the value is chosen in accordance with the amount of VM available to the system, like if the value leaves some reasonable amount to the rest of the system? If so, perhaps we should mention that as well?