Messages >0.5MB gets dropped occassionly when sent over SHM with QoS BEST_EFFORT #4276
Replies: 4 comments
-
Maybe you should modify example HelloWorldExampleSharedMem which is used for shared memory. |
Beta Was this translation helpful? Give feedback.
-
Ahh, didn't see that. I have done so. |
Beta Was this translation helpful? Give feedback.
-
@dk-teknologisk-lag FYI, there are a couple of things i want to point out.
this uses
and comes back to the main title, this sounds possible. |
Beta Was this translation helpful? Give feedback.
-
i think we can iterate on ros2/rmw_fastrtps#739 instead, so i will go ahead to close this discussion. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone
I'm currently working with interfacing various sensors to a mobile robot using ROS2, where we experience message drops. I have recently created a issue here: ros2/rmw_fastrtps#739
But tried to go deeper and made small changes to the HelloWorldExample to use BEST_EFFORT and sending 10MB of messages.
It can be seen here
It seem to create SHM in /dev/shm, but only about 1MB. Also see the below screenshot for the samle lost callbacks, showing messages to be lost.
![image](https://private-user-images.githubusercontent.com/127200805/298850128-7ca852f4-8f6b-4c40-ac1f-55fdff6a6b5b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTQ2MzQsIm5iZiI6MTczOTU1NDMzNCwicGF0aCI6Ii8xMjcyMDA4MDUvMjk4ODUwMTI4LTdjYTg1MmY0LThmNmItNGM0MC1hYzFmLTU1ZmRmZjZhNmI1Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxNzMyMTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNGYxZDJmNzU1YWM5YThhMmQ1NGZhZTk5YWM4MWQwNTczYzdlZjNkNzQzMmU4MWM2MGNiODYwOGUyZWQwNzhmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.GgoxFr_5UacUFsfvwxPdzSk_txRn0Mbniw9kIwnzpus)
I'm on a recent master and its build an run in a ubuntu 22.04 docker container.
Are there any thing I can tune when its over SHM?
I have searched for similar discussions, but they are often referring to communication across network.
Thanks, Lars
Beta Was this translation helpful? Give feedback.
All reactions