Re: Memory leak
On Fri, 11 Feb 2022 15:57:58 -0500
Bijan Soleymani <bijan@psq.com> wrote:
> On 2022-02-11 14:52, Celejar wrote:
> > As I mentioned in another post, I do this occasionally, but I'm not
> > sure how to interpret the results. I just killed firefox; I got back
> > about 3.5 GB, but the system is still using about 4.8, and Xorg's usage
> > hasn't changed: ~ 4436M / 3081M / 105M.
>
> Closing Firefox returns 100% of Firefox memory to OS (as long as all the
> processes are killed). I don't know that it would affect Xorg's usage
> though.
I understand, but apparently sometimes application memory leaks show up
as increased Xorg memory usage:
https://unix.stackexchange.com/questions/6538/xorg-memory-leaks
This is admittedly old, and xrestop doesn't show anything too
suspicious.
> A lot of memory in Linux (and other OS's) is allocated to cache/buffers
> to speed things up. As programs use more memory the amount for that goes
> down.
>
> For example on my system now with 16GB I have:
> MiB Mem : 16007.9 total, 4564.8 free,
> 6306.2 used, 5136.9 buff/cache
>
> (with thunderbird, chrome, etc. open).
>
> So 5GB is used for cache and 6GB is used for programs and about 4GB is free.
I understand this, but as I've been saying, I have the impression that
too much memory is being actually used outside buffers and cache.
Celejar
Reply to: