update the ram size.