Re: vsz_limit status

2024-10-07 Thread Joan Moreau via dovecot
Additionally, I get error:  'master_service_get_process_limit' was not declared in this scope  (dovecot git version) On Tue, 2024-10-08 at 08:16 +0800, Joan Moreau via dovecot wrote: > Hi > > What is the link between getrlimit (linux posix) ,  the vsz_limit > parameter nd " MemAvailable"  from /

Re: vsz_limit status

2024-10-07 Thread Joan Moreau via dovecot
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_

Re: vsz_limit status

2024-10-07 Thread Joan Moreau via dovecot
Hi What is the link between getrlimit (linux posix) , the vsz_limit parameter nd " MemAvailable" from /proc/meminfo ? Is tehre 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 ? Thankyou On 20

Re: vsz_limit status

2024-10-07 Thread Aki Tuomi via dovecot
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 wrote: > > > get_rusage does not give me the value of vsz_limit from dovecot.conf ! > > Need also

Re: vsz_limit status

2024-10-07 Thread Joan Moreau via dovecot
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 wrote: Hi How to get (programatically, c++) the current usag