Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Is there a limit of stack size of a process in QNX?: (2 Items)
   
Is there a limit of stack size of a process in QNX?  
Hi there, 

While working with IPC, I got to know that the default stack size for a process is  512KB.  It can be increased or 
decreased setting argument '-N' option. I still want to know the the maximum size that can be assigned to a process. 
Does somebody know about it ? 

Thank you very much, 
Best Regards, 
Bhupesh
Re: Is there a limit of stack size of a process in QNX?  
The stack region is created with an (almost) standard mmap() call. The
maximum size therefore depends on the size of the address space and how
much is needed for other mmap()s. On a 64-bit system you could, in
theory, have a stack that is hundreds of gigabytes in size. Whether you
have enough memory to support the metadata for such a stack is a
different question...

--Elad

On Thu, 2018-04-26 at 08:48 -0400, Bhupesh Bhupesh wrote:
> Hi there, 
> 
> While working with IPC, I got to know that the default stack size for
> a process is  512KB.  It can be increased or decreased setting
> argument '-N' option. I still want to know the the maximum size that
> can be assigned to a process. Does somebody know about it ? 
> 
> Thank you very much, 
> Best Regards, 
> Bhupesh
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post118790
> To cancel your subscription to this discussion, please e-mail ostech-
> core_os-unsubscribe@community.qnx.com