Is there a limit on the stack size of a process in Linux? Is it simply dependent on the RAM of the machine? I want to know this in ord
stack
Linux
RAM
The limit can be set by the admin.
See man ulimit.
There is probably a default which you cannot cross. If you have to worry about stack limits, I would say you need to rethink your design, perhaps write an iterative version?