Using the Adaptive Memory Management Daemon
Install and run the adaptivemmd
service.
To manage memory usage, you can use the Adaptive Memory Management daemon, which is available beginning with UEK R6. This daemon is a user space service that monitors free memory on Oracle Linux 8 systems and predicts memory fragmentation and usage. It can also automatically reclaim memory if the system memory becomes too fragmented or is at risk of being filled to capacity.
If the system memory becomes highly fragmented, adaptivemmd
triggers the
kernel to compact memory so that fragmented space can be reclaimed before it's
reallocated. If the system is likely to exhaust the available memory then watermarks are
adjusted, and this can trigger the kernel to free up new pages in memory. Adaptive
Memory Management is available on Oracle Linux
8 systems
running the Unbreakable Enterprise Kernel (UEK) Release 6 or
newer.
Install the adaptivemm
package by running the following command:
sudo dnf install adaptivemm
To enable the adaptivemmd
service, run the following command:
sudo systemctl enable --now adaptivemmd
To see the different options that you can use with the adaptivemmd command, use the
-h
option with the adaptivemmd
command:
sudo adaptivemmd -h
Configuration options for Adaptive Memory Management Daemon are stored in the
/etc/sysconfig/adaptivemmd
file. For more information, see
the adaptivemmd(8)
manual page.