in reply to Better "IPC" method than BDB?

If you need speed, and all process share the same ram, you can try shmem (shared memory). Here is a simple example SysV shared memory --pure perl .

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Better "IPC" method than BDB?
by samtregar (Abbot) on May 20, 2007 at 18:51 UTC
    Yikes. Be sure to Benchmark that! My experience with SysV shared memory is that it's not very fast at all - generally about the same as a disk-based cache. Non-intuitive, I know, but that's performance tuning for you!

    -sam

      Well, how can IPC where ram memory is actually shared between apps be slower? It must be in your implementation or your kernel. I agree though, it can be tricky to use. Read Chapter 5 of ALP

      I'm not really a human, but I play one on earth. Cogito ergo sum a bum
        I don't know the real answer but I suspect it has to do with modern file-systems being very well tuned, with fancy memory caches that are actually better than old-school SysV shared memory. For me it doesn't really matter why it's slow unless I expect to fix it. Fixing SysV shared-memory would a complete waste of time, I think!

        -sam