Chinaunix首页 | 论坛 | 博客
  • 博客访问: 599585
  • 博文数量: 356
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2287
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-08 17:08
文章分类

全部博文(356)

文章存档

2023年(3)

2022年(7)

2021年(33)

2020年(47)

2019年(36)

2018年(221)

2017年(1)

2015年(1)

2013年(7)

我的朋友

分类: LINUX

2018-09-13 13:29:01

分配dir大小,

dir个数的计算,是根据当前Vol的大小 / cache_config_min_average_size来计算的(缓存对象平均最小尺寸,默认是8000字节).

bucket数目为dir/DIR_DEPTH也就是一个bucket包含4dir.

segment数目:65535dir对应一个segment.也就意味着每个segment最多包含 dir/DIR_DEPTHbucket.


int
CacheSync::mainEvent(int event, Event *e)

  if (buf == nullptr) {
          buf      = (char *)ats_memalign(ats_pagesize(), buflen);
          buf_huge = false;
        }
分配失败:
Fatal: couldn't allocate 49878302720 bytes at alignment 4096 - insufficient memory

阅读(641) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~