unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: canoeberry <emacs@jpayne.net>
To: 15946@debbugs.gnu.org
Subject: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 12:09:39 -0800 (PST)	[thread overview]
Message-ID: <42BAA9F0-B788-4D9C-96BF-7813E14653CC@jpayne.net> (raw)
In-Reply-To: <BA7BBA2A-662F-4B42-A838-887A1E0CE3BD@swipnet.se>

[-- Attachment #1: Type: text/plain, Size: 3557 bytes --]

This is what I see if I run the "leaks" program on my Mac on the emacs process:

Leak: 0x1109f7b20  size=160  zone: DefaultMallocZone_0x100659000   OS_dispatch_source  ObjC  libdispatch.dylib
	0x76964c20 0x00007fff 0x00000001 0x00000000 	 L.v............
	0x89abcdef 0xffffffff 0x769666c0 0x00007fff 	.........f.v....
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000001 0x00000000 0x0002940d 0x00000000 	................
	0x8896290c 0x00007fff 0x013000a0 0x00000001 	.)........0.....
	0x109f7c10 0x00000001 0x00000002 0x0000004c 	.|..........L...
	...

A bazillion of them.

I also ran it on a distnoted which I just killed and restarted because the existing one was over 2Gb of real memory (or so it said). It claimed there were no leaks.

This leaks program is pretty cool. It's like a conservative GC algorithm that assumes every integer could be a pointer. So by definition is is conservative.

Anyway - does this piece of information help any smart hacker types?

JP

On 14 Jan 2014, at 17:47, Jan Djärv [via Emacs] <ml-node+s1067599n310141h49@n5.nabble.com> wrote:

> Hello. 
> 
> 14 jan 2014 kl. 18:15 skrev canoeberry <[hidden email]>: 
> 
> > I have been observing this since Mavericks was released. I did not make a 
> > connection between distnoted and emacs, other than the following 
> > observation: both are leaking memory. 
> > 
> > For the first time ever I am finding that my emacs process slowly grows in 
> > size. I can be editing a small handful of files and be using 500Mb of real 
> > memory. Never seen that before, ever. 
> > 
> > Distnoted grows much faster, on the order of 1Gb real memory / day. Killing 
> > that process and having another start up automatically causes some OS X 
> > features to stop working, e.g., it is not possible to enter Time Machine or 
> > even see the status of your Time Machine backups anymore. 
> > 
> > I have seen distnoted peg the CPU when Time Machine backups are running or 
> > recently completed. Meanwhile, the menubar no longer animates the 
> > in-progress backup, which I assume is not on purpose and possibly even 
> > related to the issue. 
> >
> 
> I think that is so OSX can save a bit of power. 
> 
> > I do not use shells in emacs nowadays. 
> > 
> > I am running emacs from emacsformacosx. 
> > 
> > I have filed bugs with Apple. 
> > 
> > If anybody has any suggestions on how to figure out what is causing Emacs to 
> > grow in size, I will happily run some experiments for you. I tried to figure 
> > out how to profile emacs memory but it was not very obvious to me what to 
> > do.
> 
> The obvious thing is to run leaks on Emacs (man leaks) after a garbage collection has been made (M-x garbage-collect).  Leaks may report leaks which in fact are not due to uncollected garbage. 
> 
>         Jan D. 
> 
> 
> 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310141.html
> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process, click here.
> NAML





-----
Jonathan Payne

--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310179.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.

[-- Attachment #2: Type: text/html, Size: 6881 bytes --]

  reply	other threads:[~2014-01-14 20:09 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-21 18:18 bug#15946: 24.3; Mac OS X, Mavericks, distnoted process Donald Tillman
2013-11-25 22:27 ` Marc Feeley
2013-11-26  7:50 ` Jan Djärv
2013-11-27 21:10   ` Piet Jaspers
     [not found]   ` <mailman.7276.1385588062.10748.bug-gnu-emacs@gnu.org>
2013-11-28  5:47     ` louisnoel.pouchet
2013-12-09  4:38 ` Christopher Smith
2013-12-09  8:18   ` YAMAMOTO Mitsuharu
2013-12-09 10:06   ` Jan Djärv
2013-12-27  5:15     ` SB
2014-01-07 22:56       ` Jan Djärv
2014-01-08  3:35         ` Josh
2014-01-08  9:24           ` Jan Djärv
2014-01-14 17:15 ` canoeberry
2014-01-14 17:46   ` Jan Djärv
2014-01-14 20:09     ` canoeberry [this message]
2014-01-14 22:10       ` Jan Djärv
2014-01-14 22:59         ` Matthew Leach
2014-01-15  7:52           ` Jan D.
2014-01-15 10:53             ` Matthew Leach
2014-01-14 20:33     ` canoeberry
2014-01-14 21:34   ` Stefan Monnier
2014-01-14 21:53     ` canoeberry
2014-01-14 22:07       ` Jan Djärv
     [not found]         ` <ABF72EE5-E9C7-4950-8E9F-D2632A5DCF91@jpayne.net>
2014-01-15  6:26           ` Jan Djärv
2014-01-15 13:41             ` Jonathan Payne
2014-01-17 14:11               ` vbeffara
2014-01-18 22:52                 ` canoeberry
2014-01-19  9:33                   ` Jan Djärv
2014-01-19 10:49                     ` canoeberry
2014-01-20  9:53                       ` SB
2014-01-20 11:15                         ` Jan Djärv
2015-12-26  1:14                           ` Lars Ingebrigtsen
2016-07-17 20:57                             ` Alan Third
2014-01-20 10:43 ` bug#15946: a patch against emacs 24.3.1 for fixing the distnoted memory leak Jonathan Payne
2014-01-20 12:01 ` Jonathan Payne
2014-01-20 12:32   ` SB
     [not found] ` <mailman.7121.1385419042.10748.bug-gnu-emacs@gnu.org>
2014-05-02 11:33   ` bug#15946: 24.3; Mac OS X, Mavericks, distnoted process tony
     [not found] ` <handler.15946.D15946.14687890696153.notifdone@debbugs.gnu.org>
2016-07-18  2:00   ` bug#15946: closed (Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process) Donald Tillman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42BAA9F0-B788-4D9C-96BF-7813E14653CC@jpayne.net \
    --to=emacs@jpayne.net \
    --cc=15946@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).