slab allocation:整理内存以进行利用
page:分配给slab用于再次分割为chunk的内存空间
chunk:用于缓存缓存对象的空间
slabclass:特定大小的chunk组合而成的组
缓存不能超过1M
最小不能少于1k
-f<factor> #增长因子
Use <factor> as the multiplier for computing thesizes of memory chunks that items are stored in. A lower value
mayresult in less wasted memory depending on the total amount of memory availableand the distribution of item
sizes. The default is 1.25.
两个chunk之间的倍数关系通过facts来配置
[root@node110 ~]# memcached -u memcached -vv
slab class 1:chunk size 96 perslab 10922
slab class 2:chunk size 120 perslab 8738 #这两者之间的关系为1.25倍
slab class 3:chunk size 152 perslab 6898
slab class 4:chunk size 192 perslab 5461
slab class 5:chunk size 240 perslab 4369
slab class 6:chunk size 304 perslab 3449
slab class 7:chunk size 384 perslab 2730
slab class 8:chunk size 480 perslab 2184
slab class 9:chunk size 600 perslab 1747
slab class 10:chunk size 752 perslab 1394
slab class 11:chunk size 944 perslab 1110
slab class 12:chunk size 1184 perslab 885
slab class 13:chunk size 1480 perslab 708
slab class 14:chunk size 1856 perslab 564
slab class 15:chunk size 2320 perslab 451
slab class 16:chunk size 2904 perslab 361
slab class 17:chunk size 3632 perslab 288
slab class 18:chunk size 4544 perslab 230