3 ms·
1. 2^46 + 2^46 is 2^47 2. The actual size of the page-table will depend on the page sizes supported by the architecture. On modern x86_64 for programs with le
by aidenn0 5y ago
1. 2^46 + 2^46 is 2^47
2. The actual size of the page-table will depend on the page sizes supported by the architecture. On modern x86_64 for programs with less than 32k threads, It might make sense to use 1GB stacks with 1GB guard pages, for just 2 PTEs per thread, less than the 5 needed for 8MB using 2MB pages.