From: NeilBrown <neilb@suse.de>
To: xxiao <xiaoxianghua@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: crypto/xor.c and lib/raid6 to improve raid5/6 performance?
Date: Wed, 16 Oct 2013 17:28:25 +1100 [thread overview]
Message-ID: <20131016172825.3a06fe99@notabene.brown> (raw)
In-Reply-To: <CAP7cwtumKJ5t3cb0bACaVtGVKXT2jibzWzdjqY2Si=uNjDg1KQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]
On Fri, 11 Oct 2013 15:20:32 -0500 xxiao <xiaoxianghua@gmail.com> wrote:
> I'm looking for ways to speed up RAID calculations(e.g XOR for RAID5) plus
> offloading them from CPU as much as possible. During kernel boot up I
> noticed two outputs:
>
> crypto/xor.c:
> xor: measuring software checksum speed
> 8regs : 3379.000 MB/sec
> 8regs_prefetch: 2969.000 MB/sec
> 32regs : 3398.000 MB/sec
> 32regs_prefetch: 3054.000 MB/sec
> xor: using function: 32regs (3398.000 MB/sec)
>
> lib/raid6:
> raid6: altivecx1 1470 MB/s
> raid6: altivecx2 1820 MB/s
> raid6: altivecx4 2756 MB/s
> raid6: altivecx8 2874 MB/s
> raid6: int64x1 480 MB/s
> raid6: int64x2 832 MB/s
> raid6: int64x4 1221 MB/s
> raid6: int64x8 1160 MB/s
> raid6: using algorithm altivecx8 (2874 MB/s)
> raid6: using intx1 recovery algorithm
>
> However I'm unclear how the md drivers(especially RAID5, and/or RAID6) can
> benefit from these code, can I use them to accelerate RAID5/6's XOR with
> these code somehow?
>
RAID5 and RAID6 already use exactly this code to perform xor and RAID6
calculations.
If a platform has some sort of co-processor which can do these calculations,
md can certainly use that too.
Some of the relevant code is in "linux/crypto/async_tx"
Other code is elsewhere in the tree. looks for "adma" for "advanced
DMA" in file names.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2013-10-16 6:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 20:20 crypto/xor.c and lib/raid6 to improve raid5/6 performance? xxiao
2013-10-16 6:28 ` NeilBrown [this message]
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=20131016172825.3a06fe99@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=xiaoxianghua@gmail.com \
/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.