Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRIU time compensation required between checkpoint and restore (C/R) #16573

Open
JasonFengJ9 opened this issue Jan 18, 2023 · 0 comments
Open
Labels
criu Used to track CRIU snapshot related work

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Jan 18, 2023

The elapsed time between C/R is indeterministic, any mechanism that might be affected by C/R elapsed time requires time compensation. A few changes have already been made for such time compensation.

Following are use scenarios that might require time compensations according to a recent code survey:

JVM natives might require time compensation

	spanPlatform = iterator->endPlatform - iterator->startPlatform;
	spanSystem = iterator->endSystem - iterator->startSystem;
	iterator->timeConversion = spanPlatform / spanSystem;
	duration = omrtime_current_time_millis() - duration;
	env->_scavengerStats._scanCacheAllocationDurationDuringSavenger += duration;

Java APIs requiring time compensation

@JasonFengJ9 JasonFengJ9 added the criu Used to track CRIU snapshot related work label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criu Used to track CRIU snapshot related work
Projects
None yet
Development

No branches or pull requests

1 participant