From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: emacs user Newsgroups: gmane.emacs.devel Subject: Re: Memory again Date: Wed, 21 Dec 2011 19:55:48 +0200 Message-ID: References: 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 1324490160 32410 80.91.229.12 (21 Dec 2011 17:56:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2011 17:56:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 21 18:55:56 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 1RdQOR-0000t3-VX for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2011 18:55:56 +0100 Original-Received: from localhost ([::1]:37608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdQOR-0006Um-Ji for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2011 12:55:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdQOO-0006R4-1y for emacs-devel@gnu.org; Wed, 21 Dec 2011 12:55:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdQOM-0001Du-9I for emacs-devel@gnu.org; Wed, 21 Dec 2011 12:55:51 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:62473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdQOL-0001DK-Sp for emacs-devel@gnu.org; Wed, 21 Dec 2011 12:55:50 -0500 Original-Received: by werf1 with SMTP id f1so3730140wer.0 for ; Wed, 21 Dec 2011 09:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=hp/1VwHh3nsRwD/2syrT7KDCmSPbm45n92hh1pPIe3E=; b=DM0JNR2ieAdsRi4jjqO6skQA96WmAKPZ9Txh7MyLFC03AUluJtJMGV/gjZ0TolyX3/ RhXuzALFk2LFp7WuYS9QDf7X9fxDc/L6+N0yBKKIBt9c8Q94UBGVoYHm6Vd2sbYOZoBK YcilL3tWYkxJ2M5LsQnOTpq02RJB5dSnGQ+0Y= Original-Received: by 10.216.138.218 with SMTP id a68mr9574275wej.38.1324490148228; Wed, 21 Dec 2011 09:55:48 -0800 (PST) Original-Received: by 10.216.170.138 with HTTP; Wed, 21 Dec 2011 09:55:48 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.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:146903 Archived-At: On Wed, Dec 21, 2011 at 10:07 AM, Jan Dj=E4rv wrote: > Hello. > > 20 dec 2011 kl. 14:04 skrev Eli Zaretskii: > >>> Date: Tue, 20 Dec 2011 14:05:20 +0200 >>> From: emacs user >>> >>>>> thanks! =A0here it is. =A0I attach both the leaks output, and the >>>>> backtrace/ xbacktrace for a crash that happens eventually. >>>>> At the time of this leaks report, emacs has 192Mb according to the >>>>> activity monitor, with all buffers deleted. happy to do additional >>>>> tests if needed. >>>> >>>> Please set MallocStackLogging in the environment, and run this again. >>>> Without the call-stack info, I find it hard to believe we will be able >>>> to correlate these leaks with source code. >>>> >>>> Thanks. >>> >>> thanks for this hint, here it is, at least the first few entries: >> >> Thank you. =A0Looks like all of these leaks are NS-specific, if I >> understand the information correctly. > > I fixed most of these, but memory leaks still remains in the NS-port. =A0= Hopefully, the most common ones are gone now. > > =A0 =A0 =A0 =A0Jan D. > Thanks... The leaks command indeed reports zero leaks now. however, emacs still grows every time I invoke vm. here is a memory report which I get after killing all buffers, when emacs is 214 Mb large (as seen in the Activity Monitor). is this normal? Garbage collection stats: ((400287 . 303593) (45615 . 144) (60632 . 80546) 2488080 600138 (708 . 477) (521 . 271) (85624 . 67826)) =3D> 6404592+4857488 bytes in cons cells 2189520+6912 bytes in symbols 2425280+3221840 bytes in markers 11328+7632 bytes in floats 29176+15176 bytes in intervals 2739968+2170432 bytes in string headers 2488080 bytes of string chars 2488080 bytes of vector slots Total bytes in lisp objects: 27167562 (live 16888082, dead 10279480) Buffer ralloc memory usage: 14 buffers 29463 bytes total (24346 in gaps) Size Gap Name 2186 987 *srecode-map-tmp* 2186 1814 *code-converting-work* 565 1570 *Buffer Details* 170 1851 *Deletions* 30 2000 *Messages* 25 2019 *extract address components* 22 2022 *canonical address* 16 5812 *code-conversion-work* 11 2040 *Echo Area 1* 0 2022 *Minibuf-1* 0 20 *vm-nonexistent-summary* 0 20 *Minibuf-0* 0 2055 *Echo Area 0* 0 20 *subst-char-in-string*