Talk:Filesystems: Difference between revisions

Pigs (talk | contribs)
Pigeon (talk | contribs)
Line 19: Line 19:
:::Also it seems that <code>discard=sync</code> is [https://btrfs.readthedocs.io/en/latest/Trim.html#trim-discard BTRFS-specific]. From what i can see after doing a bit of googling continuous trim is commonly enabled with <code>discard</code> option so we should just not mention <code>discard=sync</code> in that section. [[User:Pigeon|Pigeon]] ([[User talk:Pigeon|talk]]) 17:24, 6 June 2025 (UTC)
:::Also it seems that <code>discard=sync</code> is [https://btrfs.readthedocs.io/en/latest/Trim.html#trim-discard BTRFS-specific]. From what i can see after doing a bit of googling continuous trim is commonly enabled with <code>discard</code> option so we should just not mention <code>discard=sync</code> in that section. [[User:Pigeon|Pigeon]] ([[User talk:Pigeon|talk]]) 17:24, 6 June 2025 (UTC)
::::I think it is reasonable to leave `discard=sync` as a user might see `discard=async` and think they should remove it. [[User:Pigs|Pigs]] ([[User talk:Pigs|talk]]) 17:43, 6 June 2025 (UTC)
::::I think it is reasonable to leave `discard=sync` as a user might see `discard=async` and think they should remove it. [[User:Pigs|Pigs]] ([[User talk:Pigs|talk]]) 17:43, 6 June 2025 (UTC)
:::::the thing is that `discard=async` is also a continuous trim. It addresses main problems that synchronous trim has, but is still generally not recommended. Even Fedora, one of the main btrfs adopters, uses fstrim and does not set `discard=async` by default.
:::::Continuous and periodic trim modes can be enabled simultaneously, this scenario is covered by the responsible developers. I think mentioning `discard=sync` as it is right now is unnecessary.
:::::It can get complicated in the end. If the goal of this wiki is focusing on explaining how to accomplish something in nix-specific way, it would be beneficial to just link Arch Wiki that covers nearly everything when on this matter. Or if i am misunderstanding the purpose of `nixos` wiki, then we need to provide more details in this section. For example, btrfs page does not cover fstrim and `discard=async`, so we need to either be exhaustive, or not go beyond the sufficient minimum. Please, coordinate my understanding [[User:Pigeon|Pigeon]] ([[User talk:Pigeon|talk]]) 18:03, 6 June 2025 (UTC)
Return to "Filesystems" page.