[CRIU] [PATCH] seize: increase timeout of freezing processes

Andrey Vagin avagin at openvz.org
Mon Nov 23 11:45:55 PST 2015


From: Andrew Vagin <avagin at virtuozzo.com>

The timeout between iterations should be the save oder
with scheduler timeslice, which is about 100 msec.

Currently we wait for inly 10 msec, which is obviously not enough.

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 seize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/seize.c b/seize.c
index 170025b..e3953b3 100644
--- a/seize.c
+++ b/seize.c
@@ -238,7 +238,7 @@ static int freeze_processes(void)
 			continue;
 		}
 
-		timeout = 10000000 * i;
+		timeout = 100000000 * (i + 1); /* 100 msec */
 		req.tv_nsec = timeout % 1000000000;
 		req.tv_sec = timeout / 1000000000;
 		nanosleep(&req, NULL);
-- 
2.4.3



More information about the CRIU mailing list