Checkpointing while setting up parallel memory to disk