<br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 5:21 PM, Brian K. White <span dir="ltr"><<a href="mailto:brian@aljex.com">brian@aljex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On 6/7/2010 7:51 PM, Nirmal Guhan wrote:<br>
> Hi,<br>
><br>
> Is there a way to use shared memory between the containers? Any other<br>
> better/faster IPC mechanisms? I don't want to use sockets.<br>
><br>
> Please let me know.<br>
<br>
</div></div>Fifos on shared filesystem on the host?<br>
Multiply hardlinked files on the host which appear in the same place in<br>
each container?<br>
<br>
Except I don't know how you could safely allow more than one client<br>
mount the fs except read-only, other than by means which are ultimately<br>
sockets just with fs overhead on top of that. (various network and<br>
distributed filesystems, and distributed ipc, distributed locking<br>
systems, all are network based)<br>
<br>
Or if the multiple-hardlink idea doesn't actually work, I guess you<br>
could put an incron job on the host which has access to all the<br>
container's fs's and can watch a special directory in the same place in<br>
all containers fs's and whenever a file is modified in one container,<br>
incrond on the host notices and replicates it in all other containers.<br>
<br>
None of this sounds as good as ordinary socket communications, which is<br>
my point.<br>
<br>
The whole point of a container is to ensure that exactly that (IPC)<br>
can't happen so I am tempted to say if you don't want something which<br>
contains, then don't use containers.<br>
<br>
--<br>
bkw<br>
<br></blockquote><div><br>I would prefer using the RAM for performance, something like /dev/shm. I tried mounting /dev/shm of host on container using mount --bind and it works. I don't know if this is preferable though.  Is there a similar implementation(to /dev/shm) that is more secure and can be used across containers? Or anything on the cards?<br>
<br>--Nirmal<br></div></div>