I was checking out CS and now have a question: how much RAM do your workstations generally have and how many jobs you launch to compile CS?
During building full version of CS I've experienced by trial and error (I mean OOM killer

Does that mean you need to plan for about 6 GB of RAM per job at critical times and perhaps even up to 8 GB? This means that you need to have 64 GB of RAM at a minimum to comfortably use the full power of 12-core CPU and additionally 10-20 GB of swap reserved for critical sections of compilation.
I am also curious as to what causes such huge memory requirements. I am not proficient in C++ yet and I don't have a lot of experience writing software in this language. I tried to find info by searching for "c++ compilation ram usage" but didn't find any substantial evidence, measurements and logical conclusions on the topic. Perhaps you can provide some educated guesses?