-
Notifications
You must be signed in to change notification settings - Fork 26
Don't skip munmap of mtcp_restart regions. #353
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
base: main
Are you sure you want to change the base?
Changes from all commits
e8db1b5
a88dc36
f6e5001
d3f1133
2c3aaa3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -849,6 +849,12 @@ mtcp_plugin_skip_memory_region_munmap(Area *area, RestoreInfo *rinfo) | |
| LhCoreRegions_t *lh_regions_list = NULL; | ||
| int total_lh_regions = lh_info->numCoreRegions; | ||
|
|
||
| // Don't skip munmap of mtcp_restart regions. | ||
| if (mtcp_strendswith(area->name, "/mtcp_restart") || | ||
| mtcp_strendswith(area->name, "[heap]")) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we only want to skip the [heap] right after mtcp_restart. Also in mpi_plugin.cpp we need to do the same to skip those area for libsStart consideration.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update: For some reason unmap the heap region here would cause seg fault, but without unmapping it we will encounter conflict as well later. @karya0 |
||
| return 0; | ||
| } | ||
|
|
||
| if (regionContains(rinfo->pluginInfo.memRange.start, | ||
| rinfo->pluginInfo.memRange.end, | ||
| area->addr, area->endAddr)) { | ||
|
|
||
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.
Let's change the comment to remove the double negative:
// Do an munmap of mtcp_restart regions during restart. Don't skip this.Also, please add a comment about why we need to munmap the mtcp_restart regions within MANA, but we don't need to do that within ordinary DMTCP. Where is the potential address conflict that we're trying to avoid?
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.
I want to add that we should not skip all [heap] but only the [heap] right after the mtcp_restart region.