<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
<span style="font-family: Georgia, serif; font-size: 11pt;">Hi,</span><br>
</div>
<div id="id-804bc796-1da3-4769-a48c-f778aa5579e5" class="ms-outlook-mobile-reference-message" dir="auto" style="text-align: left;">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">I am currently working on developing a mochi service provider. The provider I developed works on tcp and sockets transport layer, but when I use sm transport, I get errors.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">On the client side the handle is created as:
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">hret = margo_bulk_create(provider->client->mid, 1, (void**)(&data), &rdma_size,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> HG_BULK_WRITE_ONLY, &in.handle);</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">On the server side the handle is created as</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> hret = margo_bulk_create(mid, 1, (void**)&buffer, &size,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> HG_BULK_READ_ONLY, &bulk_handle);</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">The server fails on :</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">hret = margo_bulk_transfer(mid, HG_BULK_PUSH, info->addr, in.handle, 0,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> bulk_handle, 0, size);
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">with following errors:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># NA -- Error -- /tmp/pradsubedi/spack-stage/spack-stage-mercury-master-6hruzald7l6bjf67o6nptv5inrqk2h3z/spack-src/src/na/na_sm.c:3741</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># na_sm_put(): process_vm_writev() failed (Operation not permitted)</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># HG -- Error -- /tmp/pradsubedi/spack-stage/spack-stage-mercury-master-6hruzald7l6bjf67o6nptv5inrqk2h3z/spack-src/src/mercury_bulk.c:829</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># hg_bulk_transfer_pieces(): Could not transfer data (NA_PROTOCOL_ERROR)</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># HG -- Error -- /tmp/pradsubedi/spack-stage/spack-stage-mercury-master-6hruzald7l6bjf67o6nptv5inrqk2h3z/spack-src/src/mercury_bulk.c:988</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># hg_bulk_transfer(): Could not transfer data pieces</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># HG -- Error -- /tmp/pradsubedi/spack-stage/spack-stage-mercury-master-6hruzald7l6bjf67o6nptv5inrqk2h3z/spack-src/src/mercury_bulk.c:1829</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"># HG_Bulk_transfer_id(): Could not start transfer of bulk data
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">Is this a known issue with shared memory transport for margo_bulk_transfer or should I be doing something different?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Georgia",serif">Thanks,</span></p>
<p class="MsoNormal"><span style="font-family: Georgia, serif; color: black;">Pradeep Subedi</span></p>
<p class="MsoNormal"> </p>
</div>
<br>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:Georgia}
@font-face
{}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif}
span.EmailStyle17
{font-family:"Georgia",serif;
color:windowtext}
.MsoChpDefault
{font-family:"Calibri",sans-serif}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style>
</body>
</html>