-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My build using excess RAM? #68
Comments
Not at all a deliberate exaggeration sir. This is the RAM Usage as you can see in the picture above at this point, at around 250 seconds into the grafitti wall sequence. At this point, its consumed 25 gb of ram, but stopped there due to a random segmentation fault and the process died. My last run which completed the entire bag file of 487 seconds, consumed around 40 GBs of RAM. I haven't changed any settings at all. |
Sorry, sir, I’d love to help you, but this is beyond my understanding. |
how's the result of running fast lio? Are u sure the memory usage of 40g is possible... |
I have a Livox Avia Sensor, I tested FAST-LIO on that for real-time mapping. It consumed very less memory, for around a minute of mapping an indoor hall, it consumed only 300-400 Mb. I'll test it on the bagfiles and also an extensive area for FAST-LIO and will update when done. |
Everything you said sounds so unbelievable. I'm sorry that I couldn't help you. |
No worries! Thank you for trying. |
@hasankiyani007, please continue in this issue. Pay attention to your attitude and avoid spamming. Your previous topic contained misleading information—I am absolutely sure the issue is due to your own configuration. Instead of being persistent in blaming others, take the time to check your own setup first. Also, please respect the work of others. Your other questions have already been discussed in previous issues. You might find the answers you need in #63 and #65 if you take a moment to look. We appreciate your cooperation and efforts in maintaining a healthy community. If there's anything I could have handled better, I apologize. |
Hello kind sir. I do apologize. I genuinely did not blame you or your work. My only intent when posting was to try to find a fix for my problem. Actually, I was assuming the RAM Usage was similar to previous frameworks, and more importantly, I did think the error may be on my side when you first replied. I have much to learn, I am sorry for my mistakes and will try to be better, which is the most I can do. I will check those issues as well, I may have missed them. I once again apologize, and thank you for your patience. |
To provide a bit of context for everyone else, I have 2 devices that I have set up for this. The first is my personal pc, with a Ryzen 5 5600 processor, 16 GB RAM, and a dedicated Nvidia GTX 1660S graphic card. The second is an Asus NUC 13 pro kit, with an intel i9 1340p processor, with 64 GB RAM, and integrated graphics. |
Hello, during my Docker tests, the memory usage of fastlivo_mapping was around 7GB. When my friend ran the code natively on their machine, it consumed less than 5GB. Please note that I did not opt to build Mimalloc, and the point_filter_num was set to 1.This clearly indicates an issue with your code build or environment configuration. I’ve uploaded my Docker image for you to test the code and monitor memory usage, which should help rule out problems on your end. |
您好,我的电脑配置(显卡是RTX4050)和软件库版本可以在下面图片中看到,设置point_filter_num = 3时,程序运行占用内存为3.8G,结果供您参考。 |
Just a quick update so that the thread does not get spammed: |
I had the same symptoms to be honest. But as you mentioned above, I removed all the mimalloc and rebuilt it too, and then RAM level came back to normal. Maybe I built mimalloc wrong.. |
On my 127-second dataset, fastlivo_mapping consumed about 20GB of RAM. After uninstalling mimalloc, the RAM usage returned to normal. Therefore, this issue appears to be related to mimalloc. |
FAST-LIVO2, unlike R3LIVE and its predecessor FAST-LIVO, represents a qualitative leap in memory efficiency, computation time, and robustness, thanks to its sparse map structure and system architecture, as detailed in the paper. It stands apart and should not be lumped together with others (as you have seen its performance). The high performance of mimalloc comes at the cost of additional memory caching, which is likely causing the issue. However, the impact of memory consumption is not obvious on my computer, and the reason for this is still unclear. For now, it is recommended not to install this library. Additionally, if the current memory usage is still unsatisfactory, you can set Thank you all for your support and validation! 🙌🎉 |
Final Update: RAM USAGE WITHOUT MIMALLOC: |
I have 64 GB RAM installed. On the HIT Graffiti Wall Sequence, which is of 8 minutes, out of 64 gb, around 40-45 GB RAM is consumed during this mapping process. Is there any way to optimize RAM Usage, or to offload the currently built map onto the storage drive, so that we can free up RAM and continue mapping for an extended amount of time, if we were to be providing data in real time to the framework, instead of just recording a rosbag?
I see you guys used an onboard pc on the drone in one of your videos, what model was it? How did you manage the mapping there with limited RAM and GPU power?
Furthermore, another issue, which may be slightly irrelevant in regards to FAST-LIVO2, is that on a pc with integrated graphics graphics but enough RAM, the Rviz Visualization window complete freezes up. To my knowledge, the Rviz panels are GPU-intensive tasks, which display and load the map in the viewer. Is there any generic way to optimize this or to make this viewer more efficient?
Finally, is there any guide if available for knowing what all the settings in the config file, the avia.yaml file? Some parameters are given in FASTLIVO1, but what about the others? Some help here would be appreciated as well.
Thanks in advance for your help in all these issues, and great work by the way! Thank you for making this open source.
The text was updated successfully, but these errors were encountered: