about summary refs log tree commit diff
path: root/etc/sysctl.d
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:52:07 +0300
commit962c35425636e3f942fd8a624369a7c53748f47e (patch)
treec69e76f6c4cdd7f9f66d02a02ee683fe4d5426e7 /etc/sysctl.d
chore: init HEAD master
Diffstat (limited to '')
-rw-r--r--etc/sysctl.d/00protected-links.conf2
-rw-r--r--etc/sysctl.d/10vm.conf5
-rw-r--r--etc/sysctl.d/20inotify.conf1
-rw-r--r--etc/sysctl.d/README13
4 files changed, 21 insertions, 0 deletions
diff --git a/etc/sysctl.d/00protected-links.conf b/etc/sysctl.d/00protected-links.conf
new file mode 100644
index 0000000..5e4d7c6
--- /dev/null
+++ b/etc/sysctl.d/00protected-links.conf
@@ -0,0 +1,2 @@
+fs.protected_symlinks = 1
+fs.protected_hardlinks = 1
diff --git a/etc/sysctl.d/10vm.conf b/etc/sysctl.d/10vm.conf
new file mode 100644
index 0000000..9e4d916
--- /dev/null
+++ b/etc/sysctl.d/10vm.conf
@@ -0,0 +1,5 @@
+vm.dirty_background_bytes = 4194304
+vm.dirty_background_ratio = 5
+vm.dirty_bytes = 4194304
+vm.dirty_ratio = 10
+vm.vfs_cache_pressure = 50
diff --git a/etc/sysctl.d/20inotify.conf b/etc/sysctl.d/20inotify.conf
new file mode 100644
index 0000000..57c955a
--- /dev/null
+++ b/etc/sysctl.d/20inotify.conf
@@ -0,0 +1 @@
+fs.inotify.max_user_watches = 524288
diff --git a/etc/sysctl.d/README b/etc/sysctl.d/README
new file mode 100644
index 0000000..ca3e030
--- /dev/null
+++ b/etc/sysctl.d/README
@@ -0,0 +1,13 @@
+Kernel system variables configuration files
+
+Files found under the /etc/sysctl.d directory that end with .conf are
+parsed within sysctl(8) at boot time.  If you want to set kernel variables
+you can either edit /etc/sysctl.conf or make a new file.
+
+The filename isn't important, but don't make it a package name as it may clash
+with something the package builder needs later. The file name must end
+with .conf, or it will not be read.
+
+The recommended location for local system settings is /etc/sysctl.d/local.conf
+but as long as you follow the rules for the name of the file, anything will
+work. see the sysctl.conf(5) man page for details of the format.

Consider giving Nix/NixOS a try! <3