Re: [gentoo-user] which filesystem is best for raid 0?

2020-08-12 Thread Grant Taylor

On 8/12/20 5:56 PM, Adam Carter wrote:
Depends on your use case, ... so what you use will depend on 
speed/reliability trade off.


There are some specific uses cases where speed is desired at least an 
order of magnitude more than reliability.



ext2 is less reliable due to it missing the journal


Some cases, that's an advantage.

Consider a use case where having the files is a benefit, but not having 
the files only means that they are fetched over the network.  Like a 
caching proxy's on disk cache.


If the caching proxy looses it's disk cache, so what.  It re-downloads 
the files and moves on with life.


RAW /speed/ is more important in these types of limited use cases.

As such, the journal is actually a disadvantage /because/ it slows 
things down somewhat.




--
Grant. . . .
unix || die



Re: [gentoo-user] which filesystem is best for raid 0?

2020-08-12 Thread Adam Carter
On Thu, Aug 13, 2020 at 5:29 AM Grant Taylor <
gtay...@gentoo.tnetconsulting.net> wrote:

> On 8/12/20 11:53 AM, Никита Степанов wrote:
> > which filesystem is best for raid 0?
>

Performance wise, ext4 and XFS lead most benchmarks for non-raid. XFS seems
best for raid1, so I imagine either of those would be best for raid0.

Depends on your use case, but ext2 (and to a much lesser degree btrfs) will
be less reliable than ext4 or XFS so what you use will depend on
speed/reliability trade off. ext2 is less reliable due to it missing the
journal, btrfs due to being less mature (IMO, this is a weakly held
belief). Also btrfs tends to be slower than ext4 and XFS for most
operations, sometimes by a large margin.

https://www.phoronix.com/scan.php?page=article=linux-50-filesystems=2


[gentoo-user] which filesystem is best for raid 0?

2020-08-12 Thread Никита Степанов
which filesystem is best for raid 0?

Re: [gentoo-user] which filesystem is best for raid 0?

2020-08-12 Thread Grant Taylor

On 8/12/20 11:53 AM, Никита Степанов wrote:

which filesystem is best for raid 0?


I'm guessing that you're after speed more than anything else since 
you're talking about RAID 0.


As such, I'd suggest avoiding a journaling file system as that's 
probably unnecessary overhead.


I'd consider ext2 for something like a news spool where performance is 
more important and the data is somewhat ephemeral.  Likewise for a 
caching proxy spool.




--
Grant. . . .
unix || die



Re: [gentoo-user] which filesystem is best for raid 0?

2020-08-12 Thread antlists

On 12/08/2020 18:53, Никита Степанов wrote:

which filesystem is best for raid 0?


DON'T.

https://raid.wiki.kernel.org/index.php/Linux_Raid

If you're thinking about raid 0, I'll suggest using btrfs instead. Just 
don't forget that, by default, btrfs mirrors the metadata (I think that 
means the directories), but does not mirror the data. Losing a disk 
means losing all the files that are on it.


What further thoughts do you have? WHY do you want a raid 0? It's not 
recommended, precisely because losing a drive means a massively 
increased risk of losing everything.


Cheers,
Wol