Hi

What is the link between getrlimit (linux posix) , the vsz_limit parameter nd " MemAvailable" from /proc/meminfo ?

Is there a way to see how much of the allocated memory (vsz ?) the process is using in dovecot ?

Does that vsz limit take into account the direct malloc ?

For the master_service_get_process_limit(), does this refer to the master process or the service itself ?

If the .conf is as follows, where to get the process_limit value ?

service indexer-worker {
    vsz_limit = 2G
    process_limit = 2
}

Thank you

On 2024-10-08 00:20, Aki Tuomi via dovecot wrote:

With 2.3 you can use master_service_get_process_limit() for the process limit.

To get vsz_limit, it's probably easiest to use getrlimit().

Aki

On 07/10/2024 19:00 EEST Joan Moreau via dovecot <dovecot@dovecot.org> wrote:

get_rusage does not give me the value of vsz_limit from dovecot.conf !

Need also process_limit (also from dovecot.conf)

Thank you

On 2024-10-07 14:13, Aki Tuomi via dovecot wrote:

On 07/10/2024 07:36 EEST Joan Moreau via dovecot <dovecot@dovecot.org>
wrote:

Hi

How to get (programatically, c++) the current usage of memory, under
the
limit of vsz_limit ?

https://doc.dovecot.org/2.3/configuration_manual/service_configuration/#service-configuration-vsz-limit

Thank you
You could try https://man7.org/linux/man-pages/man2/getrusage.2.html

Aki
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
 _______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org _______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to