#3295·niri

Video memory/GTT climbs when screens powered off

Author: exodistCreated Jan 21, 2026Updated Sep 26, 2026
Labelsarea:outputkind:leak

Video memory/GTT climb at a rate of up to ~20mb a second when screens are powered off, eventually consuming all system memory (unified memory system, video and system ram are completely shared)

This happens whenvever I lock my screen, but it also happens when I run niri msg action power-off-monitors. I can run amdgpu_top in an ssh from another machine and watch as the memory usage just keeps climbing. First it uses all available vram, then it switches to gtt.

When I unlock the system, or move my mouse to turn monitors back on the memory all gets freed.

Config

config.kdl:

input {
    keyboard {
        numlock
    }

    touchpad {
        tap
        natural-scroll
        disabled-on-external-mouse
    }

    trackpoint {
        off
    }

    focus-follows-mouse max-scroll-amount="30%"
}

output "Samsung Display Corp. 0x41B3 0x0000FFA1" {
    mode "[email protected]"
    scale 1
    transform "normal"
    position x=6560 y=0
    variable-refresh-rate on-demand=true

    hot-corners {
        off
    }

    layout {
        always-center-single-column
        gaps 16
        center-focused-column "never"
        preset-column-widths {
            proportion 1.0
            proportion 0.5
        }

        preset-window-heights {
            proportion 1.0
            proportion 0.5
        }

        default-column-width { proportion 1.0; }
    }
}

output "Dell Inc. DELL U4025QW 72RVC34" {
    modeline 1485.0  5120 5284 5372 5500  2160 2168 2178 2250 "+hsync" "+vsync"
    mode "5120x2160@120"
    scale 1
    transform "normal"
    position x=1440 y=0
    variable-refresh-rate on-demand=true

    focus-at-startup

    hot-corners {
        off
    }

    layout {
        always-center-single-column
        gaps 16
        center-focused-column "never"
        preset-column-widths {
            proportion 0.5
            proportion 1.0
        }

        preset-window-heights {
            proportion 1.0
            proportion 0.5
        }

        default-column-width { proportion 0.5; }

        struts {
            top 256
            bottom 32
            left 512
            right 64
        }
    }
}

output "Dell Inc. DELL P2415Q G3D7F0410KHB" {
    mode "2560x1440"
    scale 1
    transform "270"
    position x=0 y=0

    hot-corners {
        off
    }

    layout {
        always-center-single-column
        gaps 16
        struts {
            top 4
            bottom 4
            left 4
            right 4
        }
   }
}

layout {
    gaps 16

    center-focused-column "never"

    preset-column-widths {
        proportion 0.33333
        proportion 0.5
        proportion 1.0
    }

    default-column-width { proportion 1.0; }


    focus-ring {
        off
        width 4
        active-color "#7fc8ff"
        inactive-color "#505050"
    }

    border {
        width 4
        active-gradient   from="#408090" to="4080FF" angle=30
        inactive-gradient from="#101030" to="1010A0" angle=30
        urgent-gradient   from="#FF5050" to="FFA0A0" angle=30
    }

    shadow {
        softness 30
        spread 5
        offset x=0 y=5
        color "#0007"
    }
}

spawn-at-startup "/usr/lib/polkit-kde-authentication-agent-1"
spawn-at-startup "/usr/bin/kdeconnectd"
spawn-at-startup "/home/exodist/bin/exo-dock2"

hotkey-overlay {
    skip-at-startup
}

prefer-no-csd

screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"

layer-rule {
    match namespace="waybar"
    match at-startup=true
    opacity 0.99 // this fixes the black fill
}

window-rule {
    match app-id="MissionCenter"
    open-floating true
    open-focused false
    default-column-width { fixed 1432; }
    default-window-height { proportion 0.33333; }
    default-floating-position x=0 y=0 relative-to="top-left"
    open-on-output "Dell Inc. DELL P2415Q G3D7F0410KHB"
}

window-rule {
    match app-id="dmesgterm"
    open-floating true
    open-focused false
    default-column-width { fixed 1432; }
    default-window-height { proportion 0.332; }
    default-floating-position x=0 y=854 relative-to="top-left"
    open-on-output "Dell Inc. DELL P2415Q G3D7F0410KHB"
}

