From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Memory again Date: Sun, 27 Nov 2011 18:44:51 +0200 Message-ID: <83hb1p7bwc.fsf@gnu.org> References: <4ED0F945.5090805@yandex.ru> <83pqge7syw.fsf@gnu.org> <83mxbi7hip.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1322412322 10046 80.91.229.12 (27 Nov 2011 16:45:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 16:45:22 +0000 (UTC) Cc: antipov@mvista.com, emacs-devel@gnu.org To: Carsten Mattner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 27 17:45:14 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 1RUhqs-0002W2-5k for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2011 17:45:14 +0100 Original-Received: from localhost ([::1]:41410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUhqr-0004b2-54 for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2011 11:45:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUhqp-0004at-Bf for emacs-devel@gnu.org; Sun, 27 Nov 2011 11:45:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUhqn-0006wN-NB for emacs-devel@gnu.org; Sun, 27 Nov 2011 11:45:11 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:46841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUhqn-0006vK-FQ for emacs-devel@gnu.org; Sun, 27 Nov 2011 11:45:09 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LVB00G00VSL9X00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sun, 27 Nov 2011 18:44:47 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.205.148]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVB00GGNVUM9W00@a-mtaout21.012.net.il>; Sun, 27 Nov 2011 18:44:47 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.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:146286 Archived-At: > Date: Sun, 27 Nov 2011 14:53:44 +0100 > From: Carsten Mattner > Cc: antipov@mvista.com, emacs-devel@gnu.org > > Anything inefficent, wrong or dangerous? No inefficiency can explain a memory leak. > ELISP> (garbage-collect) > ((117223 . 17600) > (20499 . 0) > (60 . 235) > 490836 365472 > (106 . 70) > (90 . 200) > (18949 . 4550)) > > ;; after loading and killing that .erl file with Ido enabled > ;; at least 3 times in a row > > ELISP> (garbage-collect) > ((130126 . 12265) > (21652 . 3) > (129 . 345) > 594990 375989 > (107 . 99) > (102 . 411) > (22909 . 4055)) > > ELISP> (garbage-collect) > ((131365 . 14983) > (21652 . 3) > (154 . 320) > 595149 380380 > (113 . 127) > (128 . 595) > (22911 . 4053)) The number of conses seems to go up, but I'm not sure whether it's normal or not, especially since the growth seems relatively small. Maybe doing the same many more times will tell. Also, putting a breakpoint in Fcons and Flist and looking at the cons cells we allocate could give some hint. Another way would be to try using some other mode, not erlang or ido, and see if the memory grows similarly. Of course, these are all stabs in the dark. I don't really know what's going on there, just throwing some random thoughts. Caveat emptor.