virtual memory - Why is the size of stack segment much smaller than ulimit -s? -
i've noticed that, in ubuntu 12.04 x64, programs map stack segment virtual address range like:
7fff0f59b000-7fff0f5bc000 rw-p 00000000 00:00 0 [stack]
since 0xbc000 - 0x9b000 = 0x21000 = 135168, size smaller value given ulimit -s (8192kb)
could tell me why? stack segment grow automatically 8mb limit? thank in advance.
i found reason. ulimit -s upper limit, not initial committed virtual memory stack. grow. sill don't know how achieve that. "sub rsp, size; mov [rsp], imm" not work.
Comments
Post a Comment