update memory config