News for hackers. Stuff that matters.
Re:NetBSD on the Nvidia Jetson TK1 by sprash on Saturday July 25, 2015 @06:08PM (#9949227)
The ARM architecture supports LPAE with up to 40 bits. So the memory cap is at 1024 GB. But I never came across a device utilizing LPAE.

Since there are also ways to get around the 4GB per process cap on 32Bit systems I never understood the craze for 64 bit systems. Most of the time 64 bit makes things slower (e.g. that is why the x32 linux abi exists) and leads to more power consumption.

Re:NetBSD on the Nvidia Jetson TK1 by krylon on Sunday July 26, 2015 @04:58AM (#9950574)
> Most of the time 64 bit makes things slower

I am aware that this is strictly andecotal, but when I got my first AMD64 system, I first ran Gentoo/x86 on it, and eventually I reinstalled Gentoo/amd64. I did not notice any performance difference at all. Now, amd64 (x64, x86_64, whatever you may call it) has more registers than plain x86, so maybe the differences cancel each other out in this specific case.

Re:NetBSD on the Nvidia Jetson TK1 by throwaway2048 on Sunday July 26, 2015 @01:25AM (#9950242)
PAE/LPAE are a really awful hack, and you are still resticted to 4GB per process, unless you do app specific PAE/LPAE custom allocators (also a terrible hack).

a real 64 bit processor with a real 64bit memory space is a much better solution all around.

Re:NetBSD on the Nvidia Jetson TK1 by sprash on Sunday July 26, 2015 @05:04AM (#9950582)
How is PAE a "really awful hack"? As soon as your processor has a MMU there is neither any "hack" involved nor do you pay any performance penalty.

And if your app really needs more than 4GB of memory it might be sensible to fork() anyways since unix processes are dirt cheap. It also plays well with modern multicore architectures since it forces you to parallelize your problem.

The single most important performance issue we have today is really memory bandwidth and access time. If you carry 64 bit pointers around all the time you need roughly 30% percent more memory which is wasted on precious cache. So you have to either live with even more cache misses or you have to increase the cache size. And since cache is one of the major power and chip area consumer in todays processors increasing the cache is expensive in many ways.

Re:NetBSD on the Nvidia Jetson TK1 by zurn on Sunday July 26, 2015 @05:45AM (#9950632)
A performance penalty and kernel memory management complexity comes from peripherals and kernel's inability to directly address all memory and resulting need for bounce buffers. Liked it was with ISA dma 16mb limitation and Linux in the bad old days.
Re:NetBSD on the Nvidia Jetson TK1 by dezgeg on Sunday July 26, 2015 @06:27AM (#9950676)
You don't need PAE/LPAE to get to the situation where the kernel can't directly address all physical memory. That point is reached at ~900 MB, after which you need to compile the kernel with HIGHMEM support.