From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Re: setting an optimal value of gc-cons-threshold Date: Mon, 10 Sep 2007 03:00:31 +0200 Organization: GNU's Not UNIX! Message-ID: <200709100100.l8A10VNB005607@localhost.localdomain> References: Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1189389391 14357 80.91.229.12 (10 Sep 2007 01:56:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 01:56:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 11:56:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUfey-0005CD-H7 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Sep 2007 11:34:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUYAc-0008L0-5E for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Sep 2007 21:34:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUY94-0006Am-Dk for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 21:32:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUY90-0005zn-BW for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 21:32:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUY8z-0005zM-1G for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 21:32:53 -0400 Original-Received: from master.uucpssh.org ([193.218.105.66]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUY8y-0001uh-Mi for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 21:32:52 -0400 Original-Received: by master.uucpssh.org (Postfix, from userid 10) id 29606AC6A2; Mon, 10 Sep 2007 03:30:51 +0200 (CEST) Original-Received: from localhost.localdomain (IDENT:1000@localhost [127.0.0.1]) by localhost.localdomain (8.14.1/8.13.8) with ESMTP id l8A10Wp4005610; Mon, 10 Sep 2007 03:00:32 +0200 Original-Received: (from xma@localhost) by localhost.localdomain (8.14.1/8.13.8/Submit) id l8A10VNB005607; Mon, 10 Sep 2007 03:00:31 +0200 In-reply-to: (message from Stefan Monnier on Fri, 07 Sep 2007 00:58:56 -0400) User-Agent: Rmail in GNU Emacs 23.0.50.3 on GNU/Linux Jabber-ID: xma01@jabber.fr X-uucpssh: Found to be clean X-uucpssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.352, required 4.6, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.05, BAYES_00 -2.60, SPF_HELO_PASS -0.00) X-uucpssh-From: xma@gnu.org X-Detected-Kernel: Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47421 Archived-At: > I found quite a few people in their .emacs setting gc-cons-threshold to > a different value than the default 400000. > I did. > I wonder if there is a guidance for setting this value. > So do I. I remember increasing it after several Gnus crashes but > I did it without reflexion on what value to put here :) There used to be some benefit to setting it higher for large Emacs sessions (where GC can take a long time) since it would reduce the frequency of those GCs. In Emacs-22, this is not needed any more because of the new `gc-cons-percentage' variable which automatically causes the limit to grow as the Emacs process grows, thus preserving a more or less constant GC overhead. Thank you Stefan for your clarifications. Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org