Thread stack management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What is the size of each user thread that gets created in Linux? I remember it used to be 2MB for each thread created beyond the main thread, actually Linux used mmap to reserve 2MB of linear space in the address space of the process and then memory was allocated as needed.  But recently when I wrote a program with a couple of threads created by the pthread library and checked the memory space of the process with pmap and /proc/pid/maps, I noticed that 10M of space was created for each thread's stack.
 
Has something changed and the thread stack space has increased from 2M to 10M?
 
Thanks 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux