Page 15 of 15

Re: 64-bit operating system

Posted: Fri Mar 22, 2019 5:11 pm
by smwatt0
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.

Re: 64-bit operating system

Posted: Fri Oct 04, 2019 4:37 am
by ozbird
Sakaki has made a bootable 64-bit Gentoo Linux image for the Raspberry Pi 3 B/B+ and 4 B:

It's bleeding edge, but I've used it to bootstrap and (re)build a 64-bit Gentoo environment from source code - mostly; there's still a few binary dependencies that I haven't figured out yet. (Building from source is optional; it uses binary packages by default.)

If you have a spare microSD card kicking around, give it a go - you might like it.