All of lore.kernel.org
 help / color / mirror / Atom feed
* controlling erasure code chunk size
@ 2014-02-02 15:15 Loic Dachary
  2014-02-02 16:18 ` Andreas Joachim Peters
  0 siblings, 1 reply; 10+ messages in thread
From: Loic Dachary @ 2014-02-02 15:15 UTC (permalink / raw)
  To: Samuel Just; +Cc: Ceph Development, Andreas Joachim Peters

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

[cc' ceph-devel]

Hi Sam,

Here is how chunks are expected to be aligned:

https://github.com/ceph/ceph/blob/4c4e1d0d470beba7690d1c0e39bfd1146a25f465/src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.cc#L365

 unsigned alignment = k*w*packetsize*sizeof(int);
  if ( ((w*packetsize*sizeof(int))%LARGEST_VECTOR_WORDSIZE) )
    alignment = k*w*packetsize*LARGEST_VECTOR_WORDSIZE;
  return alignment;

If you are going to encode small objects, it may very well lead to oversized chunks if packetsize is large. At the moment the default is 3072

https://github.com/ceph/ceph/blob/4c4e1d0d470beba7690d1c0e39bfd1146a25f465/src/common/config_opts.h#L406

A value I picked when experimenting with 1MB objects encoding ( http://dachary.org/?p=2594 ). 

I'm not entirely sure why the alignment is calculated the way it is. Andreas certainly has a better understanding on this topic.

Cheers

-- 
Loïc Dachary, Artisan Logiciel Libre


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-02-04 17:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-02 15:15 controlling erasure code chunk size Loic Dachary
2014-02-02 16:18 ` Andreas Joachim Peters
2014-02-02 22:45   ` Samuel Just
2014-02-02 23:27     ` Andreas Joachim Peters
2014-02-02 23:33       ` Samuel Just
2014-02-04 16:17         ` Loic Dachary
2014-02-04 17:01           ` Andreas Joachim Peters
2014-02-03 10:57       ` Loic Dachary
2014-02-03 11:35     ` Loic Dachary
2014-02-03 18:15       ` Samuel Just

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.