Maybe the BIOS marks the top megabytes of memory as
uncacheable, which makes accesses ridiculously slow.
Cat /proc/mtrr to check.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-