[SOLVED]Prevent RAM usage from overloading.

Some time ago. I dealt with plenty of small files. I found that RAM usage was easily getting too high, but system monitor reported no processes capturing so much RAM.
It confused me. I needed to reboot to clear it.
Later when I was using Virtualbox to run another operating system, the problem still bothered me.
Command “echo 3 > /proc/sys/vm/drop_caches” does not work.
I have found the solution. Edit /etc/sysctl.conf, add following:
Then execute the command as root:
Reboot. Done.
It did not cause any other problem. I do not understand it in details, but it did work.
So, how about adding this pre-configuration in Mageia 9?
And, should I add “[SOLVED]” in title? As of I have given a manual solution.
Oh, seems I posted in wrong place. It should be in “Ideas and suggestions”.
It confused me. I needed to reboot to clear it.
Later when I was using Virtualbox to run another operating system, the problem still bothered me.
Command “echo 3 > /proc/sys/vm/drop_caches” does not work.
I have found the solution. Edit /etc/sysctl.conf, add following:
vm.overcommit_memory=0
Then execute the command as root:
sysctl -p
Reboot. Done.
It did not cause any other problem. I do not understand it in details, but it did work.
So, how about adding this pre-configuration in Mageia 9?
And, should I add “[SOLVED]” in title? As of I have given a manual solution.
Oh, seems I posted in wrong place. It should be in “Ideas and suggestions”.