From: Daniel Pocock <daniel@pocock.com.au>
To: linux-ext4@vger.kernel.org
Subject: ext4, barrier, md/RAID1 and write cache
Date: Mon, 07 May 2012 10:47:26 +0000 [thread overview]
Message-ID: <4FA7A83E.6010801@pocock.com.au> (raw)
I've been having some NFS performance issues, and have been
experimenting with the server filesystem (ext4) to see if that is a factor.
The setup is like this:
(Debian 6, kernel 2.6.39)
2x SATA drive (NCQ, 32MB cache, no hardware RAID)
md RAID1
LVM
ext4
a) If I use data=ordered,barrier=1 and `hdparm -W 1' on the drive, I
observe write performance over NFS of 1MB/sec (unpacking a big source
tarball)
b) If I use data=writeback,barrier=0 and `hdparm -W 1' on the drive, I
observe write performance over NFS of 10MB/sec
c) If I just use the async option on NFS, I observe up to 30MB/sec
I believe (b) and (c) are not considered safe against filesystem
corruption, so I can't use them in practice.
Can anyone suggest where I should direct my efforts to lift performance?
E.g.
- does SCSI work better with barriers, will buying SCSI drives just
solve the problem using config (a)?
- should I do away with md RAID and consider btrfs which does RAID1
within the filesystem itself?
- or must I just use option (b) but make it safer with battery-backed
write cache?
- or is there any md or lvm issue that can be tuned or fixed by
upgrading the kernel?
next reply other threads:[~2012-05-07 10:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 10:47 Daniel Pocock [this message]
2012-05-07 16:25 ` ext4, barrier, md/RAID1 and write cache Martin Steigerwald
2012-05-07 16:44 ` Daniel Pocock
2012-05-07 16:54 ` Andreas Dilger
2012-05-07 17:28 ` Daniel Pocock
2012-05-07 18:59 ` Martin Steigerwald
2012-05-07 20:56 ` Daniel Pocock
2012-05-07 22:24 ` Martin Steigerwald
2012-05-07 23:23 ` Daniel Pocock
2012-05-08 14:55 ` Martin Steigerwald
2012-05-08 15:28 ` Daniel Pocock
2012-05-08 17:02 ` Andreas Dilger
2012-05-09 7:30 ` Martin Steigerwald
2012-05-09 9:34 ` Martin Steigerwald
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=4FA7A83E.6010801@pocock.com.au \
--to=daniel@pocock.com.au \
--cc=linux-ext4@vger.kernel.org \
/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