-
Notifications
You must be signed in to change notification settings - Fork 932
Remove ptmalloc2 hooks from v2.1.x #2217
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
Conversation
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Because of the removal of the linux memory component it is no longer necessary to initialize the memory component in opal_init(). This commit moves the initialization to the creation of the first rcache component. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov> (cherry picked from commit c2b6fbb) Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
This commit fixes an error in the failure path of leave_pinned. When the rcache tries to enable leave_pinned but leave_pinned was not specifically requested (opal_leave_pinned == -1) the code was erroneously printing an error and returning NULL. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov> (cherry picked from commit 25a97af) Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
| available, this will cause memory corruption. Refuse to run. | ||
| Right now, ptmalloc2 is the only memory manager that we have on | ||
| OS's that support OpenFabrics that provide both FREE and MUNMAP | ||
| support, so the following test is [currently] good enough... */ |
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.
@hjelmn You just deleted the ptmalloc component, so is this still needed?
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.
And it may not be true anymore.
|
@hppritcha and I discussed: this is a code cleanup PR, and is ok for v2.1.0. |
|
bot:lanl:retest |
|
@gpaulsen Can IBM test / review this? |
jsquyres
left a comment
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.
Please add a Signed-off-by line to this PR's commit.
|
bot:lanl:retest |
jsquyres
left a comment
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.
All commits signed off. Thanks!
|
Well, I read the code, but didn't fully understand it. I'll download it and give it a whirl. |
|
Sorry, getting back to this. I'll do this today. |
Follow on to open-mpi#2217. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
jsquyres
left a comment
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.
Review addressed in #2184.
|
Correction: review addressed in #2804. |
gpaulsen
left a comment
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.
+1
In v2.0.x we added new memory hooks to replace ptmalloc2. We let the old hooks stick around but disabled them by default. We agreed to remove the hooks entirely in v2.1.x. If that is still the case please merge this PR.