-
Notifications
You must be signed in to change notification settings - Fork 732
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
Close and Reopen JIT log files across a checkpoint/restore #20935
base: master
Are you sure you want to change the base?
Conversation
A consequence of this change is that when |
@mpirvu could you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is openNewRTLog()
, openNewVlog()
and openLogFilesIfNeeded()
going to be used anymore?
Also, what about the compilation logs?
I believe these get opened at the start of a compilation and are closed at the end of one. |
One thing I"m not sure about actually is what happens right now if we specify |
Do you to handle disableSuffixLogs in this PR or separately? |
I figure I should handle it here; I think otherwise, it'll break some of those cmdLineTester tests. |
A common best practice in CRIU mode, at least in OpenJ9, is to close all open files before a checkpoint, and reopen them on restore. The JIT would keep log files such as the vlog and rtLog open across a checkpoint/restore boundary. This commit closes these files on checkpoint and reopens them on restore. Signed-off-by: Irwin D'Souza <[email protected]>
I thought this was the case, but it may not be the case... I think we hold on to the file handles so that they can be used by different threads. I'll have to look deeper into this. |
A common best practice in CRIU mode, at least in OpenJ9, is to close all open files before a checkpoint, and reopen them on restore. The JIT would keep log files such as the vlog and rtLog open across a checkpoint/restore boundary. This PR closes these files on checkpoint and reopens them on restore.