Re: Can we drop upstream Linux x32 support?

From: Maciej W. Rozycki
Date: Tue Dec 11 2018 - 19:00:15 EST


On Tue, 11 Dec 2018, Shawn Rutledge wrote:

> I like the idea of x32 in theory: any machine with 4GB or less of memory
> for sure does not really need to waste any precious space storing 64-bit
> pointers; and even if more memory is available, software that needs to
> access more than 4GB per process is somewhat rare (as it should be).

You can't mmap(2) files the size of which exceeds the size of the 32-bit
user address space with an ILP32 ABI though, regardless of how much
physical memory a given system supports or has actually installed.

Also you can have a process's VM size exceed the 32-bit user address
space where swap files are used, e.g. I have a system with 3GiB of DRAM
installed and as much swap space available, where the amount of memory
consumed by a process sometimes exceeds 4GiB -- it's enough to open a
couple of web pages at once in a browser these days to get there (don't
ask me what it uses all that memory for).

So there are still use cases for an LP64 ABI even for systems the whole
physical memory of which can be handled with 32-bit addressing.

Maciej