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? I am on a linux Arch distribution with linux 3 and btrfs root fs Thanks in advance Leonidas -- Caution: breathing may be hazardous to your health. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Leonidas, On 10/11/2011 03:35 PM, Leonidas Spyropoulos wrote:> Hello list, > > Is there a small script to test if TRIM is working on my system?Zefan has replied a similar question at below link, hope it could be useful to you. http://permalink.gmane.org/gmane.comp.file-systems.btrfs/13018 Thanks, -Jeff> > Also what about defrag? Is it recommended and how importatnt? Can I > check if I need it? > > I am on a linux Arch distribution with linux 3 and btrfs root fs > > Thanks in advance > Leonidas >-- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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 <calvin.walton@kepstin.ca> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html