Hi,<div><br></div><div>When I'm trying to send a relatively large byte array (~800B) between core 0 and 1, I found that starting from the 3rd message, the message content is corrupted. </div><div><br></div><div>Here is the flounder spec I use:</div>
<div><br></div><div><font face="'courier new', monospace">interface test {</font></div><div><font face="'courier new', monospace"> typedef uint8 payload[800];</font></div><div><font face="'courier new', monospace"><br>
</font></div><div><font face="'courier new', monospace"> message msg(payload p);</font></div><div><font face="'courier new', monospace">}</font></div><div><br></div><div>And here is the code snippet that I send and receive the message:</div>
<div><br></div><div><font face="'courier new', monospace">// sender side (core 0)</font></div><div><font face="'courier new', monospace">test_payload_t payload;</font></div><div><font face="'courier new', monospace">// fill payload with some magic numbers</font></div>
<div><font face="'courier new', monospace">for (int i = 0; i < sizeof(payload); i++) {</font></div><div><font face="'courier new', monospace"> ((unsigned char*)payload)[i] = 0xaa;</font></div><div><font face="'courier new', monospace">}</font></div>
<div><font face="'courier new', monospace">test_msg__tx(b, NOP_CONT, payload);</font></div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">// receiver side, check the message</font></div>
<div><font face="'courier new', monospace">for (int i = 0; i < sizeof(payload); i++) {</font></div><div><font face="'courier new', monospace"> assert(((unsigned char*)payload)[i] == 0xaa);</font></div>
<div><font face="'courier new', monospace">}</font></div><div><br></div><div>So I was wondering whether there are any size limits of direct byte array transfer. I don't know if I should switch to bulk_transfer since about 80% of my message are of small size (< 100B), but other 20% message are about 4K size. Any suggestions about what kind of IDC I should choose in Barrelfish?</div>
<div><br></div><div>Thanks,</div><div>Jinghao</div>