Re: SSD optimizations

2010-12-13 Thread Gordan Bobic
On 12/13/2010 05:11 AM, Sander wrote: Gordan Bobic wrote (ao): On 12/12/2010 17:24, Paddy Steed wrote: In a few weeks parts for my new computer will be arriving. The storage will be a 128GB SSD. A few weeks after that I will order three large disks for a RAID array. I understand that BTRFS

Re: SSD optimizations

2010-12-13 Thread Peter Harris
On Mon, Dec 13, 2010 at 4:25 AM, Gordan Bobic wrote: I suggest you back your opinion up with some hard data before making such statements. Here's a quick test - make an ext2 fs and a btrfs on two similar disk partitions (any disk, for the sake of the experiment it doesn't have to be an ssd)

Re: SSD optimizations

2010-12-13 Thread Gordan Bobic
On 13/12/2010 14:33, Peter Harris wrote: On Mon, Dec 13, 2010 at 4:25 AM, Gordan Bobic wrote: I suggest you back your opinion up with some hard data before making such statements. Here's a quick test - make an ext2 fs and a btrfs on two similar disk partitions (any disk, for the sake of the

Re: SSD optimizations

2010-12-13 Thread cwillu
On Mon, Dec 13, 2010 at 3:25 AM, Gordan Bobic gor...@bobich.net wrote: On 12/13/2010 05:11 AM, Sander wrote: Gordan Bobic wrote (ao): On 12/12/2010 17:24, Paddy Steed wrote: In a few weeks parts for my new computer will be arriving. The storage will be a 128GB SSD. A few weeks after that I

Re: SSD optimizations

2010-12-13 Thread Gordan Bobic
On 13/12/2010 15:17, cwillu wrote: In a few weeks parts for my new computer will be arriving. The storage will be a 128GB SSD. A few weeks after that I will order three large disks for a RAID array. I understand that BTRFS RAID 5 support will be available shortly. What is the best possible way

Re: SSD optimizations

2010-12-13 Thread Paddy Steed
Thank you for all your replies. On Mon, 2010-12-13 at 00:04 +, Gordan Bobic wrote: On 12/12/2010 17:24, Paddy Steed wrote: In a few weeks parts for my new computer will be arriving. The storage will be a 128GB SSD. A few weeks after that I will order three large disks for a RAID array.

Re: SSD optimizations

2010-12-13 Thread Gordan Bobic
On 13/12/2010 17:17, Paddy Steed wrote: So, no-one has any idea's on how to implement the cache. Would making it all swap work, does to OS cache files in swap? No, it doesn't. I don't believe there are any plans to implement hierarchical storage in BTRFS, but perhaps one of the developers

Re: SSD optimizations

2010-12-13 Thread Tomasz Torcz
On Mon, Dec 13, 2010 at 05:17:51PM +, Paddy Steed wrote: So, no-one has any idea's on how to implement the cache. Would making it all swap work, does to OS cache files in swap? Quite the opposite. Too many people have ideas for SSD-as-cache in Linux, in non particular order: — bcache —

Re: SSD optimizations

2010-12-13 Thread Ric Wheeler
On 12/13/2010 01:20 PM, Tomasz Torcz wrote: On Mon, Dec 13, 2010 at 05:17:51PM +, Paddy Steed wrote: So, no-one has any idea's on how to implement the cache. Would making it all swap work, does to OS cache files in swap? Quite the opposite. Too many people have ideas for SSD-as-cache

SSD optimizations

2010-12-12 Thread Paddy Steed
In a few weeks parts for my new computer will be arriving. The storage will be a 128GB SSD. A few weeks after that I will order three large disks for a RAID array. I understand that BTRFS RAID 5 support will be available shortly. What is the best possible way for me to get the highest performance

Re: SSD optimizations

2010-12-12 Thread Gordan Bobic
On 12/12/2010 17:24, Paddy Steed wrote: In a few weeks parts for my new computer will be arriving. The storage will be a 128GB SSD. A few weeks after that I will order three large disks for a RAID array. I understand that BTRFS RAID 5 support will be available shortly. What is the best possible

Re: SSD optimizations

