4paradigm / 4paradigm/OpenMLDB
build: compile take too much memory and might freeze the host machine
- Langage dominant
- C++
- Étoiles
- 1.7k
- Forks
- 331
- Merge moyen
- 12 j 12 h
- PR mergées (30 j)
- 1
Description
## 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cmake, cpp
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100