[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MirageOS-devel] Parallelizing writing to network devices

Hi all,

Wondering about the semantics of Lwt_ring and Netif.write. I am writing a code that sends an Lwt_stream of frames over a network device using Netif.write with highest possible rate and preferably respecting frame ordering. Another thread pushes frames into this stream.

To parallelize writing to the output device, a recursive iteration over the stream extracts every element using Lwt_stream.next, and calls Netif.write under Lwt.ignore_result. Threads stop functioning with no error printed on the console at high packet rates. Any suggestion?

This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you 
are advised to perform your own checks. Email communications with the 
University of Nottingham may be monitored as permitted by UK legislation.

MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.