This is what I see if I run the "leaks" program on my Mac on the emacs process:
Hello.
14 jan 2014 kl. 18:15 skrev canoeberry <<a href="x-msg://78/user/SendEmail.jtp?type=node&node=310141&i=0" target="_top" rel="nofollow" link="external">[hidden email]>:I think that is so OSX can save a bit of power.
> 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.
>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.
> 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.
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