I've recently noticed that once I start building the Visual Studio solution I'm working with (~200 C++ projects), I get a very large number of cl.exe processes.
I'm not surprised by the fact of several cl.exe running in parallel, because my projects are set up with /MP
option.
But I would expect that their number would be limited by the following setting in the Visual Studio "Options".
I presume that running tens of processes in parallel on the 4-core PC is not the most efficient way to build the solution.
So, basically I've got two questions:
- Why do I observe such behavior?
- Is it possible to limit the number of
cl.exe
instances?
P.S. I normally compile my solution with Visual Studio 2013 Update 4, but the same behavior can be observed with Visual Studio 2017.
/MP
option (I often need to build a single or several projects whose compilation by itself takes quite a time). – Spherule