aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/modules-load.d/tcp_bbr.conf1
-rw-r--r--etc/pacman.d/hooks/orphans.hook12
-rw-r--r--etc/sysctl.d/99-sysctl.conf19
-rw-r--r--etc/systemd/system.conf.d/timeout.conf3
4 files changed, 35 insertions, 0 deletions
diff --git a/etc/modules-load.d/tcp_bbr.conf b/etc/modules-load.d/tcp_bbr.conf
new file mode 100644
index 0000000..0e83071
--- /dev/null
+++ b/etc/modules-load.d/tcp_bbr.conf
@@ -0,0 +1 @@
+tcp_bbr
diff --git a/etc/pacman.d/hooks/orphans.hook b/etc/pacman.d/hooks/orphans.hook
new file mode 100644
index 0000000..48c1d8d
--- /dev/null
+++ b/etc/pacman.d/hooks/orphans.hook
@@ -0,0 +1,12 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = Searching for orphaned packages...
+When = PostTransaction
+Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd || /usr/bin/echo '==> no orphans found.'"
+#Exec = /usr/bin/bash -c "[[ if $(/usr/bin/pacman -Qtdq) = 0 ]] && /usr/bin/pacman -Rns $(/usr/bin/pacman -Qtdq) || /usr/bin/echo '==> No orphaned packages found.'"
diff --git a/etc/sysctl.d/99-sysctl.conf b/etc/sysctl.d/99-sysctl.conf
new file mode 100644
index 0000000..c6fde05
--- /dev/null
+++ b/etc/sysctl.d/99-sysctl.conf
@@ -0,0 +1,19 @@
+kernel.sysrq = 1
+kernel.dmesg_restrict = 0
+kernel.yama.ptrace_scope = 0
+kernel.perf_event_paranoid = 0
+net.core.netdev_max_backlog = 16384
+net.core.somaxconn = 8192
+net.ipv4.tcp_fastopen = 3
+net.ipv4.tcp_max_syn_backlog = 8192
+net.ipv4.tcp_max_tw_buckets = 2000000
+net.ipv4.tcp_tw_reuse = 1
+net.ipv4.tcp_fin_timeout = 10
+net.ipv4.tcp_slow_start_after_idle = 0
+net.ipv4.tcp_keepalive_time = 60
+net.ipv4.tcp_keepalive_intvl = 10
+net.ipv4.tcp_keepalive_probes = 6
+net.ipv4.tcp_mtu_probing = 1
+net.core.default_qdisc = cake
+net.ipv4.tcp_congestion_control = bbr
+vm.vfs_cache_pressure = 50
diff --git a/etc/systemd/system.conf.d/timeout.conf b/etc/systemd/system.conf.d/timeout.conf
new file mode 100644
index 0000000..b48f3bb
--- /dev/null
+++ b/etc/systemd/system.conf.d/timeout.conf
@@ -0,0 +1,3 @@
+[Manager]
+DefaultTimeoutStartSec=10s
+DefaultTimeoutStopSec=10s