<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Technically that would be a trim operation. Fragmentation is not a thing on an ssd as it can read from multiple blocks. And forcing it to run will only burn up your write cycles.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 29, 2020 at 7:15 PM Seabass via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Defragmentation should be an issue for you on an SSD, even if there is some, right?<br><br><br>------------------------------<br><br>Message: 4<br>Date: Wed, 28 Oct 2020 17:08:03 -0700<br>From: Matt Graham <<a href="mailto:mhgraham@crow202.org" target="_blank">mhgraham@crow202.org</a>><br>To: <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>><br>Subject: Re: swap file vs swap partition<br>Message-ID: <<a href="mailto:064f92165a42d6f88a3430b42a5211f6@crow202.org" target="_blank">064f92165a42d6f88a3430b42a5211f6@crow202.org</a>><br>Content-Type: text/plain; charset=UTF-8; format=flowed<br><br>On 2020-10-28 16:24, Steve Litt via PLUG-discuss wrote:<br>> On Wed, 28 Oct 2020 13:43:22 -0700<br>> Bob Elzer via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>> wrote:<br>>> The biggest difference is, files can become fragmented while<br>>> partitions don't.<br>> I had no idea there was such a thing as a Linux swap file. I guess<br>> that's a recent thing.<br><br>You could use a file as swap space in the early 2000s. I remember<br>doing that on a few machines then.<br><br>> If my partition file becomes fragmented, is there a way for me<br>> to defragment it?<br><br>Probably not. However, file fragmentation is not generally a problem<br>on modern machines because disks and CPUs are much faster than they were<br>in 1998. If you use ext4 and have a disk that's less than 10 years old<br>and less than 95% full, you will not notice anything. /swapfile on my<br>laptop has 11 extents and it doesn't seem to have any problems.<br><br>--<br>Crow202 Blog: <a href="http://crow202.org/wordpress" target="_blank">http://crow202.org/wordpress</a><br>There is no Darkness in Eternity<br>But only Light too dim for us to see.<br><br>---------------------------------------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.<br><br>Stephen<br><br></div>