On Tue, 2011-10-11 at 08:35 +0100, Leonidas Spyropoulos wrote:
> Hello list,
> 
> Is there a small script to test if TRIM is working on my system?
> 
> Also what about defrag? Is it recommended and how importatnt? Can I
> check if I need it?

If you're asking about TRIM, then you're probably using btrfs on an SSD.
On an SSD, the defrag may help somewhat - due to reducing the number of
extents that a file is stored in, causing fewer, larger reads. But the
random read speed of a good SSD is high enough that unless a file is
really, severely fragmented, you probably won't notice.

On the other hand, enabling defrag will cause files to be rewritten
occasionally, which will use additional write cycles on your flash
memory cells.

Unless you're experiencing performance problems, I would recommend you
leave the autodefrag option disabled on an SSD.

-- 
Calvin Walton <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to