Re: Retrieive vsz_limit programatically

2021-11-22 Thread Timo Sirainen
Do you want to find out the service/process's own vsz_limit or another service's vsz_limit? Own vsz_limit would be easiest to get with getrlimit(RLIMIT_AS) as Aki said. If you want another service's vsz_limit that's not easily possible, because those settings just aren't sent to anything except

Re: Retrieive vsz_limit programatically

2021-11-21 Thread Aki Tuomi
Dovecot master process uses setrlimit to enforce the limit, so you should be able to get it with RLIMIT_AS or RLIMIT_DATA, iirc it depends a bit on os which is used. I dont think service->vsz_limit is available on the service itself. Aki On 21 November 2021 12.20.16 UTC, Joan Moreau wrote: >

Re: Retrieive vsz_limit programatically

2021-11-20 Thread Aki Tuomi
You could try getrlimit RLIMIT_AS. Aki On 20 November 2021 17.22.17 UTC, Joan Moreau wrote: > > >Hello > >How to get, programatically (C/C++), the value of teh dovecot.conf file >of vsz_limit and default_vsz_limit ? > >Thank you

Re: Retrieive vsz_limit programatically

2021-11-20 Thread Plutocrat
There's a doveconf command that will get that for you eg doveconf default_vsz_limit => default_vsz_limit = 256 M On 21/11/2021 02.34, William Edwards wrote: Op 20 nov. 2021 om 18:23 heeft Joan Moreau het volgende geschreven:  Hello How to get, programatically (C/C++), the value of teh

Re: Retrieive vsz_limit programatically

2021-11-20 Thread William Edwards
> Op 20 nov. 2021 om 18:23 heeft Joan Moreau het volgende > geschreven: > >  > Hello > > > > How to get, programatically (C/C++), the value of teh dovecot.conf file of > vsz_limit and default_vsz_limit ? > Parse doveconf? > Thank you > >