From: Loic Dachary Date: Fri, 13 Dec 2013 23:41:03 +0000 (+0100) Subject: osd: set erasure code packet size default to 2048 X-Git-Tag: v0.75~65^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a36bc5fabfdfe4ffa1eb292edb71c8cb5f54fb3d;p=ceph.git osd: set erasure code packet size default to 2048 As shown in https://www.usenix.org/legacy/events/fast09/tech/full_papers/plank/plank_html/ under "Impact of the Packet Size", the optimal for is in the order of 1k rather than the current default of 8. Benchmarks are required to find the actual optimum. Signed-off-by: Loic Dachary --- diff --git a/src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.h b/src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.h index fc76ed7b1e21..a5f4c9f2476e 100644 --- a/src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.h +++ b/src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.h @@ -125,7 +125,7 @@ public: static const int DEFAULT_K = 7; static const int DEFAULT_M = 3; static const int DEFAULT_W = 8; - static const int DEFAULT_PACKETSIZE = 8; + static const int DEFAULT_PACKETSIZE = 2048; int *bitmatrix; int **schedule; int packetsize; @@ -177,7 +177,7 @@ public: static const int DEFAULT_K = 2; static const int DEFAULT_M = 2; static const int DEFAULT_W = 7; - static const int DEFAULT_PACKETSIZE = 8; + static const int DEFAULT_PACKETSIZE = 2048; int *bitmatrix; int **schedule; int packetsize;