mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-18 22:08:16 +01:00
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:
1 parent
b2673908df
commit
d5fac4bcce
2 files changed
+28
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user