From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: memory leak Date: Sat, 29 Apr 2006 23:15:37 -0500 (CDT) Message-ID: <200604300415.k3U4Fb3v008747@jane.dms.auburn.edu> References: <200604290156.k3T1uecx028681@jane.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1146370610 15980 80.91.229.2 (30 Apr 2006 04:16:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 04:16:50 +0000 (UTC) Cc: bob@rattlesnake.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 30 06:16:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fa3MQ-00044m-5y for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 06:16:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fa3MP-0005i9-Ke for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 00:16:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fa3MD-0005gA-Du for emacs-devel@gnu.org; Sun, 30 Apr 2006 00:16:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fa3MA-0005dT-Ol for emacs-devel@gnu.org; Sun, 30 Apr 2006 00:16:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fa3MA-0005dM-Ku for emacs-devel@gnu.org; Sun, 30 Apr 2006 00:16:26 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fa3Pe-00032R-45; Sun, 30 Apr 2006 00:20:02 -0400 Original-Received: from jane.dms.auburn.edu (jane.dms.auburn.edu [131.204.53.201]) by manatee.dms.auburn.edu (8.13.6/8.13.6) with ESMTP id k3U4GNUn025755; Sat, 29 Apr 2006 23:16:23 -0500 (CDT) Original-Received: from jane.dms.auburn.edu (localhost [127.0.0.1]) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3) with ESMTP id k3U4FcFA008750; Sat, 29 Apr 2006 23:15:38 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k3U4Fb3v008747; Sat, 29 Apr 2006 23:15:37 -0500 (CDT) X-Authentication-Warning: jane.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sat, 29 Apr 2006 23:03:29 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53641 Archived-At: Richard Stallman wrote: When he wrote ... after you completely quit using Emacs, the memory consumed by the Emacs process can easily grow by more than 35 percent, or 8M or more, I think he really meant "when you stop typing and leave Emacs completely idle". Yes, that is what I meant. When Emacs becomes idle and stays idle, jit-lock and stealth fontification kick in. If you have a lot of large buffers that require a lot of fontification, this mimics a memory leak, as well as rogue CPU usage. But both CPU usage and memory increase eventually stop. However, due to the way jit-lock implements its "niceness", the process can go on for more than an hour, even on a relatively fast machine, as long as you have enough large buffers open. Sincerely, Luc.