4paradigm / 4paradigm/OpenMLDB
build: compile take too much memory and might freeze the host machine
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
## Brief
@Shouren have made some test for that:
https://github.com/4paradigm/OpenMLDB/pull/870#discussion_r766343266
turns out compile may easy to down if
- host memory is low, say 4G
- enable parallel build, current default to `$(nproc)`
especially compile targets like `avg_by_category_def.cc`
## Other
Should documented minimal requirements of compilaion
贡献指南
调研方向
Look at the build configuration, likely in CMakeLists.txt, to understand the parallel build settings. Examine the problematic compilation target 'avg_by_category_def.cc' and similar files to gauge memory usage. The goal is to adjust build parallelism or document minimal memory requirements to prevent host freezes during compilation.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cmake, cpp
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100