When a large block of memory (> pagesize = 4096 bytes) is first allocated on Linux, it uses special βzeroβ pages of memory in pagetable that are not backed up by anything, so when a thread is running, it will allocate ~ 1 MB of these zero pages to the stream stack . As the stack grows, the pages are then converted to real fallback pages. Because of this "zero" page support, it is usually good to have fairly large stacks.
Themes and processes are created with the same basic script called clone (2) . It has many options and many things. see man clone for a detailed explanation.
http://linux.die.net/man/2/clone
Large blocks of memory are allocated by the anonymous mmap (2) call.
You may also be interested in doing an Internet search for the βLinux rebuild bitβ
(If you want to clarify your question, I can be more specific.)
source share