getting the size of the memregion