Swap: Difference between revisions
Artoria2e5 (talk | contribs) →discard: ~ |
Artoria2e5 (talk | contribs) →discard: ~ |
||
Line 134: | Line 134: | ||
=== discard === | === discard === | ||
Solid state drives have fast random access times, which make them great for swap if you ignore the limited lifespan. Enabling TRIM (discard) on the swap files can help avoid unnecessary copy actions on the SSD, helping | Solid state drives have fast random access times, which make them great for swap if you ignore the limited lifespan. Enabling TRIM (discard) on the swap files can help avoid unnecessary copy actions on the SSD, reducing wear and potentially helping increase performance. | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
swapDevices = [{ | swapDevices = [{ |