From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Mattner Newsgroups: gmane.emacs.devel Subject: Re: Memory again Date: Sat, 26 Nov 2011 20:02:27 +0100 Message-ID: References: <4ED0F945.5090805@yandex.ru> <83pqge7syw.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322334159 23156 80.91.229.12 (26 Nov 2011 19:02:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2011 19:02:39 +0000 (UTC) Cc: antipov@mvista.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 26 20:02:35 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RUNWF-0001Y0-6k for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2011 20:02:35 +0100 Original-Received: from localhost ([::1]:58059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUNWE-0000l7-NZ for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2011 14:02:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUNWB-0000l1-Ly for emacs-devel@gnu.org; Sat, 26 Nov 2011 14:02:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUNWA-0006Gp-Iz for emacs-devel@gnu.org; Sat, 26 Nov 2011 14:02:31 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:56543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUNW8-0006GX-DV; Sat, 26 Nov 2011 14:02:28 -0500 Original-Received: by iaek3 with SMTP id k3so8187431iae.0 for ; Sat, 26 Nov 2011 11:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=EBfoyEIs6ERwqmpb7ckhlMHgS3FXYrT201rHdLXdFNw=; b=OCjgcMs+RdBYr2rN/Fr4crd77Lft2g5vRGRVaaAdSAsN1MKbURT5aiwAo9nrc+CQXF 5DRryjO6qS5Ziyk88brZhZfiPuqc15/PAJw9F4CtE4Y89L5gOTJpizn3a2IOSheifkDk fKselm/VJYbWKLtXhcYPLXFygVjyqkr1zTBZE= Original-Received: by 10.231.63.212 with SMTP id c20mr1317635ibi.52.1322334147631; Sat, 26 Nov 2011 11:02:27 -0800 (PST) Original-Received: by 10.50.190.167 with HTTP; Sat, 26 Nov 2011 11:02:27 -0800 (PST) In-Reply-To: <83pqge7syw.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146266 Archived-At: On Sat, Nov 26, 2011 at 5:23 PM, Eli Zaretskii wrote: >> Date: Sat, 26 Nov 2011 15:58:49 +0100 >> From: Carsten Mattner >> Cc: emacs-devel@gnu.org >> >> Does emacs fear the memory may be used by someone else >> and hold onto what it claimed? > > It doesn't, or at least shouldn't. =A0When enough memory has been > reclaimed by GC, it should give it away to the system. =A0At least on > some systems, I actually see that in action, after killing a large > buffer. As it's at 56.1megs at the moment after having left it open for a couple more hours, I guess that Dmitry's heap fragmentation explanation sounds most likely. I'd like to not guess but help find potential issues which can be corrected. How can I instrument/help find leaks or errors in the memory manager? >> Restoring the directory made emacs realize the "file has changed on >> disk". Is this checked via a hash/checksum or does emacs carry along >> more than that? > > It remembers the last time stamp of the file/directory. Ah, I see, thanks.