Is there a limit of stack size of a process in linux

前端 未结 4 771
暖寄归人
暖寄归人 2020-12-06 01:42

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

4条回答
  •  执念已碎
    2020-12-06 02:04

    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?

提交回复
热议问题