public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* What's wrong with XFS?
@ 2007-01-08 13:13 Dave N
  2007-01-08 14:41 ` Klaus Strebel
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dave N @ 2007-01-08 13:13 UTC (permalink / raw)
  To: xfs

Hi,

Can someone enlighten me what the issue is with XFS? I've been hearing a lot of good things on the Net about XFS. How it's lightening fast, how it has features other file systems do not have (like GRIO, real time volumes, allocate on flush, etc), how it scales very well, etc... but what I didn't hear about is how fast XFS screws things up if something wrong happens. Because of the good things I heard about XFS, I too decided to try it out (been using Ext3 or ReiserFS here for most of the time). Now I'm very disappointed in XFS. I live in an area where power outages are common and I do not have an UPS here. I have a few computers all running on XFS and thought that XFS will give me similar data-integrity like Ext3 or ReiserFS. Now, for the past few weeks I've been experiencing "strange behavior" from XFS. One time, I was reading an article on the Net and had only my Firefox browser open. Then we had a power outage for a short period of time, and when I logged in again into
 KDE, I was surprised to find out that all my desktop icons were messed up all over the place. The other time, again power outage, only this time I was working on a small text file. Booted up again only to find out that the file I was working on contained garbage and I had to start all over again. 

I also heard that XFS depends heavily on the application side for its data-integrity. XFS "thinks" that the application will use the proper calls when writing to disk. What???? How is it the task of the application to ensure the safety of your files??? IMO, programs are there to provide the tools to be productive, NOT to ensure the data safety of your files, that's the task of the file system. Even MySQL provides me with better data-integrity here. If I'm doing some database transaction and the power fails, I can be pretty sure that *most* of the time, MySQL will be just fine next time I boot up.

Why oh why such a beautiful file system like XFS is so terrible at data-integrity? Look what Sun Microsystems did with their new ZFS file system... full atomicity, CRC checksumming and other features to ensure data-integrity... why can't XFS have such things?

Thanks for listening to my preaching here guys

Cheers!

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[[HTML alternate version deleted]]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What's wrong with XFS?
  2007-01-08 13:13 What's wrong with XFS? Dave N
@ 2007-01-08 14:41 ` Klaus Strebel
  2007-01-08 14:45 ` Chris Wedgwood
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Klaus Strebel @ 2007-01-08 14:41 UTC (permalink / raw)
  To: Dave N; +Cc: xfs

Dave N schrieb:
> Hi,
> 
> Even MySQL provides me with better data-integrity here. If I'm doing some database transaction and the power fails, I can be pretty sure that *most* of the time, MySQL will be just fine next time I boot up.
Hallo Dave, MySQL is an application which takes care of data-integrity (
which XFS depends on, as you stated yourself ;-) ). XFS takes care of
the filesystem-integrity, to enable your MySQL to find the files it's
caring of it's content-integrity ( as an application, you see ;-) )
> 
> Why oh why such a beautiful file system like XFS is so terrible at data-integrity? Look what Sun Microsystems did with their new ZFS file system... full atomicity, CRC checksumming and other features to ensure data-integrity... why can't XFS have such things?
To mount multi-gigabyte filesystems after some kind of desaster in
minutes, not in hours or days ;-). It's only caring for meta-data, not
the data.

> 
> Thanks for listening to my preaching here guys
> 
> Cheers!


-- 
Mit freundlichen Grüssen / best regards

Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net

/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What's wrong with XFS?
  2007-01-08 13:13 What's wrong with XFS? Dave N
  2007-01-08 14:41 ` Klaus Strebel
@ 2007-01-08 14:45 ` Chris Wedgwood
  2007-01-08 15:24   ` Klaus Strebel
  2007-01-08 14:49 ` Olaf Fraczyk
  2007-01-08 14:50 ` Olaf Frączyk
  3 siblings, 1 reply; 7+ messages in thread
From: Chris Wedgwood @ 2007-01-08 14:45 UTC (permalink / raw)
  To: Dave N; +Cc: xfs

On Mon, Jan 08, 2007 at 05:13:12AM -0800, Dave N wrote:

>  KDE, I was surprised to find out that all my desktop icons were
>  messed up all over the place.

KDE made assumptions which are not only not true on linux but not true
elsewhere either.  Last I checked KDE dealt with the common cases that
were problematic much better now.

>  The other time, again power outage, only this time I was working on
>  a small text file. Booted up again only to find out that the file I
>  was working on contained garbage and I had to start all over again.

The file should not have contained garbage.  Also, if you
open+truncate+write a file it should be flushed very soon after close
these days, the window is fairly small now.

> I also heard that XFS depends heavily on the application side for
> its data-integrity.  XFS "thinks" that the application will use the
> proper calls when writing to disk. What???? How is it the task of
> the application to ensure the safety of your files???

It's always been that way, for many many years, even before Linux
existed.  If you want your applictions to be portable and reliable
then you have to do do it right.

MTAs are a good example of applications which typically get this right
because people case about lost email and the authors typically take
some effort into make sure it's right.

> IMO, programs are there to provide the tools to be productive, NOT
> to ensure the data safety of your files, that's the task of the file
> system. Even MySQL provides me with better data-integrity here.

Does MySQL allow me to read or write 100s of MB/s continuously on
cheap hardware (for not so cheap hardware I could ask 7GB/s).

> Why oh why such a beautiful file system like XFS is so terrible at
> data-integrity?

There is a cost to full data journalling.  Personally even with ext3 I
find the impact of this high enough I don't use it.

> Look what Sun Microsystems did with their new ZFS file
> system... full atomicity, CRC checksumming and other features to
> ensure data-integrity...

You could argue XFS is showing it's age, it's far from a new
filesystem these days.

ZFS is a very different animal to most traditional filesystems.

> why can't XFS have such things?

Because the realities of life sometime collide with what people want
ideally.

Linux can't have ZFS for licensing reasons but you can have Solaris
with ZFS:  http://opensolaris.org/os/downloads/on/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What's wrong with XFS?
  2007-01-08 13:13 What's wrong with XFS? Dave N
  2007-01-08 14:41 ` Klaus Strebel
  2007-01-08 14:45 ` Chris Wedgwood
@ 2007-01-08 14:49 ` Olaf Fraczyk
  2007-01-08 15:35   ` Joe Bacom
  2007-01-08 14:50 ` Olaf Frączyk
  3 siblings, 1 reply; 7+ messages in thread
From: Olaf Fraczyk @ 2007-01-08 14:49 UTC (permalink / raw)
  To: Dave N; +Cc: xfs

On Mon, 2007-01-08 at 05:13 -0800, Dave N wrote:
> Hi,
> 
> Can someone enlighten me what the issue is with XFS? I've been hearing a lot of good things on the Net about XFS. How it's lightening fast, how it has features other file systems do not have (like GRIO, real time volumes, allocate on flush, etc), how it scales very well, etc... but what I didn't hear about is how fast XFS screws things up if something wrong happens. Because of the good things I heard about XFS, I too decided to try it out (been using Ext3 or ReiserFS here for most of the time). Now I'm very disappointed in XFS. I live in an area where power outages are common and I do not have an UPS here. I have a few computers all running on XFS and thought that XFS will give me similar data-integrity like Ext3 or ReiserFS. Now, for the past few weeks I've been experiencing "strange behavior" from XFS. One time, I was reading an article on the Net and had only my Firefox browser open. Then we had a power outage for a short period of time, and when I logged in again into
>  KDE, I was surprised to find out that all my desktop icons were messed up all over the place. The other time, again power outage, only this time I was working on a small text file. Booted up again only to find out that the file I was working on contained garbage and I had to start all over again. 
> 
> I also heard that XFS depends heavily on the application side for its data-integrity. XFS "thinks" that the application will use the proper calls when writing to disk. What???? How is it the task of the application to ensure the safety of your files??? IMO, programs are there to provide the tools to be productive, NOT to ensure the data safety of your files, that's the task of the file system. Even MySQL provides me with better data-integrity here. If I'm doing some database transaction and the power fails, I can be pretty sure that *most* of the time, MySQL will be just fine next time I boot up.
> 
> Why oh why such a beautiful file system like XFS is so terrible at data-integrity? Look what Sun Microsystems did with their new ZFS file system... full atomicity, CRC checksumming and other features to ensure data-integrity... why can't XFS have such things?
> 
> Thanks for listening to my preaching here guys
> 
> Cheers!
Hi,

It is nothing wrong with XFS - your expectations are wrong.

You expect data to be journaled, but XFS does journal metadata only, not
data. So, the thing that you get is filesystem integrity not data
integrity.
If you want data integrity you need properly written applications and
__it is__ application's job to care about it's data. It is nothing
unusual here.

If you need data journaling then you need another filesystem - eg. ext3.

I suppose that you find all of it in FAQ.

Regards,

Olaf
-- 
Olaf Fraczyk <olaf@navi.pl>
NAVI

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What's wrong with XFS?
  2007-01-08 13:13 What's wrong with XFS? Dave N
                   ` (2 preceding siblings ...)
  2007-01-08 14:49 ` Olaf Fraczyk
@ 2007-01-08 14:50 ` Olaf Frączyk
  3 siblings, 0 replies; 7+ messages in thread
From: Olaf Frączyk @ 2007-01-08 14:50 UTC (permalink / raw)
  To: xfs

On Mon, 2007-01-08 at 05:13 -0800, Dave N wrote:
> Hi,
> 
> Can someone enlighten me what the issue is with XFS? I've been hearing a lot of good things on the Net about XFS. How it's lightening fast, how it has features other file systems do not have (like GRIO, real time volumes, allocate on flush, etc), how it scales very well, etc... but what I didn't hear about is how fast XFS screws things up if something wrong happens. Because of the good things I heard about XFS, I too decided to try it out (been using Ext3 or ReiserFS here for most of the time). Now I'm very disappointed in XFS. I live in an area where power outages are common and I do not have an UPS here. I have a few computers all running on XFS and thought that XFS will give me similar data-integrity like Ext3 or ReiserFS. Now, for the past few weeks I've been experiencing "strange behavior" from XFS. One time, I was reading an article on the Net and had only my Firefox browser open. Then we had a power outage for a short period of time, and when I logged in again into
>  KDE, I was surprised to find out that all my desktop icons were messed up all over the place. The other time, again power outage, only this time I was working on a small text file. Booted up again only to find out that the file I was working on contained garbage and I had to start all over again. 
> 
> I also heard that XFS depends heavily on the application side for its data-integrity. XFS "thinks" that the application will use the proper calls when writing to disk. What???? How is it the task of the application to ensure the safety of your files??? IMO, programs are there to provide the tools to be productive, NOT to ensure the data safety of your files, that's the task of the file system. Even MySQL provides me with better data-integrity here. If I'm doing some database transaction and the power fails, I can be pretty sure that *most* of the time, MySQL will be just fine next time I boot up.
> 
> Why oh why such a beautiful file system like XFS is so terrible at data-integrity? Look what Sun Microsystems did with their new ZFS file system... full atomicity, CRC checksumming and other features to ensure data-integrity... why can't XFS have such things?
> 
> Thanks for listening to my preaching here guys
> 
> Cheers!

Hi,

It is nothing wrong with XFS - your expectations are wrong.

You expect data to be journaled, but XFS does journal metadata only, not
data. So, the thing that you get is filesystem integrity not data
integrity.
If you want data integrity you need properly written applications and
__it is__ application's job to care about it's data. It is nothing
unusual here.

If you need data journaling then you need another filesystem - eg. ext3.

I suppose that you find all of it in FAQ.

Regards,

Olaf
-- 
Olaf Frączyk <olaf@cbk.poznan.pl>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What's wrong with XFS?
  2007-01-08 14:45 ` Chris Wedgwood
@ 2007-01-08 15:24   ` Klaus Strebel
  0 siblings, 0 replies; 7+ messages in thread
From: Klaus Strebel @ 2007-01-08 15:24 UTC (permalink / raw)
  To: Dave N; +Cc: xfs

Chris Wedgwood schrieb:
> On Mon, Jan 08, 2007 at 05:13:12AM -0800, Dave N wrote:
> 
>>  KDE, I was surprised to find out that all my desktop icons were
>>  messed up all over the place.
> 
> KDE made assumptions which are not only not true on linux but not true
> elsewhere either.  Last I checked KDE dealt with the common cases that
> were problematic much better now.
> 
>>  The other time, again power outage, only this time I was working on
>>  a small text file. Booted up again only to find out that the file I
>>  was working on contained garbage and I had to start all over again.
> 
> The file should not have contained garbage.  Also, if you
> open+truncate+write a file it should be flushed very soon after close
> these days, the window is fairly small now.
> 
>> I also heard that XFS depends heavily on the application side for
>> its data-integrity.  XFS "thinks" that the application will use the
>> proper calls when writing to disk. What???? How is it the task of
>> the application to ensure the safety of your files???
> 
> It's always been that way, for many many years, even before Linux
> existed.  If you want your applictions to be portable and reliable
> then you have to do do it right.
> 
> MTAs are a good example of applications which typically get this right
> because people case about lost email and the authors typically take
> some effort into make sure it's right.
> 
>> IMO, programs are there to provide the tools to be productive, NOT
>> to ensure the data safety of your files, that's the task of the file
>> system. Even MySQL provides me with better data-integrity here.
> 
> Does MySQL allow me to read or write 100s of MB/s continuously on
> cheap hardware (for not so cheap hardware I could ask 7GB/s).
> 
>> Why oh why such a beautiful file system like XFS is so terrible at
>> data-integrity?
> 
> There is a cost to full data journalling.  Personally even with ext3 I
> find the impact of this high enough I don't use it.
> 
>> Look what Sun Microsystems did with their new ZFS file
>> system... full atomicity, CRC checksumming and other features to
>> ensure data-integrity...
> 
> You could argue XFS is showing it's age, it's far from a new
> filesystem these days.
> 
> ZFS is a very different animal to most traditional filesystems.
> 
>> why can't XFS have such things?
> 
> Because the realities of life sometime collide with what people want
> ideally.
> 
> Linux can't have ZFS for licensing reasons but you can have Solaris
> with ZFS:  http://opensolaris.org/os/downloads/on/
> 
> 
FYI,

just found this <http://developer.berlios.de/projects/zfs-fuse/>

;-)

Klaus

-- 
Mit freundlichen Grüssen / best regards

Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net

/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What's wrong with XFS?
  2007-01-08 14:49 ` Olaf Fraczyk
@ 2007-01-08 15:35   ` Joe Bacom
  0 siblings, 0 replies; 7+ messages in thread
From: Joe Bacom @ 2007-01-08 15:35 UTC (permalink / raw)
  To: xfs

[-- Attachment #1: Type: text/plain, Size: 3842 bytes --]

The solution to Dave's problem seems obvious to me.  If you care about your 
data and your hardware, buy a UPS with power conditioning, configure Linux to 
show down when the battery gets low and enjoy the peace of mind knowing that 
even if your away from your machine and the power goes off, the system will 
take care of itself.

Joe

On Monday 08 January 2007 08:49, you wrote:
> On Mon, 2007-01-08 at 05:13 -0800, Dave N wrote:
> > Hi,
> >
> > Can someone enlighten me what the issue is with XFS? I've been hearing a
> > lot of good things on the Net about XFS. How it's lightening fast, how it
> > has features other file systems do not have (like GRIO, real time
> > volumes, allocate on flush, etc), how it scales very well, etc... but
> > what I didn't hear about is how fast XFS screws things up if something
> > wrong happens. Because of the good things I heard about XFS, I too
> > decided to try it out (been using Ext3 or ReiserFS here for most of the
> > time). Now I'm very disappointed in XFS. I live in an area where power
> > outages are common and I do not have an UPS here. I have a few computers
> > all running on XFS and thought that XFS will give me similar
> > data-integrity like Ext3 or ReiserFS. Now, for the past few weeks I've
> > been experiencing "strange behavior" from XFS. One time, I was reading an
> > article on the Net and had only my Firefox browser open. Then we had a
> > power outage for a short period of time, and when I logged in again into
> > KDE, I was surprised to find out that all my desktop icons were messed up
> > all over the place. The other time, again power outage, only this time I
> > was working on a small text file. Booted up again only to find out that
> > the file I was working on contained garbage and I had to start all over
> > again.
> >
> > I also heard that XFS depends heavily on the application side for its
> > data-integrity. XFS "thinks" that the application will use the proper
> > calls when writing to disk. What???? How is it the task of the
> > application to ensure the safety of your files??? IMO, programs are there
> > to provide the tools to be productive, NOT to ensure the data safety of
> > your files, that's the task of the file system. Even MySQL provides me
> > with better data-integrity here. If I'm doing some database transaction
> > and the power fails, I can be pretty sure that *most* of the time, MySQL
> > will be just fine next time I boot up.
> >
> > Why oh why such a beautiful file system like XFS is so terrible at
> > data-integrity? Look what Sun Microsystems did with their new ZFS file
> > system... full atomicity, CRC checksumming and other features to ensure
> > data-integrity... why can't XFS have such things?
> >
> > Thanks for listening to my preaching here guys
> >
> > Cheers!
>
> Hi,
>
> It is nothing wrong with XFS - your expectations are wrong.
>
> You expect data to be journaled, but XFS does journal metadata only, not
> data. So, the thing that you get is filesystem integrity not data
> integrity.
> If you want data integrity you need properly written applications and
> __it is__ application's job to care about it's data. It is nothing
> unusual here.
>
> If you need data journaling then you need another filesystem - eg. ext3.
>
> I suppose that you find all of it in FAQ.
>
> Regards,
>
> Olaf

-- 
A Cringester who requested anonymity says when a friend ran 
Microsoft BS (Baseline Security) Analyzer on a XP Pro SP2 machine,
the cumulative size of the patches that were required exceeded 
the size of the original OS.  I'm not surprised.  The volume
of Microsoft BS I've analyzed could fill Bill Gates' house.
Source: Robert X. Cringely, InfoWorld, Sept. 4, 2006, Issue 36

Penguin: Linux version 2.6.16, 8010.09 BogoMips

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-08 15:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 13:13 What's wrong with XFS? Dave N
2007-01-08 14:41 ` Klaus Strebel
2007-01-08 14:45 ` Chris Wedgwood
2007-01-08 15:24   ` Klaus Strebel
2007-01-08 14:49 ` Olaf Fraczyk
2007-01-08 15:35   ` Joe Bacom
2007-01-08 14:50 ` Olaf Frączyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox