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
| [reply] |
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
| [reply] |
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
| [reply] |