Memory Consumption (RAM) in fast dds #5434
Employeeprojec
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When i tried running a sample ros2 application.. why the application is consuming more memory (~1 gb) for subscribing...
I'm experiencing high memory consumption (~1 GB) in my ROS2 application on the subscriber side, even when sending smaller data sizes. Here are the details:
Publisher Command: ./publisher_node_v4h2 -sp1 /dev/zero -ds1 10485 -f1 1 -t1 anoop -q1 1
Subscriber Command: ./subscriber_node_v4h2 -dp1 /dev/null -t1 anoop
Questions:
What are the typical memory allocations taking place in RAM for ROS2 nodes, publishers, and subscribers?
Are there any QoS settings that can help reduce memory usage?
Any tips on monitoring and optimizing memory usage in ROS2 applications?
---------------------------Additional data ------------------------------------------------------------
root@v4x:
## ros2 topic info /anoop --verboseroot@v4x:
Type: std_msgs/msg/ByteMultiArray
Publisher count: 1
Node name: publisher_node
Node namespace: /
Topic type: std_msgs/msg/ByteMultiArray
Endpoint type: PUBLISHER
GID: 01.0f.9d.ac.3e.03.71.e3.01.00.00.00.00.00.12.03.00.00.00.00.00.00.00.00
QoS profile:
Reliability: RELIABLE
History (Depth): UNKNOWN
Durability: VOLATILE
Lifespan: Infinite
Deadline: Infinite
Liveliness: AUTOMATIC
Liveliness lease duration: Infinite
Subscription count: 1
Node name: subscriber_node
Node namespace: /
Topic type: std_msgs/msg/ByteMultiArray
Endpoint type: SUBSCRIPTION
GID: 01.0f.b0.5a.f8.02.60.d4.01.00.00.00.00.00.12.04.00.00.00.00.00.00.00.00
QoS profile:
Reliability: RELIABLE
History (Depth): UNKNOWN
Durability: VOLATILE
Lifespan: Infinite
Deadline: Infinite
Liveliness: AUTOMATIC
Liveliness lease duration: Infinite
root@v4x:~#
Beta Was this translation helpful? Give feedback.
All reactions