update memory settings