1. A computer implemented method for computing a checkpoint interval, the computer implemented method comprising: determining a cost associated with taking a checkpoint, the cost including an energy cost; computing an interval between checkpoints to minimize the cost; and sending an instruction to schedule the checkpoints at the computed interval.