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: Sun, 27 Nov 2011 18:59:49 +0100 Message-ID: References: <4ED0F945.5090805@yandex.ru> <83pqge7syw.fsf@gnu.org> <83mxbi7hip.fsf@gnu.org> <83hb1p7bwc.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1322416803 6490 80.91.229.12 (27 Nov 2011 18:00:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 18:00:03 +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 Sun Nov 27 18:59:58 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 1RUj1A-0002Ta-NW for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2011 18:59:56 +0100 Original-Received: from localhost ([::1]:43207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUj18-0006Xd-Oo for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2011 12:59:54 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUj16-0006XP-Au for emacs-devel@gnu.org; Sun, 27 Nov 2011 12:59:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUj15-000112-8p for emacs-devel@gnu.org; Sun, 27 Nov 2011 12:59:52 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:61297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUj13-00010g-Uz; Sun, 27 Nov 2011 12:59:50 -0500 Original-Received: by iaek3 with SMTP id k3so9711195iae.0 for ; Sun, 27 Nov 2011 09:59:49 -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; bh=IH58KCfK5KG/4YhLnZtaYp3uia//D5VvP+u5izE6710=; b=Xu/7sidlzl0SX2V012qSGvW+jgNl3PnEkfozm4xBRchUaHZw4XObCpVYByrZCCynrs tAgaY/8ZMOLDaL6WDY55iw/z7w77W6cPgLtrdOdfnC3L1dSCq8TTnflqe5WJ3YaAm9Dw e67FO7TnngbfUFn+EvRE+sCUs8Ku7WfrHfGps= Original-Received: by 10.50.89.227 with SMTP id br3mr50825706igb.14.1322416789116; Sun, 27 Nov 2011 09:59:49 -0800 (PST) Original-Received: by 10.50.190.167 with HTTP; Sun, 27 Nov 2011 09:59:49 -0800 (PST) In-Reply-To: <83hb1p7bwc.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:146289 Archived-At: On Sun, Nov 27, 2011 at 5:44 PM, Eli Zaretskii wrote: > Another way would be to try using some other mode, not erlang or ido, > and see if the memory grows similarly. all memory sizes are what Activity Monitor reports as "Real Memory Size" file a is 62b plain-text file b is 170k plain-text following sizes are in MB fresh start, only *scatch*: 21.4 after loading ielm: 22 load file a: 22.1 load file b: 22.2 kill both files: 22.2 load files a + b: 22.3 Ido-enabled C-x C-f and then pressing Tab repeatedly increases memory consistently. I did that up to 24.0 cancel'ing doesn't free the memory of what I assume to be a temporary buffer owned by Ido C-x C-f *** Welcome to IELM *** Type (describe-mode) for help. ELISP> (garbage-collect) ((117287 . 16644) (20499 . 0) (60 . 199) 491281 365472 (106 . 145) (90 . 231) (18999 . 4563)) ELISP> (garbage-collect) ((121212 . 19142) (20873 . 0) (115 . 186) 514683 369639 (106 . 173) (120 . 977) (20108 . 3643)) ELISP> ---------- same as above without Ido: fresh start: 20.8 after M-x ielm: 21.4 load file a: 21.7 load file b: 22 kill both files: 22.0 load files a + b: 22.1 C-x C-f and then pressing Tab repeatedly increases memory consistently. I did that up to 23.0. cancel'ing doesn't free the memory of what I assume to be a temporary buffer owned by vanilla emacs C-x C-f this time pressing C-g crashed emacs again. It just happens on Emacs --with-ns I guess :). forgot to save (garbage-collect) output in Ido-less test If I have to make a guess, I'd say everything-is-a-buffer is the source of the memory issues observed.