Check current memory usage
free -m
Access Linux boot menu
sudo systemctl reboot --boot-loader-menu=60
Press e on the Linux boot menu.
Find the line start with linux then move the cursor to the end of line
Press Space then add/edit this line
mem=1G
Press Ctrl+X to save and reboot
Check current memory usage
When you look at the total memory column now, you will notice it has drastically shrunk to roughly 954MB ~ 1024 MB (1G), proving your boot intervention worked.
free -m
Access full details of memory usage
less /proc/meminfo
Press q to exit
The mem=1G will not persist in next reboot
11. [Not in video] Alternate verification method
You should explicitly see mem=1G at the end of the printed command line string.
cat /proc/cmdline
student@localhost:~$ cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.12.0-211.26.1.el10_2.x86_64 root=/dev/mapper/rhel-root ro crashkernel=2G-64G:256M,64G-:512M resume=UUID=7f7fdf85-ea53-4a69-8a9f-4b62d9cc96a2 rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet mem=1G