summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Fair <benjaminfair@google.com>2024-07-01 21:36:13 +0300
committerBenjamin Fair <benjaminfair@google.com>2024-07-01 23:42:35 +0300
commit154fbc6a83e5fa244d5d5e7f615bfd0a55eddc0c (patch)
treeac74348c83fc7b8aa5d4e8a5117999b53eda4341
parentd0aa2625ca62e8e65ae49d03085bedb0e7acd935 (diff)
downloadopenbmc-154fbc6a83e5fa244d5d5e7f615bfd0a55eddc0c.tar.xz
meta-google: sysctl: set pid_max to 32k
This is already the default for 32-bit machines. Reduce it on 64-bit machines to limit the range of PIDs that will be handled by our metrics collector. Signed-off-by: Benjamin Fair <benjaminfair@google.com> Change-Id: I209317df2574b335e9e435d8b0ff1faef31ffcc3
-rw-r--r--meta-google/recipes-google/systemd/files/40-gbmc-sysctl.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-google/recipes-google/systemd/files/40-gbmc-sysctl.conf b/meta-google/recipes-google/systemd/files/40-gbmc-sysctl.conf
index ee4b4859a7..5b3fa9e43d 100644
--- a/meta-google/recipes-google/systemd/files/40-gbmc-sysctl.conf
+++ b/meta-google/recipes-google/systemd/files/40-gbmc-sysctl.conf
@@ -1 +1,3 @@
kernel.oops_all_cpu_backtrace = 1
+# limit PID numbers to 32k for metrics collector
+kernel.pid_max = 32768