]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Add (commented out) vm.oom_kill_allocating_task sysctl knob
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 21 Oct 2023 09:01:58 +0000 (11:01 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 21 Oct 2023 09:01:58 +0000 (11:01 +0200)
sysctl.conf

index de26cd503a9f06ce10e541d6f42a7da247d65577..0b39fd96361c3f7fcf18f7f8d4ba7b315ad8a74d 100644 (file)
@@ -127,6 +127,12 @@ net.ipv4.conf.default.rp_filter = 1
 # fs.file-max = 8192
 # fs.inode-max = 16384
 
+# Sometimes (read: always) the Linux OOM killer doesn’t kill the offending
+# process. Usually, this is because as the system is out of memory, it isn’t
+# able to do the memory intensive task of scanning through all the processes.
+# Ironic.
+#vm.oom_kill_allocating_task = 1
+
 # Controls whether core dumps will append the PID to the core filename.
 # Useful for debugging multi-threaded applications.
 #kernel.core_uses_pid = 1
@@ -140,7 +146,6 @@ kernel.sysrq = 1
 # 0 - never reboot system (suggested 60)
 #kernel.panic = 60
 
-# kernel.randomize_va_space = 2
 # 0 - Turn the process address space randomization off by default.
 # 1 - Conservative address space randomization makes the addresses of
 #     mmap base and VDSO page randomized. This, among other things,
@@ -154,6 +159,7 @@ kernel.sysrq = 1
 #     start of the brk area is randomized. There are however no known
 #     non-legacy applications that would be broken this way, so for most
 #     systems it is safe to choose Full randomization.
+# kernel.randomize_va_space = 2
 
 # for mplayer
 #dev.rtc.max-user-freq = 1024
This page took 0.10523 seconds and 4 git commands to generate.