Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Test Trim
@ 2011-10-11  7:35 Leonidas Spyropoulos
  2011-10-11  8:06 ` Jeff Liu
  2011-10-13  0:47 ` Calvin Walton
  0 siblings, 2 replies; 3+ messages in thread
From: Leonidas Spyropoulos @ 2011-10-11  7:35 UTC (permalink / raw)
  To: linux-btrfs

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Test Trim
  2011-10-11  7:35 Test Trim Leonidas Spyropoulos
@ 2011-10-11  8:06 ` Jeff Liu
  2011-10-13  0:47 ` Calvin Walton
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Liu @ 2011-10-11  8:06 UTC (permalink / raw)
  To: Leonidas Spyropoulos; +Cc: linux-btrfs

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
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Test Trim
  2011-10-11  7:35 Test Trim Leonidas Spyropoulos
  2011-10-11  8:06 ` Jeff Liu
@ 2011-10-13  0:47 ` Calvin Walton
  1 sibling, 0 replies; 3+ messages in thread
From: Calvin Walton @ 2011-10-13  0:47 UTC (permalink / raw)
  To: Leonidas Spyropoulos; +Cc: linux-btrfs

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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-13  0:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11  7:35 Test Trim Leonidas Spyropoulos
2011-10-11  8:06 ` Jeff Liu
2011-10-13  0:47 ` Calvin Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox