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,
|
text=text,
|
||||||
env=env,
|
env=env,
|
||||||
cwd="/home/user",
|
cwd="/home/user",
|
||||||
stdin=subprocess.PIPE,
|
stdin=None,
|
||||||
stdout=subprocess.PIPE,
|
stdout=None,
|
||||||
)
|
)
|
||||||
res["status"] = "exec succeeded"
|
res["status"] = "exec succeeded"
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,11 @@ in
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
# boot.kernelPackages = pkgs.linuxPackagesFor uvmsPkgs.linux-uvm;
|
# boot.kernelPackages = pkgs.linuxPackagesFor uvmsPkgs.linux-uvm;
|
||||||
# boot.isContainer = true;
|
# boot.isContainer = true;
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"vm.overcommit_memory" = 1; # "always"
|
||||||
|
# "vm.overcommit_memory" = 2; # "never"
|
||||||
|
"vm.panic_on_oom" = 1;
|
||||||
|
};
|
||||||
boot.initrd.kernelModules = [
|
boot.initrd.kernelModules = [
|
||||||
"drm"
|
"drm"
|
||||||
"virtio_blk"
|
"virtio_blk"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue