You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Anurag Gujral <an...@gmail.com> on 2011/04/14 06:42:34 UTC

raid 0 and ssd

Hi All,
           We are using three ssd disks with cassandra 0.7.3 , should we set
them as raid0 .What are the advantages and disadvantages of doing this.
Please advise.

Thanks
Anurag

Re: raid 0 and ssd

Posted by Terje Marthinussen <tm...@gmail.com>.
Hm...

You should notice that unless you have TRIM, which I don't think any OS
support with any raid functionality yet, then once you have written once to
the whole SSD, it is always full!

That is, when you delete a file, you don't "clear" the blocks on the SSD so
as far as the SSD goes, the data is still there.

The latest SSDs are pretty good at dealing with this though, and some can be
made a lot better by allocating extra spare block area for GC.

Also be careful with raids and things like scrubbing or initialization of
the Raid. This may very well "fill it 100%" :)

Terje

On Thu, Apr 14, 2011 at 2:02 PM, Drew Kutcharian <dr...@venarc.com> wrote:

> RAID 0 is the fastest, but you'll lose the whole array if you lose a drive.
> One thing to keep in mind is that SSDs get slower as they get filled up and
> closer to their capacity due to garbage collection.
>
> If you want more info on how SSDs perform in general, Percona guys have
> done extensive tests. (In addition to comparing all the raid levels and etc.
>
> http://www.percona.com/docs/wiki/benchmark:ssd:start
>
> http://www.mysqlperformanceblog.com/2009/05/01/raid-vs-ssd-vs-fusionio/(see the "RELATED SEARCHES" on the right side too)
>
> - Drew
>
>
> On Apr 13, 2011, at 9:42 PM, Anurag Gujral wrote:
>
> > Hi All,
> >            We are using three ssd disks with cassandra 0.7.3 , should we
> set them as raid0 .What are the advantages and disadvantages of doing this.
> > Please advise.
> >
> > Thanks
> > Anurag
>
>

Re: raid 0 and ssd

Posted by Drew Kutcharian <dr...@venarc.com>.
RAID 0 is the fastest, but you'll lose the whole array if you lose a drive. One thing to keep in mind is that SSDs get slower as they get filled up and closer to their capacity due to garbage collection.

If you want more info on how SSDs perform in general, Percona guys have done extensive tests. (In addition to comparing all the raid levels and etc.

http://www.percona.com/docs/wiki/benchmark:ssd:start

http://www.mysqlperformanceblog.com/2009/05/01/raid-vs-ssd-vs-fusionio/ (see the "RELATED SEARCHES" on the right side too)

- Drew


On Apr 13, 2011, at 9:42 PM, Anurag Gujral wrote:

> Hi All,
>            We are using three ssd disks with cassandra 0.7.3 , should we set them as raid0 .What are the advantages and disadvantages of doing this.
> Please advise.
> 
> Thanks
> Anurag