Memory Usage in Hailo Detection

I’m testing RPI5 + Hailo 8L with hailoRT version 4.20.0. I run the example test for detection, but I notice a gradual increase in memory usage over time.
After 18 continuous hours of testing, the RES value has increased from 452624 to 514112 (which in percentage terms is from 10.9% to 12.4%).
Will it continue to occupy all available RAM, or will it stop growing at some point?

Hey @Davide,

Welcome to the Hailo Community!

The memory usage you’re seeing should stabilize after running for one or two hours and then continue at approximately the same percentage. If this stabilization doesn’t occur and you continue to see increasing memory usage, could you please provide more details about your testing methodology? This additional information would help me investigate the issue more thoroughly.

We had a user report a memory leak about a year ago, which was addressed in versions 4.19 and 4.20. Since you’re running 4.20.0, you should be protected from those known issues, but we’d be happy to look into this further if there’s a new problem that needs fixing.

Thank you for the prompt response. The test conditions are as follows:

  • Raspberry Pi 5 4GB + Hailo 8L module
  • Operating system: Linux 6.6.74+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux
  • Cloned the hailo-rpi5-examples repository
  • Running the Hailo Detection App example (hailo-rpi5-examples/basic_pipelines/detection.py) without modifications
  • The video opens with people walking, and they are correctly detected
  • Open a new terminal and run top
  • Note the RES field value, which indicates the amount of physical memory currently used by the Hailo Detection process

The memory usage value changes rapidly, but I note the maximum value observed in about 20 seconds. Over time, I repeat the reading and observe that the memory usage trend increases by about 0.086% per hour, and after one day, it has increased by about 2%.
I am continuing my test to see if the memory stabilizes at some point

Thanks for the detailed analysis. Could you provide an update in a few days about whether the system stabilizes ? I’ll allocate time to address this issue after I hear back from you.

Certainly, I will continue the test and update the post in a few days.

1 Like