2010-12-12 Thread Sander
Gordan Bobic wrote (ao): On 12/12/2010 17:24, Paddy Steed wrote: In a few weeks parts for my new computer will be arriving. The storage will be a 128GB SSD. A few weeks after that I will order three large disks for a RAID array. I understand that BTRFS RAID 5 support will be available

Re: SSD Optimizations

2010-03-13 Thread Stephan von Krawczynski
On Thu, 11 Mar 2010 13:00:17 -0500 Chris Mason chris.ma...@oracle.com wrote: On Thu, Mar 11, 2010 at 06:35:06PM +0100, Stephan von Krawczynski wrote: On Thu, 11 Mar 2010 15:39:05 +0100 Sander san...@humilis.net wrote: Stephan von Krawczynski wrote (ao): Honestly I would just drop

Re: SSD Optimizations

2010-03-13 Thread Hubert Kario
On Saturday 13 March 2010 18:02:10 Stephan von Krawczynski wrote: On Fri, 12 Mar 2010 17:00:08 +0100 Hubert Kario h...@qbs.com.pl wrote: Even on true spinning disks your assumption is wrong for relocated sectors. Which we don't have to worry about because if the drive has less than 5

Re: SSD Optimizations

2010-03-13 Thread Chris Mason
On Sat, Mar 13, 2010 at 05:43:59PM +0100, Stephan von Krawczynski wrote: On Thu, 11 Mar 2010 13:00:17 -0500 Chris Mason chris.ma...@oracle.com wrote: On Thu, Mar 11, 2010 at 06:35:06PM +0100, Stephan von Krawczynski wrote: On Thu, 11 Mar 2010 15:39:05 +0100 Sander san...@humilis.net

Re: SSD Optimizations

2010-03-13 Thread Jeremy Fitzhardinge
On 03/13/2010 08:43 AM, Stephan von Krawczynski wrote: - Nowadays: being a linux installation today chances are that the matrix has you. Quite a lot of installations are virtualized. So your storage is a virtual one either, which means it is likely being a fs buffer from the host system, i.e.

Re: SSD Optimizations

2010-03-12 Thread Stephan von Krawczynski
On Fri, 12 Mar 2010 02:07:40 +0100 Hubert Kario h...@qbs.com.pl wrote: [...] If the FS were to be smart and know about the 256kb requirement, it would do a read/modify/write cycle somewhere and then write the 4KB. If all the free blocks have been TRIMmed, FS should pick a completely free

Re: SSD Optimizations

2010-03-12 Thread Hubert Kario
On Friday 12 March 2010 10:15:28 Stephan von Krawczynski wrote: On Fri, 12 Mar 2010 02:07:40 +0100 Hubert Kario h...@qbs.com.pl wrote: [...] If the FS were to be smart and know about the 256kb requirement, it would do a read/modify/write cycle somewhere and then write the 4KB. If

Re: SSD Optimizations

2010-03-11 Thread Daniel J Blueman
On Wed, Mar 10, 2010 at 11:13 PM, Gordan Bobic gor...@bobich.net wrote: Marcus Fritzsch wrote: Hi there, On Wed, Mar 10, 2010 at 8:49 PM, Gordan Bobic gor...@bobich.net wrote: [...] Are there similar optimizations available in BTRFS? There is an SSD mount option available[1]. [1]

Re: SSD Optimizations

2010-03-11 Thread Hubert Kario
On Thursday 11 March 2010 08:38:53 Sander wrote: Hello Gordan, Gordan Bobic wrote (ao): Mike Fedyk wrote: On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: Are there options available comparable to ext2/ext3 to help reduce wear and improve performance? With

Re: SSD Optimizations

2010-03-11 Thread Stephan von Krawczynski
On Thu, 11 Mar 2010 11:59:57 +0100 Hubert Kario h...@qbs.com.pl wrote: On Thursday 11 March 2010 08:38:53 Sander wrote: Hello Gordan, Gordan Bobic wrote (ao): Mike Fedyk wrote: On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: Are there options available

Re: SSD Optimizations

2010-03-11 Thread Gordan Bobic
On Thu, 11 Mar 2010 08:38:53 +0100, Sander san...@humilis.net wrote: Are there options available comparable to ext2/ext3 to help reduce wear and improve performance? With SSDs you don't have to worry about wear. And if you believe that you clearly swallowed the marketing spiel hook line and

Re: SSD Optimizations

2010-03-11 Thread Stephan von Krawczynski
On Thu, 11 Mar 2010 12:17:30 + Gordan Bobic gor...@bobich.net wrote: On Thu, 11 Mar 2010 12:31:03 +0100, Stephan von Krawczynski sk...@ithnet.com wrote: On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: Are there options available comparable to ext2/ext3 to

Re: SSD Optimizations

2010-03-11 Thread Gordan Bobic
On Thu, 11 Mar 2010 13:59:09 +0100, Stephan von Krawczynski sk...@ithnet.com wrote: On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: Are there options available comparable to ext2/ext3 to help reduce wear and improve performance? With SSDs you

Re: SSD Optimizations

2010-03-11 Thread Hubert Kario
On Thursday 11 March 2010 14:20:23 Gordan Bobic wrote: On Thu, 11 Mar 2010 13:59:09 +0100, Stephan von Krawczynski sk...@ithnet.com wrote: On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: Are there options available comparable to ext2/ext3 to

Re: SSD Optimizations

2010-03-11 Thread Chris Mason
On Wed, Mar 10, 2010 at 07:49:34PM +, Gordan Bobic wrote: I'm looking to try BTRFS on a SSD, and I would like to know what SSD optimizations it applies. Is there a comprehensive list of what ssd mount option does? How are the blocks and metadata arranged? Are there options available

Re: SSD Optimizations

2010-03-11 Thread Sander
Stephan von Krawczynski wrote (ao): Honestly I would just drop the idea of an SSD option simply because the vendors implement all kinds of neat strategies in their devices. So in the end you cannot really tell if the option does something constructive and not destructive in combination with a

Re: SSD Optimizations

2010-03-11 Thread Stephan von Krawczynski
On Thu, 11 Mar 2010 15:01:55 +0100 Hubert Kario h...@qbs.com.pl wrote: [...] The _SD_standard_ states that the media has to implement wear-leveling. So any card with an SD logo implements it. As I stated previously, the algorithms used in SD cards may not be as advanced as those in

Re: SSD Optimizations

2010-03-11 Thread Asdo
Gordan Bobic wrote: TRIM lets the OS tell the disk which blocks are not in use anymore, and thus don't have to be copied during a rewrite of the blocks. Wear-leveling is the SSD making sure all blocks are more or less equally written to avoid continuous load on the same blocks. And thus

Re: SSD Optimizations

2010-03-11 Thread Gordan Bobic
On Thu, 11 Mar 2010 16:35:33 +0100, Stephan von Krawczynski sk...@ithnet.com wrote: Besides, why shouldn't we help the drive firmware by - writing the data only in erase-block sizes - trying to write blocks that are smaller than the erase-block in a way that won't cross the erase-block

Re: SSD Optimizations

2010-03-11 Thread Gordan Bobic
On Thu, 11 Mar 2010 14:42:40 +0100, Asdo a...@shiftmail.org wrote: 1- I think the SSD would rewrite once-written blocks to other locations, so to reuse the same physical blocks for wear levelling. The written-once blocks are very good candidates because their write-count is 1 There are

Re: SSD Optimizations

2010-03-11 Thread Gordan Bobic
On Thu, 11 Mar 2010 09:21:30 -0500, Chris Mason chris.ma...@oracle.com wrote: On Wed, Mar 10, 2010 at 07:49:34PM +, Gordan Bobic wrote: I'm looking to try BTRFS on a SSD, and I would like to know what SSD optimizations it applies. Is there a comprehensive list of what ssd mount option does

Re: SSD Optimizations

2010-03-11 Thread Chris Mason
On Thu, Mar 11, 2010 at 04:03:59PM +, Gordan Bobic wrote: On Thu, 11 Mar 2010 16:35:33 +0100, Stephan von Krawczynski sk...@ithnet.com wrote: Besides, why shouldn't we help the drive firmware by - writing the data only in erase-block sizes - trying to write blocks that are smaller

Re: SSD Optimizations

2010-03-11 Thread Martin K. Petersen
Gordan == Gordan Bobic gor...@bobich.net writes: Gordan I fully agree that it's important for wear leveling on flash Gordan media, but from the security point of view, I think TRIM would Gordan be a useful feature on all storage media. If the erased blocks Gordan were trimmed it would provide a

Re: SSD Optimizations

2010-03-11 Thread Chris Mason
On Thu, Mar 11, 2010 at 04:18:48PM +, Gordan Bobic wrote: On Thu, 11 Mar 2010 09:21:30 -0500, Chris Mason chris.ma...@oracle.com wrote: On Wed, Mar 10, 2010 at 07:49:34PM +, Gordan Bobic wrote: I'm looking to try BTRFS on a SSD, and I would like to know what SSD optimizations

Re: SSD Optimizations

2010-03-11 Thread Martin K. Petersen
Gordan == Gordan Bobic gor...@bobich.net writes: Gordan SD == SSD with an SD interface. No, not really. It is true that conceivably you could fit a sophisticated controller in an SD card form factor. But fact is that takes up space which could otherwise be used for flash. There may also be

Re: SSD Optimizations

2010-03-11 Thread Stephan von Krawczynski
On Thu, 11 Mar 2010 15:39:05 +0100 Sander san...@humilis.net wrote: Stephan von Krawczynski wrote (ao): Honestly I would just drop the idea of an SSD option simply because the vendors implement all kinds of neat strategies in their devices. So in the end you cannot really tell if the

Re: SSD Optimizations

2010-03-11 Thread Chris Mason
On Thu, Mar 11, 2010 at 06:35:06PM +0100, Stephan von Krawczynski wrote: On Thu, 11 Mar 2010 15:39:05 +0100 Sander san...@humilis.net wrote: Stephan von Krawczynski wrote (ao): Honestly I would just drop the idea of an SSD option simply because the vendors implement all kinds of neat

SSD Optimizations

2010-03-10 Thread Gordan Bobic
I'm looking to try BTRFS on a SSD, and I would like to know what SSD optimizations it applies. Is there a comprehensive list of what ssd mount option does? How are the blocks and metadata arranged? Are there options available comparable to ext2/ext3 to help reduce wear and improve performance

Re: SSD Optimizations

2010-03-10 Thread Marcus Fritzsch
Hi there, On Wed, Mar 10, 2010 at 8:49 PM, Gordan Bobic gor...@bobich.net wrote: [...] Are there similar optimizations available in BTRFS? There is an SSD mount option available[1]. Cheers, Marcus [1] http://btrfs.wiki.kernel.org/index.php/Getting_started#Mount_Options -- To unsubscribe from

Re: SSD Optimizations

2010-03-10 Thread Mike Fedyk
On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: I'm looking to try BTRFS on a SSD, and I would like to know what SSD optimizations it applies. Is there a comprehensive list of what ssd mount option does? How are the blocks and metadata arranged? Are there options

Re: SSD Optimizations

2010-03-10 Thread Gordan Bobic
Marcus Fritzsch wrote: Hi there, On Wed, Mar 10, 2010 at 8:49 PM, Gordan Bobic gor...@bobich.net wrote: [...] Are there similar optimizations available in BTRFS? There is an SSD mount option available[1]. [1] http://btrfs.wiki.kernel.org/index.php/Getting_started#Mount_Options But what

Re: SSD Optimizations

2010-03-10 Thread Gordan Bobic
Mike Fedyk wrote: On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: I'm looking to try BTRFS on a SSD, and I would like to know what SSD optimizations it applies. Is there a comprehensive list of what ssd mount option does? How are the blocks and metadata arranged

Re: SSD Optimizations

2010-03-10 Thread Sander
Hello Gordan, Gordan Bobic wrote (ao): Mike Fedyk wrote: On Wed, Mar 10, 2010 at 11:49 AM, Gordan Bobic gor...@bobich.net wrote: Are there options available comparable to ext2/ext3 to help reduce wear and improve performance? With SSDs you don't have to worry about wear. And while I