1. Define CMA parameters: You can define CMA parameters in the /boot/grub2/grub.cfg file or other configuration files used by Grub2. These parameters are typically added to the kernel command line. An example CMA parameter looks like this:This sets the CMA size to 256 megabytes.Code: Select all
cma=256M
2. Update Grub configuration: You can add the defined CMA parameter to the Grub configuration file using the following commands:Add the CMA parameter to the GRUB_CMDLINE_LINUX line. For example:Code: Select all
sudo vi /etc/default/grub
Code: Select all
GRUB_CMDLINE_LINUX="... cma=256M ..."
3. Update Grub configuration: Save and exit the configuration, then update the Grub configuration using the following command:Code: Select all
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
After did these I check my CmaTotal with4. Reboot the system: Reboot the system for the changes to take effect:Code: Select all
sudo reboot
Code: Select all
cat /proc/meminfo
How can I increase the CMA size in Centos 7?
Best regards.