From: Chris Mason <mason@suse.com>
To: Mike Fedyk <mfedyk@matchmail.com>
Cc: Tom Vier <tmv@comcast.net>, Reiserfs List <reiserfs-list@namesys.com>
Subject: Re: write barrier patches for 2.4.21
Date: 28 Aug 2003 21:44:34 -0400 [thread overview]
Message-ID: <1062121473.5322.161.camel@tiny.suse.com> (raw)
In-Reply-To: <20030829011852.GI21352@matchmail.com>
On Thu, 2003-08-28 at 21:18, Mike Fedyk wrote:
>
> > i'm not sure what you mean. chris is just saying tcq makes performance w/o
> > write cache better. i WOULD like to see wb's used w/ scsi. it would be nice
> > to be able to safely enable write cache on my drives.
>
> I'm just trying to clairify that it looks like TCQ shows exactly what it
> happening in the drive's cache, and that's why with tcq the wb's aren't
> explicitly needed.
>
> With ide without tcq and with write caching, it accepts the write request
> and says it's complete when it's actually still in the disks cache, not on
> the platters yet.
>
> Contrast that to TCQ (IDE or SCSI), where the write request is sent to the
> drive, and once it hits the platter, the tcq command completes and notifies
> the host OS (Linux in this case) that it's done. And SCSI with no TCQ is
> like IDE with no write cache.
>
> Do I have that right?
Pretty much. If your tag depth is set right, you get the benefits of
writeback caching without the risk. But your workload has to be right.
Picture one process doing synchronous io writes. He's only going to
generate one tag and then wait on it. With writeback cache, the drive
will return immediately, but with just tcq you'll still have to wait.
For the one writer workload with the barrier patches, the writeback
cache disk will be just as slow as the tcq disk. This is usually what
you want, since if you're taking the time to do synchronous IO it's
because you want to know the data is really on disk (or on battery
backed cache somewhere).
-chris
next prev parent reply other threads:[~2003-08-29 1:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-25 17:08 write barrier patches for 2.4.21 Gergely Tamas
2003-08-26 8:17 ` Oleg Drokin
2003-08-26 9:03 ` Gergely Tamas
2003-08-26 9:13 ` Oleg Drokin
2003-08-26 9:32 ` Gergely Tamas
2003-08-26 21:46 ` Tom Vier
2003-08-27 6:41 ` Oleg Drokin
2003-08-27 22:03 ` Tom Vier
2003-08-28 0:37 ` Chris Mason
2003-08-28 17:07 ` Mike Fedyk
2003-08-29 0:07 ` Tom Vier
2003-08-29 1:18 ` Mike Fedyk
2003-08-29 1:44 ` Chris Mason [this message]
2003-08-29 1:56 ` Matthias Andree
2003-09-02 22:10 ` Hans Reiser
2003-09-04 14:56 ` Oleg Drokin
-- strict thread matches above, loose matches on Subject: below --
2003-09-04 20:49 Tom Vier
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=1062121473.5322.161.camel@tiny.suse.com \
--to=mason@suse.com \
--cc=mfedyk@matchmail.com \
--cc=reiserfs-list@namesys.com \
--cc=tmv@comcast.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.