[haiku-development] Re: Address Space Layout
- From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Tue, 6 Dec 2016 21:33:05 +0100
Am 06/12/2016 um 20:11 schrieb Dario Casalinuovo:
we are using this address layout :
kernel land: 0x80000000-0xFFFFFFFFF
user land: 0x00000000-0x7FFF0000
Almost every main OS (linux, windows) is using this layout :
kernel land: 0xC0000000-0xFFFFFFFFF
user land: 0x00000000-0xBFFFFFFFF
This isn't really correct, see for example
https://msdn.microsoft.com/de-de/library/windows/desktop/aa366912(v=vs.85).aspx
Having Windows only use 1 GB for the kernel was optional, not the
default, and not all versions did support it.
I have two questions :
* Is there some specific reason for using this layout?
* Any objection if I change it to conform the mainstream?
Yes to both: our block cache needs mapped memory to work correctly, and
less address space could harm the system.
Is there any specific reason why you need more than 2 GB in userspace?
If you can make it an option, your patch might be acceptable, but since
we already do have a 64 bit Haiku, why not just use that one?
Bye,
Axel.
Other related posts: