News for hackers. Stuff that matters.
Re:Understanding thread stack sizes and how Alpine is different by viraptor on Saturday June 26, 2021 @09:16AM (#27641550)
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)
Re:Understanding thread stack sizes and how Alpine is different by megous on Saturday June 26, 2021 @01:38PM (#27644001)
Mapping 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.