ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

r7vme's profile - activity

2022-04-20 12:10:39 -0500 received badge  Enlightened (source)
2022-04-20 12:10:39 -0500 received badge  Guru (source)
2021-09-12 11:22:50 -0500 received badge  Famous Question (source)
2020-10-29 09:45:56 -0500 received badge  Notable Question (source)
2020-08-24 08:40:32 -0500 received badge  Famous Question (source)
2020-06-11 00:37:11 -0500 received badge  Student (source)
2020-06-11 00:36:56 -0500 received badge  Popular Question (source)
2020-03-12 18:38:16 -0500 commented answer ROS on Raspberry PI

thanks, helped me as well!

2019-11-23 21:39:45 -0500 received badge  Great Answer (source)
2019-11-22 16:49:31 -0500 received badge  Notable Question (source)
2019-11-22 15:47:35 -0500 commented answer Why rttest allocates 8GB of memory?

Created github issue https://github.com/ros2/realtime_support/issues/87

2019-11-22 15:29:01 -0500 marked best answer Why rttest allocates 8GB of memory?

Hello, i'm going thru rttest ulitity and was wondering why "lock_and_prefault_dynamic()" always locks 8GB of heap memory?

Steps to reproduce: 1. Build as described in README.md 2. Set unlimited memlock user - memlock -1 in /etc/security/limits.conf, relogin 3. Run ./example_loop -i 10000 4. In separate terminal check memory usage by top (RES column)

8GB also mentioned in Real-Time-Programming

From what i understand lock_and_prefault_dynamic() sets allocation options (no trim, no mmap) and then allocates memory in 64*4k chunks until allocation hits NO page faults. The question is why it's always 8GB?

I'm testing on NVIDIA Jetson AGX Xavier which has 16GB ram.

EDIT:

also checked on google cloud VM with 32GB of total ram (no swap). Getting same number 8GB

My Xavier ulimit -a

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 62481
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 81920
cpu time               (seconds, -t) unlimited
max user processes              (-u) 62481
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
2019-11-22 15:29:01 -0500 received badge  Scholar (source)
2019-11-22 15:28:28 -0500 answered a question Why rttest allocates 8GB of memory?

Thanks to @sgermanserrano for pointing out to his workaround on how to decrease memory usage this gave me a first clue o

2019-11-22 14:14:24 -0500 commented answer Why rttest allocates 8GB of memory?

gotcha pointer size is 8 bytes (not 4), now all is clear

2019-11-22 13:22:08 -0500 commented answer Why rttest allocates 8GB of memory?

I think i've got the trick. std::vector copies data to new memory, when it resizes itself, so in the heap there are so

2019-11-22 13:21:19 -0500 commented answer Why rttest allocates 8GB of memory?

I think i've got the trick. std::vector is copied to new memory, when it allocates additional memory, so in the heap th

2019-11-22 10:40:52 -0500 commented answer Why rttest allocates 8GB of memory?

Ah, wait std::vector allocates memory on the heap. So as soon as big allocation happens (+32k * 4bytes size of pointer)

2019-11-22 10:31:07 -0500 commented answer Why rttest allocates 8GB of memory?

i like your workaround, but i believe reason in std::vector (as i just found out). I see that page faults are stopped as

2019-11-22 08:40:10 -0500 received badge  Popular Question (source)
2019-11-21 19:42:56 -0500 asked a question What threads are running in minimal ROS2 publisher?

What threads are running in minimal ROS2 publisher? Hello, i'm trying to find out what are those 7 threads that i see if

2019-11-10 18:16:50 -0500 received badge  Good Answer (source)
2019-11-07 06:13:24 -0500 edited question Why rttest allocates 8GB of memory?

Why rttest allocates 8GB of memory? Hello, i'm going thru rttest ulitity and was wondering why "lock_and_prefault_dynami

2019-11-07 05:31:32 -0500 asked a question Why rttest allocates 8GB of memory?

Why rttest allocates 8GB of memory? Hello, i'm going thru rttest ulitity and was wondering why "lock_and_prefault_dynami

2019-11-07 05:28:37 -0500 asked a question Why rttest allocates 8GB of memory?

Why rttest allocates 8GB of memory? Hello, i'm going thru rttest ulitity and was wondering why "lock_and_prefault_dynami

2019-10-28 05:29:39 -0500 received badge  Nice Answer (source)
2019-06-20 21:33:41 -0500 received badge  Teacher (source)
2019-06-20 21:18:42 -0500 commented answer ImportError: dynamic module does not define module export function (PyInit__tf2)

Good to hear! @joonhyup can you please accept answer if it helped?

2019-06-19 15:52:14 -0500 answered a question ImportError: dynamic module does not define module export function (PyInit__tf2)

Issue is because tf2_ros was compiled for python2. Detailed discussion here. To recompile for python3 (melodic): Insta

2019-06-19 15:52:14 -0500 received badge  Rapid Responder (source)
2019-05-11 12:27:47 -0500 commented question Associate clusters accross frames for tracking

Hey, take a look on https://github.com/tue-robotics/wire Paper: https://pure.tue.nl/ws/portalfiles/portal/3390005/2207

2019-03-12 03:18:09 -0500 received badge  Enthusiast
2019-03-08 02:22:23 -0500 commented answer Integer to Ros::time

thanks! small correction: e.g. for milliseconds we also need to multiply by 1e6. int nsecs = (msg->angle_timestamp

2019-01-21 15:55:00 -0500 received badge  Supporter (source)