<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 9pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi</p>
<p>This does not really work</p>
<p>Putting</p>
<p>service indexer-worker {<br /> vsz_limit = 1G<br />}</p>
<p>Getrlimit returns "-1"</p>
<div id="signature"></div>
<p><br /></p>
<p>Is there a proper function giving the actual process size (memory used) and limit (vsz_limit, either process of default_vsz_limit, as applicable) ?</p>
<p><br /></p>
<p id="reply-intro">On 2021-11-21 07:09, Aki Tuomi wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div style="font-size: 9pt; font-family: Verdana,Geneva,sans-serif;">You could try getrlimit RLIMIT_AS.<br /><br />Aki<br /><br />
<div class="v1gmail_quote">On 20 November 2021 17.22.17 UTC, Joan Moreau <jom@grosjo.net> wrote:
<blockquote class="v1gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<p>Hello</p>
<p><br /></p>
<p>How to get, programatically (C/C++), the value of teh dovecot.conf file of vsz_limit and default_vsz_limit ?</p>
<p>Thank you</p>
<p><br /></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</body></html>