Skip to content

Commit 6a78322

Browse files
committed
README: add a small picture to better explicit how it is used
1 parent 5045d27 commit 6a78322

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,31 @@ memory (and avoid being killed by the Linux OOM killer). Basically,
2020
our build tool spawns a process-watcher at startup and kills it at
2121
exit 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+
2348
As process-watcher identifies a process tree by the PID of the top
2449
process, it is suitable to identify a particular process tree and not
2550
something like "all processes that are named gcc on the system", which

0 commit comments

Comments
 (0)