<div dir="ltr">Hi Pavel,<div><br></div><div>You may find <a href="http://memkind.github.io/memkind/">http://memkind.github.io/memkind/</a> relevant.  In particular, <a href="http://memkind.github.io/memkind/memkind_arch_20150318.pdf">http://memkind.github.io/memkind/memkind_arch_20150318.pdf</a> section 2.2 and 2.3 discusses exactly the issues you raise.  We also note that memkind is intended to support multiple types of memory within a node, such as one might encounter in a platform such as Knights Landing.  You are free to imagine how it might map to OpenPOWER based upon your superior knowledge of that platform :-)</div><div><br></div><div>While I recognize that the origins of memkind at Intel may pose a challenge for some in the OpenPOWER family, it would be tremendously valuable to the community if it was reused for MPI and OpenSHMEM projects, rather than the UCX team trying to implement something new.  As you know, the both MPI and OpenSHMEM should run on a range of platforms, and it doubles the implementation effort in all relevant projects (MPICH, OpenMPI, OpenSHMEM reference, etc.) if UCX goes in a different direction.</div><div><br></div><div>I would be happy to introduce you to the memkind developers (I am not one of them, just someone who helps them understand user/client requirements).</div><div><br></div><div>Best,</div><div><br></div><div>Jeff</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 8:45 AM, Shamis, Pavel <span dir="ltr"><<a href="mailto:shamisp@ornl.gov" target="_blank">shamisp@ornl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Jemalloc Community,<br>
<br>
We are developer of UCX project [1] and as part of the effort<br>
we are looking for a malloc library that supports hooks for alloc/dealloc chunks and can be used for the following:<br>
<br>
(a) Allocation of memory that can be shared transparently between processes on the same node. For this purpose we would like to mmap memory with MAP_SHARED. This is very useful for implementation for Remote Memory Access (RMA) operations in MPI-3 one-sided [2] and OpenSHMEM [3] communication libraries. This allow a remote process to map user allocated memory and provide RMA operations through memcpy().<br>
<br>
(b) Implementation of memory de-allocation hooks for RDMA hardware (Infiniband, ROCE, iWarp etc.). For optimization purpose we implement a lazy memory de-registration (memory unpinning) policy and we use the hook for the  notification of communication library about memory release event. On the event, we cleanup our registration cache and de-register (unpin) the memory on hardware.<br>
<br>
Based on this requirements we would like to understand what is the best approach for integration this functionality within jemalloc.<br>
<br>
Regards,<br>
Pasha & Yossi<br>
<br>
[1] OpenUCX: <a href="https://github.com/openucx/ucx" rel="noreferrer" target="_blank">https://github.com/openucx/ucx</a> or <a href="http://www.openucx.org" rel="noreferrer" target="_blank">www.openucx.org</a><br>
[2] MPI SPEC: <a href="http://www.mpi-forum.org/docs/mpi-3.0/mpi30-report.pdf" rel="noreferrer" target="_blank">http://www.mpi-forum.org/docs/mpi-3.0/mpi30-report.pdf</a><br>
[3] OpenSHMEM SPEC: <a href="http://bongo.cs.uh.edu/site/sites/default/site_files/openshmem-specification-1.2.pdf" rel="noreferrer" target="_blank">http://bongo.cs.uh.edu/site/sites/default/site_files/openshmem-specification-1.2.pdf</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
jemalloc-discuss mailing list<br>
<a href="mailto:jemalloc-discuss@canonware.com">jemalloc-discuss@canonware.com</a><br>
<a href="http://www.canonware.com/mailman/listinfo/jemalloc-discuss" rel="noreferrer" target="_blank">http://www.canonware.com/mailman/listinfo/jemalloc-discuss</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>
</div>