<?xml version="1.0" encoding="windows-1252"?>
<node id="532991" title="Re: Use more threads." created="2006-02-27 06:27:26" updated="2006-02-27 01:27:26">
<type id="11">
note</type>
<author id="209409">
hv</author>
<data>
<field name="doctext">
&lt;p&gt;&lt;i&gt;&amp;#91;[renodino]&amp;#93; has been unable to find a binary edit utility for the Linux platform.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;For setting stacksize, you need the API function setrlimit(2); the manpage refers you also to the bash builtin 'ulimit' and quotactl(1).&lt;/p&gt;

&lt;p&gt;Trying that locally against an example from [id://532616]:&lt;c&gt;
zen% ulimit -s
8192
zen% perl -wle '$n=shift; $_="a" x $n; /(ab*)+/' 10080
Segmentation fault (core dumped)
zen% ulimit -s 32768 
zen% perl -wle '$n=shift; $_="a" x $n; /(ab*)+/' 10080
zen% perl -wle '$n=shift; $_="a" x $n; /(ab*)+/' 32766
zen% perl -wle '$n=shift; $_="a" x $n; /(ab*)+/' 32767
Complex regular subexpression recursion limit (32766) exceeded at -e line 1.
zen% 
&lt;/c&gt;.. which gets me to the builtin limit.&lt;/p&gt;

&lt;p&gt;Note that the limit may be capped by root, and that more complex systems may use the quota-based accounting method; but any barriers are there to stop people &lt;i&gt;increasing&lt;/i&gt; stack size, so they shouldn't cause a problem for your requirements here.&lt;/p&gt;

&lt;p&gt;HTH,&lt;/p&gt;

&lt;p&gt;Hugo&lt;/p&gt;</field>
<field name="root_node">
532956</field>
<field name="parent_node">
532956</field>
</data>
</node>
