linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Theodore Tso <tytso@MIT.EDU>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Jens Axboe <axboe@kernel.dk>, dave b <db.pub.mail@gmail.com>,
	Sanjoy Mahajan <sanjoy@olin.edu>, Jesper Juhl <jj@chaosbits.net>,
	Chris Mason <chris.mason@oracle.com>, Ingo Molnar <mingo@elte.hu>,
	Pekka Enberg <penberg@kernel.org>,
	Aidar Kultayev <the.aidar@gmail.com>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Nick Piggin <npiggin@suse.de>,
	Arjan van de Ven <arjan@infradead.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Corrado Zoccolo <czoccolo@gmail.com>,
	Shaohua Li <shaohua.li@intel.com>,
	Steven Barrett <damentz@gmail.com>
Subject: Re: 2.6.36 io bring the system to its knees
Date: Thu, 11 Nov 2010 10:36:48 +1100	[thread overview]
Message-ID: <20101110233648.GY2715@dastard> (raw)
In-Reply-To: <C70A546B-6BC5-49CA-9E34-E69F494A71A0@mit.edu>

On Wed, Nov 10, 2010 at 09:33:29AM -0500, Theodore Tso wrote:
> 
> On Nov 9, 2010, at 8:32 PM, Dave Chinner wrote:
> 
> > Don't forget to mention data=writeback is not the default because if
> > your system crashes or you lose power running in this mode it will
> > *CORRUPT YOUR FILESYSTEM* and you *WILL LOSE DATA*. Not to mention
> > the significant security issues (e.g stale data exposure) that also
> > occur even if the filesystem is not corrupted by the crash. IOWs,
> > data=writeback is the "fast but I'll eat your data" option for ext3.
> 
> This is strictly speaking not true.  Using data=writeback will not
> cause you to lose any data --- at least, not any more than you
> would without the feature.   If you have applications that write
> files in an unsafe way, that data is going to be lost, one way or
> another.  (i.e., with XFS in a similar situation you'll get a
> zero-length file)   The difference is that in the case of a system
> crash, there may be unwritten data revealed if you use
> data=writeback.  This could be a security exposure, especially if
> you are using your system in as time-sharing system, and where you
> see the contents of deleted files belonging to another user.

In theory, that's all that is _supposed_ to happen. However, my
recent experience is that massive ext3 filesystem corruption occurs
in data=writeback mode when the system crashes and that does not
happen in ordered mode.

Why do you think i posted the patches to change the default back to
ordered mode a few months back? I basically trashed the root ext3
partitions on three test machines (to the point where >5000 files
across /sbin, /bin, /lib and /usr were corrupted or missing and I
had to reinstall from scratch) when I'd forgotten to set the
ordered-is-defult config option in the kernel i was testing.  And
that is when the only thing being written to the root filesystems
was log files...

The worst part about this was that I also had ext3 filesystems
corrupted by crashes in such a way that e2fsck didn't detect it but
they would repeatedly trigger kernel crashes at runtime....

> So it is not an "eat your data" situation,

My experience says otherwise....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2010-11-10 23:38 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTimt7wzR9RwGWbvhiOmot_zzayfCfSh_-v6yvuAP@mail.gmail.com>
     [not found] ` <AANLkTikRKVBzO=ruy=JDmBF28NiUdJmAqb4-1VhK0QBX@mail.gmail.com>
     [not found]   ` <AANLkTinzJ9a+9w7G5X0uZpX2o-L8E6XW98VFKoF1R_-S@mail.gmail.com>
2010-10-28  6:09     ` 2.6.36 io bring the system to its knees Aidar Kultayev
2010-10-28  6:32       ` Pekka Enberg
2010-10-28  9:00         ` Ingo Molnar
2010-10-28  9:34           ` Pekka Enberg
2010-10-28 11:16           ` Pekka Enberg
2010-10-28 11:33             ` Aidar Kultayev
2010-10-28 11:48               ` Pekka Enberg
2010-10-28 12:18                 ` Aidar Kultayev
2010-10-28 13:46                 ` Christoph Hellwig
2010-10-28 13:54                   ` Ingo Molnar
2010-10-28 13:30             ` Ingo Molnar
2010-10-28 13:47               ` Christoph Hellwig
2010-10-28 13:50                 ` Ingo Molnar
2010-10-28 17:01               ` Chris Mason
2010-10-28 17:57                 ` Pekka Enberg
2010-10-29 14:52                   ` Ted Ts'o
2010-10-29 15:33                     ` Aidar Kultayev
2010-10-30  9:14                       ` Ingo Molnar
2010-10-30 13:02                         ` Aidar Kultayev
2010-10-30 19:06                           ` Chris Mason
2010-10-31  2:31                           ` Ted Ts'o
2010-10-31 17:49                             ` Corrado Zoccolo
2010-11-02  3:10                           ` Shaohua Li
2010-11-02 11:47                 ` Sanjoy Mahajan
2010-11-02 13:12                   ` Chris Mason
2010-11-04 16:05                     ` Sanjoy Mahajan
2010-11-04 23:35                       ` Steven Barrett
2010-11-04 23:44                 ` Jesper Juhl
2010-11-04 23:48                   ` Jesper Juhl
2010-11-05  1:43                     ` Dave Chinner
2010-11-05 12:48                       ` Sanjoy Mahajan
2010-11-06 14:10                         ` dave b
2010-11-06 15:12                           ` Dave Chinner
2010-11-07  6:06                             ` dave b
2010-11-07 12:08                           ` Jens Axboe
2010-11-07 15:50                             ` Linus Torvalds
2010-11-10  1:32                               ` Dave Chinner
2010-11-10  2:01                                 ` dave b
2010-11-10  8:08                                 ` Evgeniy Ivanov
2010-11-10  8:24                                   ` Dave Chinner
2010-11-10 14:22                                     ` Pavel Machek
2010-11-10 14:20                                 ` Pavel Machek
2010-11-10 14:27                                   ` Ingo Molnar
2010-11-10 14:55                                     ` Christoph Hellwig
2010-11-10 19:09                                       ` Pavel Machek
2010-11-10 14:33                                 ` Theodore Tso
2010-11-10 14:57                                   ` Christoph Hellwig
2010-11-10 15:00                                     ` Chris Mason
2010-11-10 23:36                                   ` Dave Chinner [this message]
2010-11-10 15:59                                 ` Linus Torvalds
2010-11-10 16:46                                   ` Alexey Dobriyan
2010-11-10 16:55                                     ` Linus Torvalds
2010-11-10 17:10                                       ` Alexey Dobriyan
2010-11-10 18:55                                         ` Mark Lord
2010-11-10 18:27                                     ` Mike Galbraith
2010-11-10 23:43                                   ` Dave Chinner
2010-11-06 19:10                         ` Arjan van de Ven
2010-11-07 17:16                       ` Jesper Juhl
2010-11-09 19:47                         ` Evgeniy Ivanov
2010-11-09 20:20                           ` Christoph Hellwig
2010-11-09 21:00                       ` Chris Mason
2010-10-31  1:22       ` Wu Fengguang
2010-10-31  1:51         ` Wu Fengguang
2010-11-01  1:09           ` Dimitrios Apostolou
2010-11-02  1:20             ` Wu Fengguang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101110233648.GY2715@dastard \
    --to=david@fromorbit.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=arjan@infradead.org \
    --cc=axboe@kernel.dk \
    --cc=chris.mason@oracle.com \
    --cc=czoccolo@gmail.com \
    --cc=damentz@gmail.com \
    --cc=db.pub.mail@gmail.com \
    --cc=jj@chaosbits.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@elte.hu \
    --cc=npiggin@suse.de \
    --cc=penberg@kernel.org \
    --cc=sanjoy@olin.edu \
    --cc=shaohua.li@intel.com \
    --cc=tglx@linutronix.de \
    --cc=the.aidar@gmail.com \
    --cc=torvalds@linux-foundation.org \
    --cc=tytso@MIT.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).