File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,31 @@ memory (and avoid being killed by the Linux OOM killer). Basically,
2020our build tool spawns a process-watcher at startup and kills it at
2121exit time; it queries it after each possibly-large subjob.
2222
23+ Buildtool Make#1 Make#2
24+ | (and subprocesses thereof)
25+ |
26+ |-------->|
27+ | |->|
28+ | |--->|
29+ | | | |
30+ |------------------>|
31+ | | | | |
32+ | |<-|-| |->|
33+ | | | | |
34+ | | | |<-|
35+ |<------------------|
36+ | | |
37+ | |<-|
38+ | |
39+ |<--------|
40+
41+ Question: how much memory was needed for make#1? for make#2?
42+ Incidently, what is the maximum parallelization we can do without
43+ exceeding the limits of the system memory?
44+
45+ In the above case, our Buildtool can ask process-watcher about the
46+ memory envelope of Make#1 and Make#2 independently.
47+
2348As process-watcher identifies a process tree by the PID of the top
2449process, it is suitable to identify a particular process tree and not
2550something like "all processes that are named gcc on the system", which
You can’t perform that action at this time.
0 commit comments