Page 2 of 2

Re: Share Memory

Posted: 22 May 2017, 13:07
by coppelia
Wow, great!

Looking forward to the final version!!


Re: Share Memory

Posted: 30 May 2017, 16:26
by benjamin
I finished the testing on Linux and Windows. Can you give it a try internally to check if it's ok with your test environments?

I made a benchmark app with an associated scene to assess the benefits from using shared memory (available in the repo), and the results are a bit surprising. On Linux, the computed real time factor (expected duration/actual duration) increases from 0.21 to 0.98 which is great but on Windows I get almost the results (0.85 +/- 0.02) regardless of the version used. I use the same computer in both cases (dual boot).

Do you think there might be an implementation issue for the TCP version under Linux to have such a low value compared to Windows? I would have imagined the opposite.

Edit: the macOS version is okay too. I had to increase the amount of data transferred to see the benefits of the shared memory. With the same benchmark as above I got a real time factor of 0.97 in both cases. With the increased data size, the real time factor went from 0.52 in TCP to 0.87 with shared memory. I had to run the tests on a different machine (obviously) so we can't strictly compare the macOS results to the ones on Linux and Windows.