3 ms·
The main thread already does that. The thread stack does not. It probably made sense on 32b with relatively limited address space... But I'm curious why we're n
by viraptor 5y ago
The main thread already does that. The thread stack does not. It probably made sense on 32b with relatively limited address space... But I'm curious why we're not applying that to all threads on 64b. Reserving a few 10MB of address space per thread shouldn't be a big issue, right? (Without actually mapping those pages)
- megous 5y agoMapping a lot of pages has some overhead, too. So if you have large stacks per thread you'll take a hit. If you use huge pages to alleviate that, you'll waste a lot of physical memory.