More Related Content
Similar to 腾讯大讲堂45 解剖ttc (20)
More from George Ang (20)
腾讯大讲堂45 解剖ttc
- 1. 大 堂腾 讯 讲
第四十五期
研 管理部发
大 堂主 :讲 页 http://km.oa.com/class
与 互 :讲师 动 http://km.oa.com/group/class
- 4. 背景
互联网应用的数据访问特点
海量 并发 热点
存储系统的性能瓶颈
Tencent Table Cache
TTC 是提供高速数据访问服务的通用 cache server 。特点是采用
epoll 和异步状态机模式提高并发能力。
- 8. 架构原理 3
处理路径的抽象允许随时 attach 新的处理
单元,扩展程序功能
Cache 系统和数据访问 helper 分离,使得
系统支持多种数据源
datasource 分发允许后端数据离散分布
- 10. 内存管理 2 特性
Hash Bucket
Node Index
Node Group
Virtual Node
LRU List
- 14. 内存管理 6 变长分配器
摈弃老的定长数据
chunk 概念,不再采
用定长存储结构,转
而采用变长分配机制
变长分配采用类似
ptmalloc 的 bins 分
配策略,使得内存分
配、释放非常高效