[Mochi-devel] Server as client

Philip Davis philip.e.davis at rutgers.edu
Thu Dec 5 11:18:09 CST 2019


Great, thanks for the quick reply!

Best,
Philip

On Dec 5, 2019, at 12:08 PM, Jerome Soumagne <jsoumagne at hdfgroup.org<mailto:jsoumagne at hdfgroup.org>> wrote:

Hi Philip

Yes you can send RPCs to yourself, we do have optimizations for that case and it will bypass the network layer. Just make sure you have compiled mercury with MERCURY_USE_SELF_FORWARD turned ON in cmake.

Thanks

Jerome

On 12/5/19, 11:03 AM, "mochi-devel on behalf of Philip Davis" <mochi-devel-bounces at lists.mcs.anl.gov<mailto:mochi-devel-bounces at lists.mcs.anl.gov> on behalf of philip.e.davis at rutgers.edu<mailto:philip.e.davis at rutgers.edu>> wrote:

   Hello,

   Apologies if these have been asked before and I missed it:

   1. Is there any obstacle to a process being both an origin and a target for Mercury RPC calls?

   2. If not, is it legal for the same process to be both the orgin and target of the *same* RPC call? The use case I’m picturing is implmenting some sort of structured, distributed object store that uses keyval or similar as a backing store. It might be convenient to colocate these two services in the same process group, and distribute the backing store throughout the process group. As such, it seems feasible that the object store would need to access the backing storage administered by its own process, so I’m wondering if that case needs to be handled outside Mercury, or if it can be implemented as if the backing store was not process-local.

   3. If the answer to the previous is yes, then are there any optimizations in Mercury to recognize and handle this case (i.e. the case where the origin and target are the same process)?

   Thanks,
   Philip
   _______________________________________________
   mochi-devel mailing list
   mochi-devel at lists.mcs.anl.gov<mailto:mochi-devel at lists.mcs.anl.gov>
   https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mcs.anl.gov%2Fmailman%2Flistinfo%2Fmochi-devel&data=02%7C01%7Cphilip.e.davis%40rutgers.edu%7C66c43d42d9b8440ecfe708d779a5e5c9%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C637111625773679653&sdata=%2Bq5hDfQxp0i3ji5KfaLvYlQrXYwkzXnnJLit4UUeyEc%3D&reserved=0
   https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mcs.anl.gov%2Fresearch%2Fprojects%2Fmochi&data=02%7C01%7Cphilip.e.davis%40rutgers.edu%7C66c43d42d9b8440ecfe708d779a5e5c9%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C637111625773679653&sdata=F7wZncpI7a6i7LsQacHna2ZNbbjkFjMEy%2B4SGLZ4br0%3D&reserved=0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mochi-devel/attachments/20191205/eacc6860/attachment-0001.html>


More information about the mochi-devel mailing list