update memorypool