4paradigm / 4paradigm/OpenMLDB

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

Offen
#882 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @aceforeverd Auf GitHub ansehen
documentation enhancement
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

## 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cmake, cpp
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.