lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 17.01.2020 um 15:24 schrieb Andre Leiradella:>
> Aren't those 48 bits the upper bits of the virtual address, allowing
> 2^48 pages of 64 KiB each? I think that's the case with AArch64.
>
No, it is the lower part[1]. Under Linux, the userspace part is
even smaller, "only" 128 TB[2], allowing 32768 states with 4GB.
But this should still be enough for anything... it really is an
interesting approach!
It could probably be used to build a simple and efficient snapshot +
rollback algorithm for a whole program.

[1] https://en.wikichip.org/wiki/arm/aarch64 "MMU"
[2] https://www.kernel.org/doc/Documentation/x86/x86_64/mm.txt