Skip to content

Conversation

@jsquyres
Copy link
Member

The giant size of the TCP proc struct is causing a problem in some
environments (because it is allocated on the stack), and it was too
big, anyway.

Instead, use a hash map. That way, it starts small and can grow if it
needs to. It also makes no assumptions about the values of the kernel
interface indexes.

Fixes #5292.

Signed-off-by: Jeff Squyres [email protected]
(cherry picked from commit 9034717)

Refs #5392. FYI @lgarithm

v3.1 RMs: if trying to get v3.1.1 out, this can easily slip to v3.1.2.

@jsquyres jsquyres added this to the v3.1.1 milestone Jun 25, 2018
@jsquyres jsquyres requested a review from bosilca June 25, 2018 16:42
@jsquyres jsquyres modified the milestones: v3.1.1, v3.1.2 Jun 25, 2018
@jsquyres
Copy link
Member Author

Per RM discussion: punting to v3.1.2.

@PeterGottesman
Copy link
Contributor

Also effected by #5350.

@jsquyres
Copy link
Member Author

Cherry picked the fix from #5351 to this PR -- wait for #5351 to be merged before merging this PR.

jsquyres added 3 commits June 29, 2018 07:53
The giant size of the TCP proc struct is causing a problem in some
environments (because it is allocated on the stack), and it was too
big, anyway.

Instead, use a hash map.  That way, it starts small and can grow if it
needs to.  It also makes no assumptions about the values of the kernel
interface indexes.

Fixes open-mpi#5292.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 9034717)
Fix two facepalms:

1. The "uint32" in the hash map functions refer to the *key* size, not
   the *value* size.  The values are always 64 bits.
2. Pass the straight value to the "set" functions -- not the pointer
   to the value.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 57bc657)
The current cast is *functional*, but isn't really the way it should
be done.  This commit makes the cast the way it should be done.

Signed-off-by: Jeff Squyres <[email protected]>
@bwbarrett bwbarrett added the NEWS label Jul 2, 2018
@bwbarrett bwbarrett merged commit cb9825e into open-mpi:v3.1.x Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants