段蒙-新一代数据架构 (2).pdf
1、DataFunConDataFunCon#20242024Velox Memory ManagementVelox Memory Management段蒙 腾讯 高级工程师孟晓烜 Meta 软件工程师自我介绍 腾讯大数据Native Engine团队负责人 培养了3位Velox贡献者 目前贡献了147个commit,国内领先 Top Velox贡献者,#10,国内#1 Apache Uniffle founder&PPMCContentsContents目录目录Velox介绍Velox内存管理Spilling未来规划VeloxVelox介绍介绍Velox是什么Meta开源的,C+开发的,高性能
2、查询引擎库:Vectorized execution engine Push-based pipeline model 通用API,扩展性强,可重用 最终的物理计划作为输入 专注单机上查询执行优化,adaptive No parser,no optimizerVelox的愿景Velox概览 Type Scalar,map,struct,array.Vector Arrow-compatible,columnar memory layout Flat,dictionary,constant Expression Eval Fully vectorized,adaptive,peeling,con
3、stant folding Operators Join,Aggregation,OrderBy Resource Management Memory,cache,spilling,threads Functions Scalar,aggregate functions I/O Connectors,filesystem,file format,serializerVelox执行https:/prestodb.io/blog/2024/06/24/diving-into-the-presto-native-c-query-engine-presto-2-0/VeloxVelox MemoryM
4、emory ManagementManagement设计原则Velox内存系统是为在固定的内存资源中,有效、安全的支持运行高度多样性查询工作负载而设计的:内存分配 优化小块内存管理 优化查询内存分配模式 内存共享 查询级别的细粒度的内存使用追踪 运行的查询之间的公平内存共享与仲裁 内存容量 总容量限制 查询和缓存之间动态内存共享内存管理器 内存池(Memory Pool),内存使用容量的追踪与分配 仲裁器(Memory Arbitrator),内存容量的仲裁与共享 分配器(Memory Allocator),物理内存分配和总容量控制内存池内存池类型:Root pool,内存容量控制 Aggre





点击查看更多