RAID 1 using SSD and 2 HDD
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD. You can do something similar today by just buying two hybrid drives and putting them in an array. By purchasing a dedicated SSD drive for that purpose you gain the ability of controlling the size of the SSD portion. I was hoping the RAID array could use the SSD more as a cache then a redundant storage.
Mike Power
no this not work very fast...
use bcache or other similar ssd+harddisk cache solution (facebook have one solution i don´t remember the name)
mixing ssd and hdd are a big problem, since write speed is the slowest (maybe ssd maybe hdd) and read speed isn´t very well since read in ssd can be non sequencial and at hdd sequencial is prefered, the read balance algorithm is tuned to use the near position device, and sometimes ssd isn´t used, or less used or more used...
a bigger speed can be done using a cache solution (ssd+hdd or ssd+raid1(hdd)) that was my test results... maybe someone have others results
2011/7/19 Mike Power <[email protected]>:
Quoted 15 lines
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD. You can do something similar today by just buying two hybrid drives and putting them in an array. By purchasing a dedicated SSD drive for that purpose you gain the ability of controlling the size of the SSD portion. I was hoping the RAID array could use the SSD more as a cache then a redundant storage.
Mike Power
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 6 lines
Roberto Spadim Spadim Technology / SPAEmpresarial -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Roberto Spadim
no this not work very fast...
use bcache or other similar ssd+harddisk cache solution (facebook have one solution i don´t remember the name)
mixing ssd and hdd are a big problem, since write speed is the slowest (maybe ssd maybe hdd) and read speed isn´t very well since read in ssd can be non sequencial and at hdd sequencial is prefered, the read balance algorithm is tuned to use the near position device, and sometimes ssd isn´t used, or less used or more used...
a bigger speed can be done using a cache solution (ssd+hdd or ssd+raid1(hdd)) that was my test results... maybe someone have others results
You needed to use write-mostly, that would have drastically altered your results. With write-mostly and write-behind enabled on the hard drives, all reads go to the SSD instead of the hard drives, and writes complete as soon as the SSD says it is done and the writes to the hard drives happen in the background.
Quoted 20 lines
2011/7/19 Mike Power<[email protected]>:
Quoted 15 lines
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD.
You can do something similar today by just buying two hybrid drives and
putting them in an array. By purchasing a dedicated SSD drive for that purpose you gain the ability of controlling the size of the SSD portion. I was hoping the RAID array could use the SSD more as a cache then a redundant storage.Mike Power
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CABYL=To6GFBwsHi_2y6Rzgvr3LbP2Z9hUN8QjYP5Wf+vJtKsXw@mail.gmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 3 lines · Roberto Spadim
hum make some benchmarks... about 4 months ago, i tested this with korn andreas and we got not astronomical speed with write behind or without it do you have some benchmarks to check?
No, not yet, but I'll make some up. The problem here is that the perceived speed increase is only really visible in certain situations. For example, if I'm building code, and repeatedly compiling, tweaking, compiling, tweaking, etc., then the entire set of code ends up in page cache and everything is done from memory, in which case the SSD makes no performance difference what so ever. Any benchmark that operates entirely in cache will be a useless measure here.
The biggest area where the SSD makes a difference is in reading pages into page cache. Aka, cold cache reads. You see this immediately on bootup for example. My machine boots fast enough that it makes it to a login prompt before the ethernet device is done negotiating link speed and presents a link up to the networking layer (the fact that my workstation is Fedora 15 and uses upstart helps with this too, but on another machine without an SSD and with Fedora 15 I don't get to login prompt before ethernet link is up). It also effects things like the startup speed of both Firefox and Thunderbird. This is where the cold cache performance of an SSD helps.
However, your question did get me started thinking and raised a few questions of my own (hence why I Cc:ed Neil).
In order to do writemostly, you *must* use a write bitmap. If you use an internal bitmap, it exists on all devices. Normally, bitmap sets are done synchronously. My question is: when one device is an SSD, do we only wait on the SSD bitmap update before starting the SSD writes, or do we wait on all the bitmap updates to complete before starting any of the writes? If the later, could that be changed? And as a general question about bitmap files instead of internal bitmaps, is it even possible to use an external bitmap file on the root filesystem given that no other filesystem is mounted in order to read a bitmap file prior to the root filesystem going live? It would be nice to use an external bitmap file on the SSD itself and skip the internal bitmap I think.
As a separate issue, I think a person could probably tweak a few things for an SSD in the general block layer too. I haven't played with these things yet, but I plan to. Things like changing the elevator to the noop elevator.
Now, as for the differences between using an SSD like I am versus the two cache type uses that were brought up.
The cache type usage has the benefit that it covers all the data on the drives even if the SSD is smaller than the drives. Like any cache though, it can only hold the most commonly/frequently used items. If your list of commonly used stuff is too large for the SSD, it will start to suffer cache misses and loose its benefit. On writes though it can be very fast because it can simply buffer the write and then return to the OS as though the write is complete. However, unless the caching implementation waits for at least one drive to acknowledge and complete the write (and especially if it accepts the write but only queues it up for write to the drives and then waits some period of time before flushing the write), then this represents a single point of failure that could cause (possibly huge amounts of) data loss.
The setup I have essentially splits the data on my filesystem according to what I want cached. I want applications so I get my performance boost on startup. I want my source code repos so I can compile faster and do things like git checkouts faster. But I don't need any mp3s or video files or rarely accessed documents on the SSD, so having a directory in my home directory to put all my stuff I want accessed fast and the rest of my home directory just on hard drive works perfectly well. In my usage, if the SSD fails, then I don't have to worry about any data loss and the machine keeps chugging along.
Anyway, about the benchmarks, I'll see what I can do over the weekend. Today, real work beckons ;-)
- --
Doug Ledford <[email protected]>
GPG KeyID: CFBFF194
http://people.redhat.com/dledford
Infiniband specific RPMs available at
http://people.redhat.com/dledford/Infiniband
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4ytf4ACgkQQ9aEs6Ims9gHawCg2hM/pptUgMvY2unZiXgmgACm 2YkAoPre0he5O/+gLNi5qZFyl9F149wg
=6tvn
-----END PGP SIGNATURE-----
Quoted 73 lines · Doug Ledford
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 3 lines · Roberto Spadim
hum make some benchmarks... about 4 months ago, i tested this with korn andreas and we got not astronomical speed with write behind or without it do you have some benchmarks to check?
No, not yet, but I'll make some up. The problem here is that the perceived speed increase is only really visible in certain situations. For example, if I'm building code, and repeatedly compiling, tweaking, compiling, tweaking, etc., then the entire set of code ends up in page cache and everything is done from memory, in which case the SSD makes no performance difference what so ever. Any benchmark that operates entirely in cache will be a useless measure here.
The biggest area where the SSD makes a difference is in reading pages into page cache. Aka, cold cache reads. You see this immediately on bootup for example. My machine boots fast enough that it makes it to a login prompt before the ethernet device is done negotiating link speed and presents a link up to the networking layer (the fact that my workstation is Fedora 15 and uses upstart helps with this too, but on another machine without an SSD and with Fedora 15 I don't get to login prompt before ethernet link is up). It also effects things like the startup speed of both Firefox and Thunderbird. This is where the cold cache performance of an SSD helps.
However, your question did get me started thinking and raised a few questions of my own (hence why I Cc:ed Neil).
In order to do writemostly, you *must* use a write bitmap. If you use an internal bitmap, it exists on all devices. Normally, bitmap sets are done synchronously. My question is: when one device is an SSD, do we only wait on the SSD bitmap update before starting the SSD writes, or do we wait on all the bitmap updates to complete before starting any of the writes? If the later, could that be changed? And as a general question about bitmap files instead of internal bitmaps, is it even possible to use an external bitmap file on the root filesystem given that no other filesystem is mounted in order to read a bitmap file prior to the root filesystem going live? It would be nice to use an external bitmap file on the SSD itself and skip the internal bitmap I think.
As a separate issue, I think a person could probably tweak a few things for an SSD in the general block layer too. I haven't played with these things yet, but I plan to. Things like changing the elevator to the noop elevator.
Now, as for the differences between using an SSD like I am versus the two cache type uses that were brought up.
The cache type usage has the benefit that it covers all the data on the drives even if the SSD is smaller than the drives. Like any cache though, it can only hold the most commonly/frequently used items. If your list of commonly used stuff is too large for the SSD, it will start to suffer cache misses and loose its benefit. On writes though it can be very fast because it can simply buffer the write and then return to the OS as though the write is complete. However, unless the caching implementation waits for at least one drive to acknowledge and complete the write (and especially if it accepts the write but only queues it up for write to the drives and then waits some period of time before flushing the write), then this represents a single point of failure that could cause (possibly huge amounts of) data loss.
The setup I have essentially splits the data on my filesystem according to what I want cached. I want applications so I get my performance boost on startup. I want my source code repos so I can compile faster and do things like git checkouts faster. But I don't need any mp3s or video files or rarely accessed documents on the SSD, so having a directory in my home directory to put all my stuff I want accessed fast and the rest of my home directory just on hard drive works perfectly well. In my usage, if the SSD fails, then I don't have to worry about any data loss and the machine keeps chugging along.
Quoted 3 lines
Anyway, about the benchmarks, I'll see what I can do over the weekend. Today, real work beckons ;-)
One thing has occurred to me while reading this thread - it seems to be an assumption here that SSD's are faster than HD's. In one area - access times - SSD's are very much faster. But when transferring bulk data, they are not necessarily faster. Certainly a pair of good hard disks in RAID10,far will stream reads and writes with a similar throughput to many SSD's. An ideal situation is therefore that small reads will come from the SSD, but that bulk reads could come from any disk that is currently idle. Enabling "write-behind" on the hard disks would still be a big gain on the write latency.
Quoted 4 lines · David Brown
One thing has occurred to me while reading this thread - it seems to be an assumption here that SSD's are faster than HD's. In one area - access times - SSD's are very much faster. But when transferring bulk data, they are not necessarily faster.
Not necessarily, no. But, if you do like I did and pick your SSD carefully, they are. I specifically chose the one I did because it was SATA-III with a 6MB/s link speed and it was rated for 400+MByte/s reads and 210MByte/s writes. Here's the link:
http://www.newegg.com/Product/Product.aspx?Item=N82E16820233154
There are even faster ones out there now.
But, I was worried about the drive wearing out under the frequent checkouts, builds, etc. so hence the reason I have two hard drives backing it up. When it does wear out, I'll put a new one in, add it to the array, wait for resync, all done.
Quoted 6 lines
Certainly a pair of good hard disks in
RAID10,far will stream reads and writes with a similar throughput to many SSD's. An ideal situation is therefore that small reads will come from the SSD, but that bulk reads could come from any disk that is currently idle. Enabling "write-behind" on the hard disks would still be a big gain on the write latency.
about ssd/hdd
ssd is better for unaligned reads/writes (.1ms access time)
the problem is...
we don't have a 'math model' to simulate and select the best disk to send read it's a bit difficult, and maybe we won't have one since we have many kind of devices (nbd, ssd, hd, ssd+hd, sd cards, etc)
i think the only good improvement is allow better unaligned read to ssd, and aligned reads to hdd
i tested some benchmarks ago and a better tunned read balance algorithm can only allow 1% less time to stop benchmark (speed) maybe flashcache and bcache can give more 'speed' i didn't tested
2011/7/29 Doug Ledford <[email protected]>:
Quoted 34 lines · David Brown
Quoted 5 lines
One thing has occurred to me while reading this thread - it seems to be an assumption here that SSD's are faster than HD's. In one area - access times - SSD's are very much faster. But when transferring bulk data, they are not necessarily faster.
Not necessarily, no. But, if you do like I did and pick your SSD carefully, they are. I specifically chose the one I did because it was SATA-III with a 6MB/s link speed and it was rated for 400+MByte/s reads and 210MByte/s writes. Here's the link:
http://www.newegg.com/Product/Product.aspx?Item=N82E16820233154
There are even faster ones out there now.
But, I was worried about the drive wearing out under the frequent checkouts, builds, etc. so hence the reason I have two hard drives backing it up. When it does wear out, I'll put a new one in, add it to the array, wait for resync, all done.
Quoted 6 lines
Certainly a pair of good hard disks in
RAID10,far will stream reads and writes with a similar throughput to many SSD's. An ideal situation is therefore that small reads will come from the SSD, but that bulk reads could come from any disk that is currently idle. Enabling "write-behind" on the hard disks would still be a big gain on the write latency.--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 6 lines
Roberto Spadim Spadim Technology / SPAEmpresarial -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · On Tue, 19 Jul 2011 11:15:22 -0700 Mike Power <[email protected]> wrote:
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD.
See http://bcache.evilpiepirate.org/
Signature · 2 lines
With respect, Roman
Thanks for the link. That is the kind of thing I am looking for.
Quoted 9 lines · Roman Mamedov
Quoted 4 lines · On Tue, 19 Jul 2011 11:15:22 -0700 Mike Power<[email protected]> wrote:
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD.
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Mike Power
Sent: Tuesday, July 19, 2011 3:14 PM
To: Roman Mamedov
Cc: [email protected]
Subject: Re: RAID 1 using SSD and 2 HDD
Quoted 12 lines
Thanks for the link. That is the kind of thing I am looking for.
Quoted 9 lines · Roman Mamedov
Quoted 4 lines · On Tue, 19 Jul 2011 11:15:22 -0700 Mike Power<[email protected]> wrote:
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD.
Also, Roberto referred to the facebook flashcache implementation. It is based on device-mapper and last I tried bcache, probably a bit more production-worthy at the moment (though bcache looks intriguing long term, so I'd suggest to try both and draw your own conclusion):
https://github.com/facebook/flashcache
Brian
Quoted 18 lines · On 07/20/2011 08:59 AM, [email protected] wrote:
Quoted 18 lines
-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Mike Power
Sent: Tuesday, July 19, 2011 3:14 PM
To: Roman Mamedov
Cc: [email protected]
Subject: Re: RAID 1 using SSD and 2 HDDThanks for the link. That is the kind of thing I am looking for.
Quoted 7 lines · Roman Mamedov
Quoted 4 lines · On Tue, 19 Jul 2011 11:15:22 -0700 Mike Power<[email protected]> wrote:
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD.
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
Also, Roberto referred to the facebook flashcache implementation. It is based on device-mapper and last I tried bcache, probably a bit more production-worthy at the moment (though bcache looks intriguing long term, so I'd suggest to try both and draw your own conclusion):
Having not looked at those two, I can say that an md raid1 with two hard drives and one SSD works *very* well. It's blazing fast. Here's how I set mine up:
SSD: three partitions, one for boot, one for /, and one for ~/repos (which is where all my git/cvs/etc. checkouts reside) hard disks: four partitions, one for boot, one for /, one for /home, one for ~/repos
Then I created four raid1 arrays like so:
mdadm -C /dev/md/boot -l1 -n3 -e1.0 --bitmap=internal --name=boot /dev/sda1 --write-mostly --write-behind=128 /dev/sdb1 /dev/sdc1 mdadm -C /dev/md/root -l1 -n3 -e1.2 --bitmap=internal --name=root /dev/sda2 --write-mostly --write-behind=1024 /dev/sdb2 /dev/sdc2 mdadm -C /dev/md/home -l1 -n2 -e1.2 --bitmap=internal --name=home /dev/sdb3 /dev/sdc3
mdadm -C /dev/md/repos -l1 -n3 -e1.2 --bitmap=internal --name=repos /dev/sda4 --write-mostly --write-behind=1024 /dev/sdb4 /dev/sdc4
Works for me with stellar performance. Treats the SSD as the only device that matters on the three arrays it participates in with the hard drives there merely as a backing store for safety in case the SSD blows chunks some day. Obviously, if you need some other aspect of your home directory to have the SSD benefit then modify to your tastes, but all my scratch builds happen under ~/repos and the thing flies when compiling stuff compared to how it used to be.
Le jeudi 28 juillet 2011 20:31:10 Doug Ledford, vous avez écrit :
Quoted 49 lines · On 07/20/2011 08:59 AM, [email protected] wrote:
Quoted 19 lines
Quoted 19 lines
-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Mike Power
Sent: Tuesday, July 19, 2011 3:14 PM
To: Roman Mamedov
Cc: [email protected]
Subject: Re: RAID 1 using SSD and 2 HDDThanks for the link. That is the kind of thing I am looking for.
Quoted 8 lines · Roman Mamedov
On Tue, 19 Jul 2011 11:15:22 -0700
Quoted 4 lines · Mike Power
Is it possible to implement a RAID 1 array using two equal size HDD and one smaller and faster SSD. The idea being that the resulting RAID would have the same size of the HDD while picking up the speed benefits of the SSD.
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Also, Roberto referred to the facebook flashcache implementation. It is based on device-mapper and last I tried bcache, probably a bit more production-worthy at the moment (though bcache looks intriguing long term, so I'd suggest to try both and draw your own conclusion):
Having not looked at those two, I can say that an md raid1 with two hard drives and one SSD works *very* well. It's blazing fast. Here's how I set mine up:
SSD: three partitions, one for boot, one for /, and one for ~/repos (which is where all my git/cvs/etc. checkouts reside)
hard disks: four partitions, one for boot, one for /, one for /home, one for ~/reposThen I created four raid1 arrays like so:
mdadm -C
/dev/md/boot-l1 -n3 -e1.0 --bitmap=internal --name=boot/dev/sda1--write-mostly --write-behind=128/dev/sdb1/dev/sdc1mdadm -C/dev/md/root-l1 -n3 -e1.2 --bitmap=internal --name=root/dev/sda2--write-mostly --write-behind=1024/dev/sdb2/dev/sdc2mdadm -C/dev/md/home-l1 -n2 -e1.2 --bitmap=internal --name=home/dev/sdb3/dev/sdc3
mdadm -C/dev/md/repos-l1 -n3 -e1.2 --bitmap=internal --name=repos/dev/sda4--write-mostly --write-behind=1024/dev/sdb4/dev/sdc4
Quoted 7 lines
Works for me with stellar performance. Treats the SSD as the only device that matters on the three arrays it participates in with the hard drives there merely as a backing store for safety in case the SSD blows chunks some day. Obviously, if you need some other aspect of your home directory to have the SSD benefit then modify to your tastes, but all my scratch builds happen under ~/repos and the thing flies when compiling stuff compared to how it used to be.
One thing you didn't said is the respective size of the SSD and HD partitions. How did you determine them?
Xavier
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Xavier Brochard
Le jeudi 28 juillet 2011 20:31:10 Doug Ledford, vous avez écrit :
Quoted 1 line · On 07/20/2011 08:59 AM, [email protected] wrote:
[...]
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Roman Mamedov
[...]
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
Quoted 30 lines
Quoted 22 lines
Quoted 1 line
Having not looked at those two, I can say that an md raid1 with two hard drives and one SSD works *very* well. It's blazing fast. Here's how I set mine up:
SSD: three partitions, one for boot, one for /, and one for ~/repos (which is where all my git/cvs/etc. checkouts reside)
hard disks: four partitions, one for boot, one for /, one for /home, one for ~/reposThen I created four raid1 arrays like so:
mdadm -C
/dev/md/boot-l1 -n3 -e1.0 --bitmap=internal --name=boot/dev/sda1--write-mostly --write-behind=128/dev/sdb1/dev/sdc1mdadm -C/dev/md/root-l1 -n3 -e1.2 --bitmap=internal --name=root/dev/sda2--write-mostly --write-behind=1024/dev/sdb2/dev/sdc2mdadm -C/dev/md/home-l1 -n2 -e1.2 --bitmap=internal --name=home/dev/sdb3/dev/sdc3
mdadm -C/dev/md/repos-l1 -n3 -e1.2 --bitmap=internal --name=repos/dev/sda4--write-mostly --write-behind=1024/dev/sdb4/dev/sdc4Quoted 7 lines
Works for me with stellar performance. Treats the SSD as the only device that matters on the three arrays it participates in with the hard drives there merely as a backing store for safety in case the SSD blows chunks some day. Obviously, if you need some other aspect of your home directory to have the SSD benefit then modify to your tastes, but all my scratch builds happen under ~/repos and the thing flies when compiling stuff compared to how it used to be.
Quoted 2 lines
One thing you didn't said is the respective size of the SSD and HD partitions. How did you determine them?
Since he's running RAID-1, the partitions on the SSD and HDDs must be the same size. Note that the rest of the space on the HDDs was given to /home and was not mirrored on the SSD.
Cheers,
John.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · John Robinson
Quoted 3 lines
One thing you didn't said is the respective size of the SSD and HD partitions.
How did you determine them?Since he's running RAID-1, the partitions on the SSD and HDDs must be the same size. Note that the rest of the space on the HDDs was given to /home and was not mirrored on the SSD.
Exactly. I had a 128GB SSD, so I split it up more or less like so:
3GB to /boot (I run lots of test kernels)
20GB to / (more than enough in almost all cases)
90+GB to /home/dledford/repos
The hard drives were 500GB, so once I took out the 128 or so GB that was mirrored to the SSD, that left another 375GB or so for the /home partition.
Signature · 6 lines
Doug Ledford <[email protected]> GPG KeyID: CFBFF194 http://people.redhat.com/dledford Infiniband specific RPMs available at http://people.redhat.com/dledford/Infiniband
Le vendredi 29 juillet 2011 11:32:02 John Robinson, vous avez écrit :
Quoted 42 lines · Xavier Brochard
Quoted 2 lines
Le jeudi 28 juillet 2011 20:31:10 Doug Ledford, vous avez écrit :
Quoted 1 line · On 07/20/2011 08:59 AM, [email protected] wrote:
[...]
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Roman Mamedov
[...]
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
Quoted 30 lines
Quoted 29 lines
Quoted 1 line
Having not looked at those two, I can say that an md raid1 with two hard drives and one SSD works *very* well. It's blazing fast. Here's how I set mine up:
SSD: three partitions, one for boot, one for /, and one for ~/repos (which is where all my git/cvs/etc. checkouts reside)
hard disks: four partitions, one for boot, one for /, one for /home, one for ~/reposThen I created four raid1 arrays like so:
mdadm -C
/dev/md/boot-l1 -n3 -e1.0 --bitmap=internal --name=boot/dev/sda1--write-mostly --write-behind=128/dev/sdb1/dev/sdc1mdadm -C/dev/md/root-l1 -n3 -e1.2 --bitmap=internal --name=root/dev/sda2--write-mostly --write-behind=1024/dev/sdb2/dev/sdc2mdadm -C/dev/md/home-l1 -n2 -e1.2 --bitmap=internal --name=home/dev/sdb3/dev/sdc3
mdadm -C/dev/md/repos-l1 -n3 -e1.2 --bitmap=internal --name=repos/dev/sda4--write-mostly --write-behind=1024/dev/sdb4/dev/sdc4Works for me with stellar performance. Treats the SSD as the only device that matters on the three arrays it participates in with the hard drives there merely as a backing store for safety in case the SSD blows chunks some day. Obviously, if you need some other aspect of your home directory to have the SSD benefit then modify to your tastes, but all my scratch builds happen under ~/repos and the thing flies when compiling stuff compared to how it used to be.
Quoted 6 lines
Quoted 2 lines
One thing you didn't said is the respective size of the SSD and HD partitions. How did you determine them?
Since he's running RAID-1, the partitions on the SSD and HDDs must be the same size. Note that the rest of the space on the HDDs was given to /home and was not mirrored on the SSD.
Oh... I thought It was more like Mike's request:
"a RAID 1 array using two equal size HDD and one smaller and faster SSD"
Xavier
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 50 lines · Xavier Brochard
Le vendredi 29 juillet 2011 11:32:02 John Robinson, vous avez écrit :
Quoted 42 lines · Xavier Brochard
Quoted 2 lines
Le jeudi 28 juillet 2011 20:31:10 Doug Ledford, vous avez écrit :
Quoted 1 line · On 07/20/2011 08:59 AM, [email protected] wrote:
[...]
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Roman Mamedov
[...]
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
Quoted 30 lines
Quoted 29 lines
Quoted 1 line
Having not looked at those two, I can say that an md raid1 with two hard drives and one SSD works *very* well. It's blazing fast. Here's how I set mine up:
SSD: three partitions, one for boot, one for /, and one for ~/repos (which is where all my git/cvs/etc. checkouts reside)
hard disks: four partitions, one for boot, one for /, one for /home, one for ~/reposThen I created four raid1 arrays like so:
mdadm -C
/dev/md/boot-l1 -n3 -e1.0 --bitmap=internal --name=boot/dev/sda1--write-mostly --write-behind=128/dev/sdb1/dev/sdc1mdadm -C/dev/md/root-l1 -n3 -e1.2 --bitmap=internal --name=root/dev/sda2--write-mostly --write-behind=1024/dev/sdb2/dev/sdc2mdadm -C/dev/md/home-l1 -n2 -e1.2 --bitmap=internal --name=home/dev/sdb3/dev/sdc3
mdadm -C/dev/md/repos-l1 -n3 -e1.2 --bitmap=internal --name=repos/dev/sda4--write-mostly --write-behind=1024/dev/sdb4/dev/sdc4Works for me with stellar performance. Treats the SSD as the only device that matters on the three arrays it participates in with the hard drives there merely as a backing store for safety in case the SSD blows chunks some day. Obviously, if you need some other aspect of your home directory to have the SSD benefit then modify to your tastes, but all my scratch builds happen under ~/repos and the thing flies when compiling stuff compared to how it used to be.
Quoted 6 lines
Quoted 2 lines
One thing you didn't said is the respective size of the SSD and HD partitions. How did you determine them?
Since he's running RAID-1, the partitions on the SSD and HDDs must be the same size. Note that the rest of the space on the HDDs was given to /home and was not mirrored on the SSD.
Quoted 6 lines
Oh... I thought It was more like Mike's request:
"a RAID 1 array using two equal size HDD and one smaller and faster SSD"Xavier
[email protected]
It is. The SSD is 128GB and the two HDs are 500GB. The /home partition does not exist on the SSD and it exactly equals the amount of space left over on the two HDs after they have had matching partitions created to duplicate the partitions on the SSD.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Failures Rates Using SSD
In reply to Mike PowerToms Hardware have an article discussing SSD longevity
Bottom line is that the failure rates may be higher than most presume. Conclusions on last 2 pages are fascinating to read.
http://www.tomshardware.com/reviews/ssd-reliability-failure-rate,2923.html
Signature · 3 lines
Cheers, Maurice Hilarius eMail: /[email protected]/