Re: Ext4 and the "30 second window of death"

From: Matthew Garrett
Date: Thu Apr 02 2009 - 21:36:25 EST


On Thu, Apr 02, 2009 at 06:24:28PM -0700, david@xxxxxxx wrote:
> On Fri, 3 Apr 2009, Matthew Garrett wrote:
> >No it wouldn't. The kernel would be implementing an adminstrator's
> >choice about whether fsync() is important or not. That's something that
> >would affect the mail client, but it's hardly a decision based on the
> >mail client. Sucks to be that user if they do anything involving mysql.
>
> in the case of laptops, in 99+% of the cases the user and the
> administrator are the same person. in the other cases that's something the
> user should take up with the administrator, because the administrator can
> do a lot of things to the system that will affect the safety of their data
> (including loading a kernel that turns fsync into a noop, but more likely
> involving enabling or disabling write caches on disks)

Well, yes, the administrator could hate the user. They could achieve the
same affect by just LD_PRELOADING something that stubbed out fsync() and
inserted random data into every other write(). We generally trust that
admins won't do that.

> >Benchmarks please.
>
> if spinning down a drive saves so little power that it wouldn't make a
> significant difference to battery lift to leave it on, why does anyone
> bother to spin the drive down?

There's various circumstances in which it's beneficial. The difference
between an optimal algorithm for typical use and an optimal algorithm
for typical use where there's an fsync() every 5 minutes isn't actually
that great.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/