Skip to content

MPI_ALLOC_MEM slowness with CP2K application #3182

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

Open
jsquyres opened this issue Mar 16, 2017 · 3 comments
Open

MPI_ALLOC_MEM slowness with CP2K application #3182

jsquyres opened this issue Mar 16, 2017 · 3 comments

Comments

@jsquyres
Copy link
Member

There were 3 separate threads about this issue on the Open MPI mailing list:

Short version:

It looks like this app (CP2K -- https://www.cp2k.org/) is experiencing a large slowdown with regards to MPI_ALLOC_MEM/MPI_FREE_MEM. Users cite that profiling has shown that it is spending 70% of its time in ALLOC_MEM, for example.

It's not immediately clear if MPI_ALLOC_MEM is being called too often (e.g., for buffers that don't really need to be registered), or if simply the switch to actively register/deregister buffers for every alloc / dealloc is significantly more expensive than Open MPI's usual lazy model of registration / deregistration.

Opening this issue to track the progress.

@loveshack @hiliev @JingchaoZhang @ggouaillardet @hjelmn @bosilca Feel free to tag others if they are interested.

@jsquyres
Copy link
Member Author

Per discussion on the thread, and in discussions with @hjelmn, it sounds like we should:

  1. Add an MCA param to disable de/registration during MPI_ALLOC|FREE_MEM.
  2. Default the value of this MCA param to "disable" when memory hooks are enabled (i.e., the lazy mechanisms work quite well), and default it to "enable" when memory hooks are disabled (i.e., we want to let users effectively control their own registration/deregistration).

@hppritcha hppritcha modified the milestones: v2.0.3, v2.0.4 Jun 1, 2017
@hppritcha
Copy link
Member

@hjelmn have the items discussed above been addressed?

@hppritcha
Copy link
Member

It was decided at the 7/17 devel F2F to move this to future milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants