Welcome! Log In Create A New Profile

Advanced

Re: Resident memory not released

Peter Booth via nginx
August 02, 2019 01:58AM
I’m wondering if you are overthinking this. You said that the memory was reused when the workload increased again. Linux memory management is unintuitive. What would happen if you used a different metric, say # active connections, as your autoscaling metric? It sounds like this would behave “better”.

> On 29 Jul 2019, at 3:10 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> Hello!
>
> On Mon, Jul 29, 2019 at 02:52:47PM -0400, aledbf wrote:
>
>>> on your system allocator and its settings.
>>
>> Do you have a suggestion to enable this behavior (release of memory) using a
>> particular allocator or setting?
>> Thanks!
>
> On FreeBSD and/or on any system with jemalloc(), I would expect
> memory to be returned to the OS more or less effectively.
>
> On Linux with standard glibc allocator, consider tuning
> MALLOC_MMAP_THRESHOLD_ and MALLOC_TRIM_THRESHOLD_ environment
> variables, as documented here:
>
> http://man7.org/linux/man-pages/man3/mallopt.3.html
>
> Note that you may need to use the "env" directive to
> make sure these are passed to nginx worker processes as well.
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Resident memory not released

fredr July 29, 2019 11:25AM

Re: Resident memory not released

Maxim Dounin July 29, 2019 01:04PM

Re: Resident memory not released

aledbf July 29, 2019 02:52PM

Re: Resident memory not released

Maxim Dounin July 29, 2019 03:12PM

Re: Resident memory not released

fredr July 30, 2019 10:46AM

Re: Resident memory not released

Peter Booth via nginx August 02, 2019 01:58AM

Re: Resident memory not released

fredr August 05, 2019 07:12AM

Re: Resident memory not released

aledbf August 05, 2019 12:37PM

Re: Resident memory not released

fredr August 06, 2019 03:52AM

Re: Resident memory not released

aledbf August 06, 2019 01:08PM

RE: Resident memory not released

R, Rajkumar (Raj) August 05, 2019 08:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready