Hi Nigel,
External ports should capture every buffer. The polling just returns
NULL when there is no buffer ready.
When it returns != NULL, you have a buffer, that you must put (output)
or release (input) after filling/using it.
If you can show this is somehow not reliable, its a bug that would be
high priority.
You could certainly use external ports in a simple (local) app that
communicated over sockets to others.
Another approach would be to extend the scope of the OpenCPI app to
include components running on other computers across the network. Then
the networking would be just an OpenCPI transport between components,
and should be either automatically selected, or require
"protocol=ocpi-socket-rdma".
Unfortunately, the tricks to doing this is not well documented. We
intend to have xml app support for this over the next month or so.
The idea is to complete the support for remote containers so you can
simply assign workers to containers on other machines.
I.e. there is a way to run OpenCPI apps with software containers in
different processes, either on the same machine or different
network-connected machines. Our "plumbing" between processes can use
OFED/Infiniband, sockets, or (when in the same system) shared memory
buffers (zero copy). The partially missing piece is the top down
management of the containers running in separate processes.
Cheers,
Jim
On 4/3/12 1:57 AM, Merritt, Nigel (Contractor) wrote:
*UNCLASSIFIED*
Gents,
I have been looking at ways of getting streaming data into the
application (where it could be displayed and/or processed in some way).
Using external ports seems problematic since polling does not capture
every buffer (at least not in the test I created).
Is there an existing way of doing this that does not involve external
ports, or are there plans for some method to be implmented in the future?
I am considering using a socket based (e.g. TCP) protocol to pass this
data (which removes any concern as to where the application is running
and is platform independant) and would like to know if this is a waste
of time or whether I have missed something with external ports.
Thanks,
Nigel
*IMPORTANT*: This email remains the property of the Department of
Defence and is subject to the jurisdiction of section 70 of the Crimes
Act 1914. If you have received this email in error, you are requested
to contact the sender and delete the email.
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org