From 3fad7111c3dc939356a81dfc88ca4198d82640e5 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 28 Aug 2024 12:57:36 +0530 Subject: cez/specialisation/nvidia: optimize for large memory allocations --- os/cez/hardware-configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os/cez/hardware-configuration.nix b/os/cez/hardware-configuration.nix index e80ac86..5d1a24c 100644 --- a/os/cez/hardware-configuration.nix +++ b/os/cez/hardware-configuration.nix @@ -12,6 +12,11 @@ services.xserver.videoDrivers = [ "modesetting" ]; specialisation.nvidia.configuration = { + boot = { + kernelParams = [ "transparent_hugepage=always" ]; + kernel.sysctl."vm.max_map_count" = 2147483642; + }; + environment.variables = { DRI_PRIME = 1; __NV_PRIME_RENDER_OFFLOAD = 1; -- cgit v1.2.3