All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: Ethan Miller <elm@cs.ucsc.edu>, Kevin Greenan <kmgreen2@gmail.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: About erasure code optimizations for ARM
Date: Thu, 31 Jul 2014 17:42:09 +0545	[thread overview]
Message-ID: <53DA2F15.5060605@dachary.org> (raw)

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

Hi,

When using the jerasure plugin for erasure coded placement groups, it takes advantage of http://en.wikipedia.org/wiki/SIMD when running on an Intel processor. It would be nice to also use http://en.wikipedia.org/wiki/NEON_%28instruction_set%29 when running on an ARM processor.

The optimizations themselves are in the https://bitbucket.org/jimplank/gf-complete library. At compile time Ceph creates different flavors of the plugin ( https://github.com/ceph/ceph/blob/firefly/src/erasure-code/jerasure/Makefile.am#L73 ) depending on the capabilities of the compiler to generate the appropriate instructions for SIMD. At runtime Ceph selects the plugin ( https://github.com/ceph/ceph/blob/firefly/src/erasure-code/jerasure/ErasureCodePluginSelectJerasure.cc#L41 ) depending on the CPU capabilities ( https://github.com/ceph/ceph/blob/firefly/src/arch/intel.c#L55 ). 

NEON detection already exists in Ceph ( https://github.com/ceph/ceph/blob/firefly/src/arch/neon.c#L41 ) and adding more would be trivial.

A (very) naive approach would be to add #ifdef NEON in places such as https://bitbucket.org/jimplank/gf-complete/src/c25310f215bc97a37944339d331b000ba806d505/src/gf_w4.c?at=master#cl-492 when and if a function such as https://bitbucket.org/jimplank/gf-complete/src/c25310f215bc97a37944339d331b000ba806d505/src/gf_w4.c?at=master#cl-922 can be implemented with NEON instructions instead of SIMD.

Maybe it is more complex and it needs some kind of rearchitecture ?

Cheers
-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

                 reply	other threads:[~2014-07-31 11:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=53DA2F15.5060605@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=elm@cs.ucsc.edu \
    --cc=kmgreen2@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.