Re:Malloc Never Fails (2012)
by metrxqin on Monday June 10, 2019 @05:22AM
(#20145107)
That's incorrect, 2^48 bits = 262144GB actually.
[ Parent
| on HN ]
They forgot to mention the kernel gets the top half of the address space, leaving 2^47 for the process. And then it mostly adds up.
Re:Malloc Never Fails (2012)
by lifthrasiir on Monday June 10, 2019 @05:28AM
(#20145128)
But x86-64 divides the 48-bit address space into two halves, only one of which is available in the user mode.
To be fair, there's nothing that says the higher half _has_ to be entirely kernel mode. Only that bits 63 through 48 have to be the same value.
And Intel has a spec out for a PML5 page table, giving you 57 total virtual address bits.