]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Change crush_ln to provide 32 more digits. 3392/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Fri, 16 Jan 2015 08:10:17 +0000 (16:10 +0800)
committerSage Weil <sage@redhat.com>
Thu, 22 Jan 2015 18:17:02 +0000 (10:17 -0800)
commit35fcb04e2945717cf5cfe150b9fa89cb3d2303a1
tree03ad2b0c76bf5f5408ccb334d9ef58e7d5e96859
parent6289912418c4a3597a11778bcf29ed5415117ad9
Change crush_ln to provide 32 more digits.

32 more digits(more precision) were given by crush_ln, so we dont
 need to do left shift in bucket_straw2_choose now.

This change will slightly improve the quality of distribution.

expect                  169.664
osd     weight  count   adjusted
0       1       179     179
1       1.75    291     166
2       3.062   507     165
3       5.359   937     174
4       9.379   1581    168
5       16.41   2771    168
6       28.72   4847    168
7       50.27   8690    172
8       87.96   14924   169
9       153.9   26069   169
10      269.4   45706   169
11      471.4   79754   169
12      825     139847  169
13      1444    245707  170
14      2527    428190  169
std dev 12.4895
     vs 12.6005 (expected)

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/crush/crush_ln_table.h
src/crush/mapper.c