window-rule {
    match app-id="btopterm"
    open-floating true
    open-focused false
    default-column-width { fixed 1432; }
    default-window-height { proportion 0.33333; }
    default-floating-position x=0 y=0 relative-to="bottom-left"
    open-on-output "Dell Inc. DELL P2415Q G3D7F0410KHB"
}

workspace "main" {
    open-on-output "Dell Inc. DELL U4025QW 72RVC34"
}

workspace "chat" {
    open-on-output "Dell Inc. DELL U4025QW 72RVC34"
}

workspace "gsg" {
    open-on-output "Dell Inc. DELL U4025QW 72RVC34"
}

window-rule {
    match app-id="Slack"
    match app-id="IRCCloud"
    match app-id="discord"
    match app-id="signal"
    match app-id="Element"
    open-on-output "Dell Inc. DELL U4025QW 72RVC34"
    open-on-workspace "chat"
    default-column-width { proportion 0.5; }
}

window-rule {
    match app-id=r#"^org\.wezfurlong\.wezterm$"#
    match app-id="weztermfloat"
    match app-id="weztermtile"
    default-column-width {}
}

window-rule {
    match app-id="weztermfloat"
    match app-id="kittyfloat"
    open-floating true
}

window-rule {
    match app-id="kittytop"
    open-floating true

    default-column-width { proportion 1.0; }
    default-window-height { fixed 256; }
    default-floating-position x=0 y=0 relative-to="top-left"
    open-on-output "Dell Inc. DELL U4025QW 72RVC34"
}

window-rule {
    match app-id="kittymain"
    open-floating false
    open-on-output "Dell Inc. DELL U4025QW 72RVC34"
}

window-rule {
    match app-id="firefox"
    open-on-output "Dell Inc. DELL U4025QW 72RVC34"
}

window-rule {
    match app-id=r#"firefox$"# title=r#"YouTube"#
    open-floating true
}

window-rule {
    match app-id=r#"firefox$"# title="^Picture-in-Picture$"
    open-floating true
}

window-rule {
    geometry-corner-radius 12
    clip-to-geometry true
}

binds {
    // Removed for brevity
}

overview {
    backdrop-color "#000000"
}

include "dms/cursor.kdl"

System Information

  • niri version: niri 25.11 (v25.11-94-gd7184a04)
  • Distro: Arch Linux x86_64
  • GPU: AMD Radeon 8060S Graphics [Integrated]
  • CPU:AMD RYZEN AI MAX+ PRO 395 (32) @ 5.19 GHz
exodist@abydos
--------------
OS: Arch Linux x86_64
Host: HP ZBook Ultra G1a 14 inch Mobile Workstation PC (SBKPFV3)
Kernel: Linux 6.18.6-arch1-1
Uptime: 4 hours, 1 min
Packages: 1702 (pacman)
Shell: zsh 5.9
Display (SDC41B3): 2880x1800 in 14", 120 Hz [Built-in]
Display (DELL U4025QW): 5120x2160 in 40", 120 Hz [External]
Display (DELL P2415Q): 2560x1440 in 24", 60 Hz [External]
WM: niri 25.11 (Wayland)
Icons: Adwaita [GTK3/4]
Cursor: default (24px)
Terminal: tmux 3.6a
CPU: AMD RYZEN AI MAX+ PRO 395 (32) @ 5.19 GHz
GPU: AMD Radeon 8060S Graphics [Integrated]
Memory: 10.47 GiB / 121.62 GiB (9%)
Swap: 0 B / 4.00 GiB (0%)
Disk (/): 23.08 GiB / 925.00 GiB (2%) - btrfs
Disk (/home): 10.90 GiB / 925.00 GiB (1%) - btrfs
Disk (/stuff): 804.95 GiB / 1.91 TiB (41%) - btrfs
Local IP (enp105s0): 192.168.1.10/24
Battery (Primary): 99% [AC Connected]
Locale: en_US.UTF-8

Image Image