4paradigm / 4paradigm/OpenMLDB

build: compile take too much memory and might freeze the host machine

オープン
#882 コメント 2 件 リアクション 0 件 担当者 1 名 @aceforeverd が担当を希望しています GitHub で見る
documentation enhancement
主要言語
C++
スター
1.7k
フォーク
331
平均マージ
12日 12時間
マージ済み PR(30日)
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。