Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable fstrim by default #528

Merged
merged 1 commit into from
Sep 29, 2024
Merged

enable fstrim by default #528

merged 1 commit into from
Sep 29, 2024

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Sep 29, 2024

No description provided.

@@ -20,6 +20,10 @@
enableNg = lib.mkDefault true;
};

# The majority of storage used for root filesystem is based on Sata SSD/NVMe,
# which benefits from enabling the periodic filesystem TRIM operation.
services.fstrim.enable = lib.mkDefault true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed on zfs with zpool trim?

Copy link
Member Author

@Mic92 Mic92 Sep 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a similar service called zpool-trim.service that is enabled by default.
However since it's just run once a week for less than a second, its basically free even if you don't need it, given the executable is also part of util-linux. Ubuntu does the same.

@Mic92 Mic92 merged commit 6441dda into main Sep 29, 2024
3 checks passed
@Mic92 Mic92 deleted the fstrim branch September 29, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants