From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Memory again Date: Sun, 27 Nov 2011 23:27:03 -0500 Message-ID: References: <4ED0F945.5090805@yandex.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322454436 32442 80.91.229.12 (28 Nov 2011 04:27:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2011 04:27:16 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: Carsten Mattner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 05:27:12 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 1RUsoA-0001g9-5d for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2011 05:27:10 +0100 Original-Received: from localhost ([::1]:54421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUso9-0008AM-H7 for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2011 23:27:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUso6-0008A3-5y for emacs-devel@gnu.org; Sun, 27 Nov 2011 23:27:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUso5-0006nG-4u for emacs-devel@gnu.org; Sun, 27 Nov 2011 23:27:06 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUso5-0006n8-2D for emacs-devel@gnu.org; Sun, 27 Nov 2011 23:27:05 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pAS4R312017019; Sun, 27 Nov 2011 23:27:03 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 31F4A58D75; Sun, 27 Nov 2011 23:27:03 -0500 (EST) In-Reply-To: (Carsten Mattner's message of "Sat, 26 Nov 2011 15:58:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4054=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4054> : streams <705741> : uri <1017205> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:146293 Archived-At: > Allow me to be naive and ask this: what about compaction? Lots of work for very little benefit: the memory may not be re-usable by the OS until Emacs exits, but it *is* reusable by Emacs, so it's largely a non-problem. > Would the allocator in use fragment the overall system memory > space if it frees more aggressively? We do not care about the "system memory". It's the OS's job ;-) And no, Emacs does not "fragment" the system memory (whatever that can mean in the page-based virtual-memory used by OS es these days) more than other applications,. > Nothing like that happened, but I had to restore some of the files as > it was from a temporary directory. 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? If it says "file has changed on disk" it mean the buffer was still around. Stefan