Skip to content

Commit ebd96e0

Browse files
authored
Added deep cleanup procedure (enabled by default).
1 parent a230b25 commit ebd96e0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

o2-aliecs-shmcleaner

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,15 @@ done
9494
rm -f /dev/shm/*fmq*
9595

9696
# Cleanup any ROC-allocated memory
97-
yes | roc-cleanup --light > /dev/null 3>&1
97+
if false; then
98+
# This is the standard cleanup procedure
99+
yes | roc-cleanup --light > /dev/null 3>&1
100+
else
101+
# This is the deep cleanup procedure, it can break ALF/FRED and should not be used unless really necessary
102+
systemctl stop o2-alf
103+
yes | roc-cleanup > /dev/null 3>&1
104+
systemctl start o2-alf
105+
fi
98106

99107
memEnd="`grep MemAvailable /proc/meminfo | sed 's/.*: *//'`"
100108
memDelta=$(( `echo ${memEnd} | awk '{print $1;}'`- `echo ${memStart} | awk '{print $1;}'` ))

0 commit comments

Comments
 (0)