From: Robin Hill <robin@robinhill.me.uk>
To: "P. Gautschi" <linuxlist@gautschi.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: Bad sequential performance of RAID5 with a lot of disk seeks
Date: Tue, 7 Oct 2014 12:05:26 +0100 [thread overview]
Message-ID: <20141007110526.GD18786@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <20141007123619.Horde.tC2-gMUttC5BYOoaKogzlw9@webmail.gautschi.net>
[-- Attachment #1: Type: text/plain, Size: 1763 bytes --]
On Tue Oct 07, 2014 at 12:36:19PM +0200, P. Gautschi wrote:
> > What does the SMART info show for the drives - are there any reallocated
> > blocks? A large number of those scattered over the disk would certainly
> > cause seeking for both reads and writes.
>
> I will check the SMART this evening but I don't think that this is causing
> the seek. The sound is very constant and for the whole time of syncing
> the array.
> I will also run a dd on the disk to compare.
>
> > It's also worth checking whether there's anything else that would be
> > accessing the disks in the background (monitoring/indexing/etc).
>
> Unlikely because I have not yet created a filesystem after setting up
> the RAID4.
>
> > I can't think of anything else that would be causing reads to seek - SMR
> > disks or write-intent bitmaps would only affect writes.
>
> Exactly
>
> Is there any way or tool to monitor all disk read/write commands - not only
> the count or amount but every access with LBA and length?
>
You can do:
echo 1 > /proc/sys/vm/block_dump
That will write out all disk IO to the kernel log (process ID,
read/write and block offset only though). It can be very verbose,
especially if you have a lot of other things running on the system, but
you should be able to grep out the necessary lines. Echoing 0 will
switch it back off again.
Otherwise there's probably ways to get more specific results via the
kernel auditing system, but that's nothing I've played with.
Cheers,
Robin
--
___
( ' } | Robin Hill <robin@robinhill.me.uk> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2014-10-07 11:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 4:44 Bad sequential performance of RAID5 with a lot of disk seeks P. Gautschi
2014-10-07 7:43 ` Robin Hill
2014-10-07 7:54 ` P. Gautschi
2014-10-07 9:25 ` Robin Hill
2014-10-07 10:36 ` P. Gautschi
2014-10-07 11:05 ` Robin Hill [this message]
2014-10-08 9:05 ` XiaoNi
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=20141007110526.GD18786@cthulhu.home.robinhill.me.uk \
--to=robin@robinhill.me.uk \
--cc=linux-raid@vger.kernel.org \
--cc=linuxlist@gautschi.net \
/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).