Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When selecting your IPC you should consider causes for performance differences including transfer buffer sizes, data transfer mechanisms, memory allocation schemes, locking mechanism implementations, and even code complexity.</p> <p>Of the available IPC mechanisms, the choice for performance often comes down to <a href="http://en.wikipedia.org/wiki/Unix_socket" rel="nofollow noreferrer">Unix domain sockets</a> or <a href="http://en.wikipedia.org/wiki/Named_pipe" rel="nofollow noreferrer">named pipes (FIFOs)</a>. I read a paper on <a href="http://osnet.cs.binghamton.edu/publications/TR-20070820.pdf" rel="nofollow noreferrer">Performance Analysis of Various Mechanisms for Inter-process Communication</a> that indicates Unix domain sockets for IPC may provide the best performance. I have seen conflicting results <a href="http://cybertiggyr.com/throughput/throughput.html" rel="nofollow noreferrer">elsewhere</a> which indicate pipes may be better.</p> <p>When sending small amounts of data, I prefer named pipes (FIFOs) for their simplicity. This requires a pair of named pipes for bi-directional communication. Unix domain sockets take a bit more overhead to setup (socket creation, initialization and connection), but are more flexible and may offer better performance (higher throughput).</p> <p>You may need to run some benchmarks for your specific application/environment to determine what will work best for you. From the description provided, it sounds like Unix domain sockets may be the best fit.</p> <hr> <p><strong><a href="https://beej.us/guide/bgipc/" rel="nofollow noreferrer">Beej's Guide to Unix IPC</a></strong> is good for getting started with Linux/Unix IPC.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload