Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Conversation

@hppritcha
Copy link
Member

This is a hand-coded patch to udreg mpool
component to use the mntent interface to
parse /proc/mounts entries.

Needed for XC/KNL-xeons running CLE 6
or higher because, depending on use of images
at customer site, there may be some very large
entries in /proc/mounts which broke the original
parsing code, leading to failure to launch, segfaults,
etc.

@hjelmn

Signed-off-by: Howard Pritchard howardp@lanl.gov

@hppritcha hppritcha added the bug label Aug 4, 2016
@hppritcha hppritcha added this to the v2.0.1 milestone Aug 4, 2016
@mellanox-github
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ompi-release-pr/2019/ for details.

#elif defined(HAVE_STATVFS)
struct statvfs info;
statvfs (mntent->mnt_dir, &info);
page_size = info.f_bsize;
Copy link
Member

Choose a reason for hiding this comment

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

Setting the page_size variable needs to happen outside the #if region.

@hjelmn
Copy link
Member

hjelmn commented Aug 8, 2016

One minor bug but otherwise good to go. Let me know when it is fixed and I will mark as reviewed.

This is a hand-coded patch to udreg mpool
component to use the mntent interface to
parse /proc/mounts entries.

Needed for XC/KNL-xeons running CLE 6
or higher because, depending on use of images
at customer site, there may be some very large
entries in /proc/mounts which broke the original
parsing code, leading to failure to launch, segfaults,
etc.

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
@hppritcha hppritcha force-pushed the topic/mntent_mpool_fixes branch from 6643518 to 3912271 Compare August 10, 2016 18:07
@hppritcha
Copy link
Member Author

@hjelmn I fixed it 😃

@mellanox-github
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ompi-release-pr/2081/ for details.

@hppritcha
Copy link
Member Author

@hjelmn please review again

@hjelmn
Copy link
Member

hjelmn commented Aug 16, 2016

👍

@jsquyres jsquyres merged commit a3d9ed7 into open-mpi:v2.x Aug 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants