smwatt0
Posts: 2
Joined: Thu Aug 30, 2012 12:49 am

Re: 64-bit operating system

Fri Mar 22, 2019 5:11 pm

jdb wrote:
Mon Mar 19, 2018 10:45 pm
Heater wrote:
Mon Mar 19, 2018 9:30 pm
It is not.

There are some odd things that need a 64 bit address space.

I believe MongoDB is one. If your database is bigger than 2GB.

CockroachDB can get by with 32 bits but needs tweaking to do so.

Of course nobody in their right mind is going to be using a Pi for huge databases. Except for experimentation.
Ok, so "database engines that memory map inordinately huge database files" is one valid reason. Any more?
In building interpreters, it is useful to be able to stash extra information in pointers, e.g. using low-order bits that would otherwise be all zero from alignment, or high order bits that would otherwise have fixed values. These tricks are used in some lisp and javascript implementations.

The problem with 32 bit pointers is that high-order bits eat too much in to address space, limiting the usable memory size. With 64 bit pointers there is lots of room for this extra information, even if memory is limited to 4GB. Of course it is always possible to allocate extra space in objects to contain the information, but that increases memory traffic.

Return to “General discussion”