Comment 4 for bug 1917157

Revision history for this message
Sven Hartrumpf (hartrumpf) wrote :

There are many programming languages where some frequent programming patterns (like non tail recursion) use more stack than the default of 8192. People normally increase the stack limit in such cases, e.g.

 # ulimit -S -s 800000

The run time increase is linear in stack limit:

 # time run-this-one echo

real 3,763s user 3,012s syst 0,249s busy 86,65%
real 6,954s user 6,028s syst 0,425s busy 92,78% (with doubled stack limit)

Or even:

 # ulimit -S -s unlimited
 # time run-this-one echo
pgrep: cannot allocate 4611686018427387903 bytes

real 0,658s user 0,071s syst 0,076s busy 22,31%