Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
freeze_processes: fix nr_attempts calculation
Commit 9fae23f grossly (by 1000x) miscalculated the number of attempts required, as a result, we are seeing something like this: > (00.000340) freezing processes: 100000 attempts with 100 ms steps > (00.000351) freezer.state=THAWED > (00.000358) freezer.state=FREEZING > (00.100446) freezer.state=FREEZING > ...close to 100 lines skipped... > (09.915110) freezer.state=FREEZING > (10.000432) Error (criu/cr-dump.c:1467): Timeout reached. Try to interrupt: 0 > (10.000563) freezer.state=FREEZING For 10s with 100ms steps we only need 100 attempts, not 100000. While at it, add an error print in case we hit the timeout earlier than i reaches nr_attempts. Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information