public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-xfs@oss.sgi.com
Subject: Re: cache+barriers vs cache+nobarriers vs disabled cache+barriers vs disabled cache+nobarriers
Date: Thu, 15 Mar 2007 13:39:30 +0100	[thread overview]
Message-ID: <200703151339.36259.Martin@lichtvoll.de> (raw)
In-Reply-To: <20070315092220.1B09B193FE@mail.edu.haifa.ac.il>

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

Am Donnerstag 15 März 2007 schrieb Leon Kolchinsky:
> Hello All,
>
>
> After reading http://oss.sgi.com/projects/xfs/faq.html#wcache
> and some posts on the list I've got the following question:
>
> If I have disabled write cache on the disk (hdparm -W0 /dev/hda) and by
> default FS is mounted with "barrier" enabled, Is there any taste in
> enabling "barrier"(by default) because write cache is disabled anyway
> or may be it's a good idea to mount with "nobarriers" in this case?

Hello Leon!

It is not needed to enable barriers when write cache is disabled. Enabling 
barriers in this case shouldn't have any visible effect I think.

> I thought that "barrier" is on by default to somewhat minimize
> potential dangers of enabled write cache? But if write cache is
> disabled, would "barrier" option just slow down the FS performance
> (which is already slowed down by "hdparm -W0 /dev/had" anyway)?

I think it wouldn't slow down any more, except maybe a minimal slow down 
due to a little bit more of code executed inside XFS.

But why do you want to disable write cache in the first case? As long as 
you are using 2.6.17.7 or later you can safely enable barriers and and 
write cache. At least that is my experience upto 2.6.20.1 with old IDE 
drivers and now since some hours on my ThinkPad T42 2.6.20.3 with libata 
drivers.

With write barriers XFS and enabled write cache, XFS will not be as fast 
as without write barriers and with enabled write cache - which is the 
unsafe combination -, but it will still be faster than with disabled 
write cache.

Regards,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

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

  reply	other threads:[~2007-03-15 13:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15  9:16 cache+barriers vs cache+nobarriers vs disabled cache+barriers vs disabled cache+nobarriers Leon Kolchinsky
2007-03-15 12:39 ` Martin Steigerwald [this message]
2007-03-15 13:07   ` Martin Steigerwald
2007-03-18 10:07   ` Leon Kolchinsky
2007-03-18 21:33     ` Chris Wedgwood

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=200703151339.36259.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=linux-xfs@oss.sgi.com \
    /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