update shm
make history length longer, update shm