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

No need to enable periodic TRIM for btrfs #1837

Closed
kojq opened this issue May 24, 2023 · 2 comments · Fixed by #2109
Closed

No need to enable periodic TRIM for btrfs #1837

kojq opened this issue May 24, 2023 · 2 comments · Fixed by #2109

Comments

@kojq
Copy link

kojq commented May 24, 2023

Btrfs async discard has been enabled since the 6.2 kernel. Consequently, I suggest not enabling the fstrim.timer (periodic TRIM) for btrfs.

@kojq kojq changed the title Remove enable_periodic_trim No need to enable periodic TRIM for btrfs May 24, 2023
@lavafroth
Copy link
Contributor

lavafroth commented Jul 2, 2023

Thanks! This appears to be enabled by default. For everyone's reference, here is the source. Maybe someone can write a PR to change this behavior.

@Torxed
Copy link
Member

Torxed commented Sep 25, 2023

Thanks! This appears to be enabled by default. For everyone's reference, here is the source. Maybe someone can write a PR to change this behavior.

We need to change it, only for BTRFS it seems.

archlinux-github pushed a commit to archlinux/infrastructure that referenced this issue Sep 26, 2023
Since Linux 6.2, Btrfs enables asynchronous trimming in its mount flags.

[1] archlinux/archinstall#1837
[2] torvalds/linux@63a7cb130718
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 a pull request may close this issue.

3 participants