Significant slowdown on the Raspberry Pi while building cv_bridge
I invoke the command below to rebuild the Catkin workspace:
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo -j2
It works perfectly fine for the first 115 packages or so but slows down to a major extent when it reaches the last few packages. It is obvious that the memory is running out, as I have a whole instance of htop
running in another terminal.
I am using the -j2
option to combat this problem. Yet the Raspberry Pi runs out of memory. -j1
option is too slow and takes about two days. One of the solutions in my mind is to simulate a Raspberry Pi on my Arch. I would love to hear some suggestions from you guys.