how far away do you have to be for mobs to spawn?
Mobs won't spawn closer than 24 blocks. They won't move around when farther than 32 blocks. Those are the only rules you need to know for a grinder that relies on mobs walking around.