baseImage: tinkering with overcommit
This commit is contained in:
parent
3540b5aba2
commit
42180096af
2 changed files with 7 additions and 2 deletions
|
|
@ -73,8 +73,8 @@ class Processes:
|
|||
text=text,
|
||||
env=env,
|
||||
cwd="/home/user",
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
stdin=None,
|
||||
stdout=None,
|
||||
)
|
||||
res["status"] = "exec succeeded"
|
||||
except Exception as e:
|
||||
|
|
|
|||
|
|
@ -45,6 +45,11 @@ in
|
|||
hardware.graphics.enable = true;
|
||||
# boot.kernelPackages = pkgs.linuxPackagesFor uvmsPkgs.linux-uvm;
|
||||
# boot.isContainer = true;
|
||||
boot.kernel.sysctl = {
|
||||
"vm.overcommit_memory" = 1; # "always"
|
||||
# "vm.overcommit_memory" = 2; # "never"
|
||||
"vm.panic_on_oom" = 1;
|
||||
};
|
||||
boot.initrd.kernelModules = [
|
||||
"drm"
|
||||
"virtio_blk"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue