Re: BTRFS && SSD

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Brown
Date: Thursday, September 30, 2010 - 12:51 am

On 29/09/2010 23:31, Yuehai Xu wrote:

SSDs already do copy-on-write.  They can't change small parts of the 
data in a block, but have to re-write the block.  While that could be 
done by reading the whole erase block to a ram buffer, changing the 
data, erasing the flash block, then re-writing, this is not what happens 
in practice.  To make efficient use of write blocks that are smaller 
than erase blocks, and to provide wear levelling, the flash disk will 
implement a small change to a block by writing a new copy of the 
modified block to a different part of the flash, then updating its block 
indirection tables.

BTRFS just makes this process a bit more explicit (except for superblock 
writes).


Different file systems have different strengths and weaknesses.  I 
haven't actually tested BTRFS much, but my understanding is that it will 
be significantly slower than EXT in certain cases, such as small 
modifications to large files (since copy-on-write means a lot of extra 
disk activity in such cases).  But for other things it is faster.  Also 
remember that BTRFS is under development - optimising for raw speed 
comes at a lower priority than correctness and safety of data, and 
implementation of BTRFS features.  Once everyone is happy with the 
stability of the file system and its functionality and tools, you can 
expect the speed to improve somewhat over time.

--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
BTRFS && SSD, Yuehai Xu, (Wed Sep 29, 8:30 am)
Re: BTRFS && SSD, Sean Bartell, (Wed Sep 29, 10:08 am)
Re: BTRFS && SSD, Yuehai Xu, (Wed Sep 29, 11:38 am)
Re: BTRFS && SSD, Yuehai Xu, (Wed Sep 29, 11:45 am)
Re: BTRFS && SSD, Aryeh Gregor, (Wed Sep 29, 12:39 pm)
Re: BTRFS && SSD, Sean Bartell, (Wed Sep 29, 12:59 pm)
Re: BTRFS && SSD, Sean Bartell, (Wed Sep 29, 1:08 pm)
Re: BTRFS && SSD, Yuehai Xu, (Wed Sep 29, 2:31 pm)
Re: BTRFS && SSD, Sander, (Thu Sep 30, 12:15 am)
Re: BTRFS && SSD, David Brown, (Thu Sep 30, 12:51 am)
Re: BTRFS && SSD, Yuehai Xu, (Thu Sep 30, 5:04 am)
Re: BTRFS && SSD, Yuehai Xu, (Thu Sep 30, 5:06 am)
Re: BTRFS && SSD, Sander, (Thu Sep 30, 6:45 am)