165 words
1 minute
Aoostar WTR Max Increase VM GPU VRAM
Issue
AMD 8845HS internal GPU can use RAM as VRAM, but the linux kernel by default will only allocate 50% of total RAM due to safety concern.
This is too conservative and a waste of RAM just sitting there.
We would like to find a balance between system stability and utilization of the RAM.
Before We Start

Calculate maximum RAM you want to used as VRAM
Typically we keep 8GB RAM as system RAM to keep it stable, you can adjust based on your needs.
So in this case
Execution
Calculate setting value
Update grub
- open grub in editor
sudo nano /etc/default/grub- update
GRUB_CMDLINE_LINUX_DEFAULT
GRUB_CMDLINE_LINUX_DEFAULT="amdttm.pages_limit=<setting_value> amdttm.page_pool_size=<setting_value>"- update grub
sudo update-grub- reboot machine
sudo reboot now- validate VRAM
sudo dmesg | grep -E "amdgpu: .*VRAM|amdgpu: .*GTT"You should see something like this (my dmesg log has be cleared out, use journalctl instead)

Final
Now you have
of usable VRAM
you can use it to run large LLM model, or run multiple LLM model, etc
Reference
Aoostar WTR Max Increase VM GPU VRAM
https://workfor.live/posts/wtrmax-increase-gpu-vram/