ros2 / rmw_cyclonedds

ROS 2 RMW layer for Eclipse Cyclone DDS
Apache License 2.0
117 stars 90 forks source link

Warn user when their system's `rmem_max` is likely too low for streaming images and depth data #512

Open EzraBrooks opened 2 months ago

EzraBrooks commented 2 months ago

Feature request

Feature description

It's a common hurdle that new users of the CycloneDDS RMW find their topic subscribers grinding to a halt once they plug in, for example, a couple Intel RealSense RGBD cameras - or even a simulated equivalent in something like Gazebo.

For reasons discussed in #511, it's not practical to ship the needed configuration change within this package - so we should log a warning if we detect an rmem_max that's unlikely to result in a good experience.

Implementation considerations

Some part of the RMW will need to check what the kernel's current rmem_max is and emit a warning if it's below a certain reasonable threshold. Perhaps the value specified in the CycloneDDS tuning guide?