From: Stan Hoeppner <stan@hardwarefreak.com>
To: Andrei Banu <andrei.banu@redhost.ro>
Subject: Re: Incredibly poor performance of mdraid-1 with 2 SSD Samsung 840 PRO
Date: Tue, 23 Apr 2013 22:24:40 -0500 [thread overview]
Message-ID: <51775078.3000500@hardwarefreak.com> (raw)
In-Reply-To: <51765FD7.8090309@redhost.ro>
On 4/23/2013 5:17 AM, Andrei Banu wrote:
> I am sorry for the very long email. And thanks a lot for all your patience.
From now on simply provide what is asked for. That keeps the length
manageable and the info relevant, and allows us to help you get to a
solution more quickly without being bogged down.
> 1. DMESG doesn't show any "hard resetting link" at all.
Then it seems you don't have hardware problems.
> 2. The SSDs are connected to ATA 0 and ATA1. The server is brand new (or
> at least it should be).
Nor the Intel 6 Series SATA problem.
> 3. Partition table:
/etc/fstab contains mount points, not the partition table.
> root [~]# cat /etc/fstab
> UUID=cef1d19d-2578-43db-9ffc-b6b70e227bfa swap swap defaults 0 0
I can't discern from UUID where your swap partition is located. Is it a
partition directly on an SSD or is it a partition atop md1?
> root [/]# echo 3 > /proc/sys/vm/drop_caches
> root [~]# time cp largefile.tar.gz test03.tmp; time sync;
You're slowing us down here. Please execute commands as instructed
without modification. The above is wrong. You don't call time twice.
If you're worried about sync execution being included time, use:
$ time (cp src.tmp src.temp; sync)
Though it makes little difference as Linux is pretty good about flushing
the last few write buffers. But you missed the important part, the math
for bandwidth determination: 548/real = xx MB/s
This is cp not dd. It's up to you to do the math. Using time allows
you to do so. 548MB is my example using your previous file size in your
tests. Modify accordingly if needed.
*Important note* The job of this list is to provide knowledge transfer,
advice, and assistance. You must do the work, and you must learn along
the way. We don't fix people's problems, as we don't have access to
their computers. What we do is *enable* people to fix their problems
themselves.
> After about 15 seconds the server load started to increase from 1,
> spiked to 40 in about a minute and then it started decreasing.
Please stop telling us this. Linux load average is irrelevant.
> 5. The perf top -U output during a dd copy:
This was supposed to be executed before and simultaneously with the cp
operation above. Do you know how to use multiple terminal windows?
> 6. iotop
Again, this was supposed to be run with the cp command, exited toward
the end of the cp operation, then copy/pasted.
is very dynamic and I am afraid the data I am providing will be
> unclear but let me give a number of snapshots from during the large file
> copy and maybe you can make something of it (samples a few seconds apart):
> !!!!!! 6085 be/4 root 7.69 K/s 1004.85 M/s 0.00 % 0.00 % dd
> if=largefile.tar.gz of=test10 oflag=sync bs=1G
This is another example of why you don't use dd for IO testing, and
especially with a block size of 1GB. dd buffers into RAM up to
$block_size bytes before it begins flushing to disk. So what you're
seeing here is that massive push at the beginning of the run. Your SSDs
in RAID1 peak at ~265MB/s. iotop is showing 1GB/s, 4 times what the
drives can do. This is obviously not real.
You can get away with oflag=sync using 1GB block size. But if you run
dd the only way it can be run for realistic results, using bs=4096 which
matches every filesystem block size including EXTx, XFS, and JFS, then
using iflag=sync will degrade your performance, an ack is required on
each block. That's what sync does. With SSD it won't be nearly as
dramatic as rust, where the difference in runtime is 100-200x slower due
to rotational latency.
> I appologize for such a lengthy email!
Don't apologize, just don't send more information than needed,
especially if you don't know it's relevant. ;) Send only what's
requested, and as requested, please.
--
Stan
next prev parent reply other threads:[~2013-04-24 3:24 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 22:58 Incredibly poor performance of mdraid-1 with 2 SSD Samsung 840 PRO Andrei Banu
[not found] ` <CAH3kUhEaZGON=fAyVMZOz5fH_DcfKv=hCa96UCeK4pN7k81c_Q@mail.gmail.com>
[not found] ` <51725458.7020109@redhost.ro>
[not found] ` <CAH3kUhHxBiqugFQm=PPJNNe9jOdKy0etUjQNsoDz_LJNUCLCCQ@mail.gmail.com>
2013-04-20 23:25 ` Andrei Banu
2013-04-20 23:26 ` Andrei Banu
2013-04-21 2:48 ` Stan Hoeppner
2013-04-21 12:23 ` Tommy Apel
2013-04-21 16:48 ` Tommy Apel
2013-04-21 19:33 ` Stan Hoeppner
2013-04-21 19:56 ` Tommy Apel
2013-04-22 0:47 ` Stan Hoeppner
2013-04-22 7:51 ` Tommy Apel
2013-04-22 8:29 ` Tommy Apel
2013-04-22 10:26 ` Andrei Banu
2013-04-22 12:02 ` Tommy Apel
2013-04-23 2:59 ` Stan Hoeppner
2013-04-22 23:21 ` Stan Hoeppner
2013-04-25 11:38 ` Thomas Jarosch
2013-04-20 23:26 ` Andrei Banu
2013-04-21 0:10 ` Stan Hoeppner
[not found] ` <51732E2B.6090607@hardwarefreak.com>
2013-04-21 20:46 ` Andrei Banu
2013-04-21 23:17 ` Stan Hoeppner
2013-04-22 10:19 ` Andrei Banu
2013-04-23 2:51 ` Stan Hoeppner
2013-04-23 10:17 ` Andrei Banu
2013-04-24 3:24 ` Stan Hoeppner [this message]
2013-04-24 8:26 ` Andrei Banu
2013-04-24 9:12 ` Adam Goryachev
2013-04-24 10:24 ` Tommy Apel
2013-04-24 21:42 ` Andrei Banu
2013-04-24 21:40 ` Andrei Banu
2013-04-24 16:37 ` Stan Hoeppner
2013-04-24 21:46 ` Andrei Banu
[not found] ` <CAH3kUhHnF0imY=CAHfzaQy4XJuOMgOtbHNp17EYzeSJR2en7Fg@mail.gmail.com>
2013-04-25 10:11 ` Andrei Banu
2013-04-25 10:56 ` Stan Hoeppner
2013-04-22 23:11 ` Andrei Banu
2013-04-23 4:39 ` Stan Hoeppner
2013-04-22 23:25 ` Stan Hoeppner
2013-04-23 4:49 ` Mikael Abrahamsson
2013-04-23 6:01 ` Stan Hoeppner
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=51775078.3000500@hardwarefreak.com \
--to=stan@hardwarefreak.com \
--cc=andrei.banu@redhost.ro \
/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