All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Horky <jiri.horky@cesnet.cz>
To: Erwan MAS <erwan@mas.nom.fr>
Cc: Caspar Smit <c.smit@truebit.nl>,
	linux-raid@vger.kernel.org, fio@vger.kernel.org
Subject: Re: Striping does not increase performance.
Date: Mon, 12 Mar 2012 15:34:11 +0100	[thread overview]
Message-ID: <4F5E0963.6080708@cesnet.cz> (raw)
In-Reply-To: <20120312135847.GM4558@voyageur.mas.nom.fr>

[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]

Hi,

as for alignment, please also check md metadata format version (-e 
switch of mdadm). The version that ensures alignment is 1.0, which 
places the metadata information to the back of the drive. I am not an 
expert to LVM but I would suspect that there might be similar 
problems/options to check.

I would first verify physical sector size of the drives you use. Please 
have a look at the utility at 
http://www.farm.particle.cz/blksztester.tar.gz. It randomly directly 
writes e.g. 4K blocks to a block device at choosen alignment. Run it 
with no arguments to get some help in English (README is in Czech :).
If you get similar speeds for 4k-align and 4k-misalign writes, the disk 
use 512b physical sector size. The difference should be around 300% in 
case of 4K sectors. You may try to google for sector size according to 
product number, but I have seen cases where official vendor websites 
were wrong. Please note that you shold not connect the drive under test 
through RAID controller with its own logic and/or cache, which may skew 
the results, but rather to a stupid motherboard.

I had several headaches with 4k-block drives in the past as well...

Cheers
Jiri Horky

On 03/12/2012 02:58 PM, Erwan MAS wrote:
> On Mon, Mar 12, 2012 at 02:02:36PM +0100, Caspar Smit wrote:
>> Hi Erwan,
>>
>> I do not use partitions on the drives so the whole disk /dev/sdb is
>> used as md component device, i was in the understanding that if not
>> using partitions the alignment is correct or am i wrong?
>>
> For me it's correct .
>


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5655 bytes --]

  reply	other threads:[~2012-03-12 14:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-12 12:34 Striping does not increase performance Caspar Smit
2012-03-12 12:57 ` Erwan MAS
2012-03-12 13:02   ` Caspar Smit
2012-03-12 13:02     ` Caspar Smit
2012-03-12 13:58     ` Erwan MAS
2012-03-12 14:34       ` Jiri Horky [this message]
2012-03-12 16:23         ` John Robinson
2012-03-12 14:33     ` Peter Grandi
2012-03-13 11:44       ` Caspar Smit
2012-03-12 14:20 ` David Brown
2012-03-13 11:55   ` Caspar Smit
2012-03-13 14:12     ` David Brown

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=4F5E0963.6080708@cesnet.cz \
    --to=jiri.horky@cesnet.cz \
    --cc=c.smit@truebit.nl \
    --cc=erwan@mas.nom.fr \
    --cc=fio@vger.kernel.org \
    --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 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.