I am working on Ubuntu 11.04. How do I find out the maximum call stack size of a process and also the size of each frame of the stack?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can query the maximum process and stack sizes using
getrlimit. Stack frames don’t have a fixed size; it depends on how much local data (i.e., local variables) each frame needs.To do this on the command-line, you can use ulimit.
If you want to read these values for a running process, I don’t know of any tool that does this, but it’s easy enough to query the /proc filesystem: