[mpich-devel] small MPI_Win_allocate

Balaji, Pavan balaji at anl.gov
Tue May 17 14:20:48 CDT 2016


It does allocate from shared memory irrespective of the size.  It's not page-aligned unless you ask for noncontig allocations.  With respect to wasted VM space, you'll run out of window contexts much before you run out of VM space, so I'm not sure this is a worthwhile optimization.

  -- Pavan

> On May 12, 2016, at 4:54 PM, Jeff Hammond <jeff.science at gmail.com> wrote:
> 
> If I call MPI_Win_allocate for e.g. 8 bytes, does it allocate shared memory every time, and thus potentially allocate with page alignment, which could cause a lot of empty VM space?
> 
> Perhaps I do not understand POSIX shared memory well enough, but it strikes me that it might be a worthwhile optimization to have a memory pool for small-size MPI_Win_allocate(_shared) calls.
> 
> Thanks,
> 
> Jeff
> 
> -- 
> Jeff Hammond
> jeff.science at gmail.com
> http://jeffhammond.github.io/
> _______________________________________________
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/devel



More information about the devel mailing list