all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: George Plymale II <georgie@southernohio.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Does Emacs return memory to the system on Mac OS X or *BSD?
Date: Wed, 10 May 2017 21:39:40 -0400	[thread overview]
Message-ID: <m0d1bgqihv.fsf@lehi.dev.orbitalimpact.com> (raw)
In-Reply-To: <jwvefvwmev0.fsf-monnier+gmane.emacs.devel@gnu.org> (message from Stefan Monnier on Wed, 10 May 2017 20:25:01 -0400)

> IOW, you sometimes see Emacs use an amount of memory you think is too
> large, but you have no idea whatsoever why that might be the case

Actually, I have monitored which packages, functions, etc. cause Emacs
memory usage to spike up and I've monitored how much of that memory is
marked as "dead" via the memory-usage package on ELPA. So I do have an
idea about why I think some memory seems just a little too large and
which things could be causing that.

> (IIUC you don't even know if it's really too large or if it causes a
> problem)

There's rarely ever a problem. It's not "really too large." My only
point here was to satisfy my own curiosity about whether or not Emacs
gives memory back as Eli originally suggested is possible. It doesn't
hurt to have one process use less memory on my system. But I'm not
trying to complain about said memory usage (which you seem to think that
I'm doing). I was just trying to satisfy a little point of curiosity as
Eli suggested could be done here. Don't read too much into my comment:
"although I've not seen Emacs exceed 300 MB, which isn't too bad", as I
was merely pointing out that I, too, have not had serious memory
problems with Emacs, just a curiosity about the situation.

> There can be *many* different reasons, beside the fact that some freed
> memory is not returned to the OS. 

Ok, I appreciate that there are different reasons as to why memory usage
goes up aside from just not giving stuff back to the OS. I was only
wondering if it is possible on the aforementioned systems, to perhaps
somewhat mitigate the issue if I ever did have a problem.

> More to the point, whether the memory is returned to the OS or not is
> usually the least concern on a laptop or desktop machine.

Ok, I respect that opinion. As previously said, I understand that such a
thing is often not an important factor in real situations. I was just
wondering if it happens or can happen on my platforms.



  reply	other threads:[~2017-05-11  1:39 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09 23:03 Does Emacs return memory to the system on Mac OS X or *BSD? George Plymale II
2017-05-10  3:07 ` Stefan Monnier
2017-05-10  6:31   ` George Plymale II
2017-05-10 12:06     ` Stefan Monnier
2017-05-10 16:09       ` George Plymale II
2017-05-13 17:07         ` Andreas Politz
2017-05-10 12:49     ` Stefan Monnier
2017-05-10 16:45     ` Eli Zaretskii
2017-05-10 19:16       ` George Plymale II
2017-05-10 22:33         ` Tim Cross
2017-05-10 23:34           ` George Plymale II
2017-05-11  0:25             ` Stefan Monnier
2017-05-11  1:39               ` George Plymale II [this message]
2017-05-11  2:20                 ` Stefan Monnier
2017-05-11  0:06           ` Stefan Monnier
2017-05-11  2:36             ` Eli Zaretskii
2017-05-11 12:29               ` Stefan Monnier
2017-05-11 15:23                 ` Eli Zaretskii
2017-05-11 15:39                   ` Stefan Monnier
2017-05-11 16:07                     ` Eli Zaretskii
2017-05-11 18:52                 ` Davis Herring

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

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

  git send-email \
    --in-reply-to=m0d1bgqihv.fsf@lehi.dev.orbitalimpact.com \
    --to=georgie@southernohio.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.