also check for getpagesize
Implementing a locked_alloc/free mechanism