All of lore.kernel.org
 help / color / mirror / Atom feed
* About erasure code optimizations for ARM
@ 2014-07-31 11:57 Loic Dachary
  0 siblings, 0 replies; only message in thread
From: Loic Dachary @ 2014-07-31 11:57 UTC (permalink / raw)
  To: Ethan Miller, Kevin Greenan; +Cc: Ceph Development

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-31 11:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 11:57 About erasure code optimizations for ARM Loic Dachary

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.