obey shm array limits