AIFeed

Strix Halo AI Toolboxes

Original text(via HN AI)

Kernel parameters and unified memory

Update GRUB_CMDLINE_LINUX without replacing any options already present, then rebuild the GRUB configuration.

Open /etc/default/grub with Vim, or substitute your preferred editor.

Find GRUB_CMDLINE_LINUX="...". Before its closing quote, add a space followed by the parameters below. Keep the existing contents.

Save the file and exit the editor before running these commands.

ParameterWhat it changes
amd_iommu=offDisable AMD IOMMU : Disables the AMD IOMMU entirely, which can improve GPU memory access performance on Strix Halo unified memory setups. Performance Note: Benchmarking by Lars Urban ( Issue #66 ) shows a 5-12% performance increase by setting amd_iommu=off instead of the previously recommended pass-through mode. Warning: Disabling IOMMU prevents the NPU from working and removes protection against DMA attacks from rogue or compromised external devices. Leave IOMMU enabled if you need the NPU or DMA isolation.
amdgpu.gttsize=126976GTT Size (Graphics Translation Table) : Explicitly sets the maximum unified memory addressable by the GPU to ~124GB (126976 MB), overriding default driver limits.
ttm.pages_limit=32505856Pinned Memory Limit : Allows the TTM (Translation Table Manager) to pin up to ~124GB of pages in high-speed system RAM, ensuring the GPU has direct access without swapping.

Disable the desktop environment

Switch to multi-user.target (runlevel 3) to free RAM and GPU resources by disabling the desktop environment and its background processes. Reboot to apply.

Power and performance tuning

Apply the accelerator-performance profile via tuned to disable higher-latency CPU STOP states and maximize throughput.

Kernel parameters and unified memory

Update GRUB_CMDLINE_LINUX without replacing any options already present, then rebuild the GRUB configuration.

Open /etc/default/grub with Vim, or substitute your preferred editor.

Find GRUB_CMDLINE_LINUX="...". Before its closing quote, add a space followed by the parameters below. Keep the existing contents.

Save the file and exit the editor before running these commands.

ParameterWhat it changes
amd_iommu=offDisable AMD IOMMU : Disables the AMD IOMMU entirely, which can improve GPU memory access performance on Strix Halo unified memory setups. Performance Note: Benchmarking by Lars Urban ( Issue #66 ) shows a 5-12% performance increase by setting amd_iommu=off instead of the previously recommended pass-through mode. Warning: Disabling IOMMU prevents the NPU from working and removes protection against DMA attacks from rogue or compromised external devices. Leave IOMMU enabled if you need the NPU or DMA isolation.
amdgpu.gttsize=126976GTT Size (Graphics Translation Table) : Explicitly sets the maximum unified memory addressable by the GPU to ~124GB (126976 MB), overriding default driver limits.
ttm.pages_limit=32505856Pinned Memory Limit : Allows the TTM (Translation Table Manager) to pin up to ~124GB of pages in high-speed system RAM, ensuring the GPU has direct access without swapping.

Disable the desktop environment

Switch to multi-user.target (runlevel 3) to free RAM and GPU resources by disabling the desktop environment and its background processes. Reboot to apply.

Power and performance tuning

Apply the accelerator-performance profile via tuned to disable higher-latency CPU STOP states and maximize throughput.

Configure unified memory with amd-ttm

Ryzen AI Halo ships with a Debian-based distribution using systemd-boot instead of GRUB. Use the amd-ttm tool to set unified memory — it replaces both amdgpu.gttsize and ttm.pages_limit kernel parameters.

Install pipx, add its application directory to your PATH, then install the memory configuration tool.

Run the tool, confirm the change, and reboot when prompted.

Disable IOMMU via systemd-boot

Set amd_iommu=off via the systemd-boot cmdline file. Do not edit boot entries in /boot/loader/entries/ directly — they are regenerated on each kernel update.

sudoedit opens /etc/kernel/cmdline using your configured editor.

Add a space followed by the value below to the existing line. Keep every kernel parameter already in the file.

Save and exit the editor before rebuilding the entry for the running kernel.

Disable the desktop environment

Switch to multi-user.target (runlevel 3) to free RAM and GPU resources by disabling the desktop environment and its background processes.

Power and performance tuning

Apply the accelerator-performance profile via tuned.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