fix(ai): bound niri's NVIDIA free-buffer pool (#477)

* fix(ai): bound niri's NVIDIA free-buffer pool

Assisted-by: DeepSeek Harness 0.2.1-rc.2 (deepseek-flash)

* docs(ai): trim the niri VRAM workaround comment

Assisted-by: DeepSeek Harness 0.2.1-rc.2 (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-19 01:15:54 +08:00
1 parent b2673908df
commit d5fac4bcce
2 files changed
+28

No files matched your search

+27
View File
@@ -35,6 +35,33 @@
powerManagement.enable = true;
};
# Bound the driver's free-buffer pool for niri only: it never returns freed
# vidmem, so niri's VRAM grows past 1 GiB (WA-039). Applies at niri's next start.
# https://github.com/niri-wm/niri/wiki/Nvidia#high-vram-usage-fix
environment.etc."nvidia/nvidia-application-profiles-rc.d/50-limit-free-buffer-pool-in-wayland-compositors.json".text =
builtins.toJSON {
rules = [
{
pattern = {
feature = "procname";
matches = "niri";
};
profile = "Limit Free Buffer Pool On Wayland Compositors";
}
];
profiles = [
{
name = "Limit Free Buffer Pool On Wayland Compositors";
settings = [
{
key = "GLVidHeapReuseRatio";
value = 0;
}
];
}
];
};
hardware.nvidia-container-toolkit.enable = true;
hardware.graphics = {
enable = true;