From: Roman Mamedov <roman@rm.pp.ru>
To: aragonx@dcsnow.com
Cc: linux-raid@vger.kernel.org
Subject: Re: How to boost performance
Date: Thu, 17 Jun 2010 22:13:00 +0600 [thread overview]
Message-ID: <20100617221300.3e30afe0@natsu> (raw)
In-Reply-To: <d98b7022efc6988e47f7e4114aa83f62.squirrel@www.dcsnow.com>
[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]
On Thu, 17 Jun 2010 09:49:42 -0400
aragonx@dcsnow.com wrote:
> Prior to the change above, on a 2GB file, I would start off the write (to
> the server) at 70MB/sec and end at about 35MB/sec. CPU usage was at 100%
> with the md0 using about 70% CPU and smb using 30% with flush sometimes
> jumping in at 30%. Wait states remained below 10%. After the change, on
> a 2GB file I would start the write at 70MB/sec and end about 55MB/sec
> (nice improvement!).
A more consistent way to test would be to cd into a directory on the array,
and repeatedly run something like:
dd if=/dev/zero of=zerofile bs=1M count=2048 conv=fdatasync,notrunc
...and implement various tweaks you are trying out between the runs, to see
their effect.
Also, the reason you see the write speed dropping off in the end, is because
your server first fills up its write cache almost at the maximum
attainable sender's (and network) speed, then, as the space in RAM for that
cache runs out, starts flushing it to disk, reducing the rate at which it
receives new data from the network. So you see that the 70 MB/sec figure is
totally unrelated to the RAID's performance. The dd test described above,
thanks to these "conv" flags (see the dd man page) will have much more sense
as a benchmark.
--
With respect,
Roman
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-06-17 16:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 22:23 How to boost performance aragonx
2010-06-17 4:01 ` Roman Mamedov
2010-06-17 8:17 ` Michael Evans
2010-06-17 13:49 ` aragonx
2010-06-17 16:13 ` Roman Mamedov [this message]
2010-06-17 16:44 ` Stefan /*St0fF*/ Hübner
2010-06-17 19:51 ` aragonx
2010-06-17 22:25 ` Roger Heflin
2010-06-17 19:46 ` aragonx
2010-06-17 19:56 ` aragonx
2010-06-17 20:02 ` Roman Mamedov
2010-06-17 20:43 ` Keld Simonsen
2010-06-18 17:55 ` aragonx
2010-06-18 20:12 ` Roger Heflin
2010-06-20 23:30 ` How to boost performance [SOLVED] aragonx
2010-06-21 0:21 ` Bernd Schubert
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=20100617221300.3e30afe0@natsu \
--to=roman@rm.pp.ru \
--cc=aragonx@dcsnow.com \
--cc=linux-raid@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;
as well as URLs for NNTP newsgroup(s).