From: Martin Steigerwald <Martin@lichtvoll.de>
To: Daniel Pocock <daniel@pocock.com.au>
Cc: Andreas Dilger <adilger@dilger.ca>, linux-ext4@vger.kernel.org
Subject: Re: ext4, barrier, md/RAID1 and write cache
Date: Mon, 7 May 2012 20:59:10 +0200 [thread overview]
Message-ID: <201205072059.10256.Martin@lichtvoll.de> (raw)
In-Reply-To: <4FA8063F.5080505@pocock.com.au>
Am Montag, 7. Mai 2012 schrieb Daniel Pocock:
> > Possibly the older disk is lying about doing cache flushes. The
> > wonderful disk manufacturers do that with commodity drives to make
> > their benchmark numbers look better. If you run some random IOPS
> > test against this disk, and it has performance much over 100 IOPS
> > then it is definitely not doing real cache flushes.
[…]
> I would agree that is possible - I actually tried using hdparm and
> sdparm to check cache status, but they don't work with the USB drive
>
> I've tried the following directly onto the raw device:
>
> dd if=/dev/zero of=/dev/sdc1 bs=4096 count=65536 conv=fsync
> 29.2MB/s
Thats no random I/O IOPS benchmark,
> and iostat reported avg 250 write/sec, avgrq-sz = 237, wkB/s = 30MB/sec
but a sequential workload that gives the I/O scheduler oppurtunity to
combine write requests.
Also its using pagecache, as conv=fsync only includes the fsync() at the
end of dd´ing.
> I tried a smaller write as well (just count=1024, total 4MB of data)
> and it also reported a slower speed, which suggests that it really is
> writing the data out to disk and not just caching.
I think an IOPS benchmark would be better. I.e. something like:
/usr/share/doc/fio/examples/ssd-test
(from flexible I/O tester debian package, also included in upstream tarball
of course)
adapted to your needs.
Maybe with different iodepth or numjobs (to simulate several threads
generating higher iodepths). With iodepth=1 I have seen 54 IOPS on a
Hitachi 5400 rpm harddisk connected via eSATA.
Important is direct=1 to bypass the pagecache.
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-05-07 18:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 10:47 ext4, barrier, md/RAID1 and write cache Daniel Pocock
2012-05-07 16:25 ` 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 [this message]
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=201205072059.10256.Martin@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=adilger@dilger.ca \
--cc=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