Regarding the page / map size: At first I tried this with larger sizes
(around 98 kb), but no difference.
Johnny wrote:
What is the pagesize of the machine?
pagesize yields 4096 on the system in question, so it shouldn't be of
relevance, I guess.
Michael wrote:
But the start address in the test program is aligned to something much
larger, so the first test should succeed if that was the problem. I
wouldn't bet on the address range used being available though, but
that's just a hunch.
Why shouldn't the range be available, though? /proc/PID/maps does not
show any mapping in this range. Is there some kernel related mapping
that doesn't show up in /proc/PID/maps?