Created
November 9, 2021 06:57
-
-
Save soyfrien/c06cf37da272ffd182c575cf99a208a7 to your computer and use it in GitHub Desktop.
How Azure Implements systemd timers to trim SSDs and Kind of Scared to Make Azure Services Now
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Discard unused blocks on filesystems from /etc/fstab | |
Documentation=man:fstrim(8) | |
ConditionVirtualization=!container | |
[Service] | |
Type=oneshot | |
ExecStart=/sbin/fstrim --fstab --verbose --quiet | |
ProtectSystem=strict | |
ProtectHome=yes | |
PrivateDevices=no | |
PrivateNetwork=yes | |
PrivateUsers=no | |
ProtectKernelTunables=yes | |
ProtectKernelModules=yes | |
ProtectControlGroups=yes | |
MemoryDenyWriteExecute=yes | |
SystemCallFilter=@default @file-system @basic-io @system-service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context: