Files
fluffy-pancake/configs/sysctl/99-fluffy-pancake.conf
T

23 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# fluffy-pancake – Sysctl-Tuning fuer NVMe/SSD (Framework 13 AMD)
# Wird als /usr/lib/sysctl.d/99-fluffy-pancake.conf installiert und von
# systemd-sysctl beim Boot angewendet.
#
# dirty_writeback_centisecs: Kernel prueft alle N Centisekunden (N/100 s),
# ob dirty Pages zurueckgeschrieben werden muessen. Default 500 (5 s) ist
# fuer HDDs sinnvoll, fuer NVMe/SSD zu haeufig -> mehr Schreibvorgaenge
# und mehr Wakeups. 1500 (15 s) reduziert das bei vernachlaessigbarem
# Datenverlustrisiko (max. 15 s bei Crash/Stromausfall, auf Laptop mit
# Akku ohnehin gering).
vm.dirty_writeback_centisecs = 1500
# dirty_background_ratio / dirty_ratio: Anteil des RAM, ab dem der Kernel
# im Hintergrund (bzw. synchron) dirty Pages flusht. Auf SSDs mit hoher
# Schreibrate etwas konservativer als Default (10/20), um lange Flush-
# Bursts zu vermeiden.
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
# swappiness: mit zram (Fedora-Default) hoehere Werte sinnvoll, weil
# zram schnell ist. 100 statt 60 nutzt zram aggressiver und schont die
# NVMe vor Auslagerungen.
vm.swappiness = 100