Dear All,

I have very complex user space application contain more then 400 threads. I want to limit the stack size in user space, for this I want to know how much stack size each thread use in worst case.

To calculate this is I need to modify in kernel ? or current kernel have any support ?
or is there a method I can get from smaps?

Thanks