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

v4.0.x, oshmem:ucx, fix race condition and add context recycling #7215

Merged
merged 1 commit into from
Dec 16, 2019

Conversation

janjust
Copy link
Contributor

@janjust janjust commented Dec 3, 2019

  1. Race condition: Do not add private contexts to active list.
    Private contexts are only visible to the user.
  2. Recycled contexts: Destroyed contexts are put on an idle list until
    finalize, continuous context creation will lead to oom condition.
    Instead, check if context from idle list meets new context requirements
    and reuse it.

Co-authored with: Artem Y. Polyakov [email protected],
Manjunath Gorentla Venkata [email protected]

Signed-off-by: Tomislav Janjusic [email protected]

Copy link
Member

@gpaulsen gpaulsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a cherry-pick of ebb985d ? If so, can you please redo this Pull request by using -x flag to git cherry-pick -x so that git includes the "Cherry Picked From" comment in the commit message? This helps up keep track of commits in the future.

1) Race condition: Do not add private contexts to active list.
Private contexts are only visible to the user.
2) Recycled contexts: Destroyed contexts are put on an idle list until
finalize, continuous context creation will lead to oom condition.
Instead, check if context from idle list meets new context requirements
and reuse it.

Co-authored with: Artem Y. Polyakov <[email protected]>,
                  Manjunath Gorentla Venkata <[email protected]>

Signed-off-by: Tomislav Janjusic <[email protected]>
(cherry picked from commit bd7cdf7)
@janjust janjust force-pushed the v4.0.x-oshmem-context-fixes branch from 915e303 to b84074d Compare December 10, 2019 15:53
@janjust janjust requested a review from gpaulsen December 10, 2019 15:53
@janjust
Copy link
Contributor Author

janjust commented Dec 10, 2019

@gpaulsen done

Copy link
Member

@gpaulsen gpaulsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the -x to cherry pick to help with keeping track of things.

@hppritcha
Copy link
Member

bot:ompi:retest

@janjust
Copy link
Contributor Author

janjust commented Dec 11, 2019

@artpol84 , please approve if no objections

@hppritcha hppritcha merged commit af04a9d into open-mpi:v4.0.x Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants