Each thread has its own stack. On Linux, the default stack size is 8 MB. When you start allocating memory for the first time, the heap memory allocator can actually reserve a large chunk in front. This may explain 64 MB per stream that you see.
, "", , . . VSZ ps VIRT top. Linux , , , . , , Linux , . , , RSS ps RES top. Linux , .
, , 32- , 8 , ( 2 ). ++ , C pthreads , pthread_create() pthread_attr_t, pthread_attr_setstacksize(). . fooobar.com/questions/193878/....