While using free5gc-compose versions 3.4.3 and 4.0.0, the SMF experiences a significant amount of memory usage. I first encountered this while having issues with video transmission. To make it repeatable, I’ve been using the command ping <core-ip-address> -i <tun-interface> -A -s 2048
. Monitoring the system resources with docker stats
, we see:
Typically, the SMF sat at around 20% memory usage but was seen spiking up to 800%. What’s really concerning is the amount of memory being used and never given back to the system. On this machine, it had taken 117 GiB of memory before I shut off the testing.
This has been tested over the openairinterface5g gNB with openairinterface5g nrUE and the srsRAN gNB with srsRAN 5G UE. The SMF performs the same over both sets of software.
This SMF does not retain memory usage like this in free5gc-compose release 3.3.0.