MAKEOPTS

The MAKEOPTS variable content as defined in is passed on to the make jobs launched from Portage and is most often used to allow parallel jobs.

The parallel jobs entry ensures that, when is invoked, it knows how many parallel sessions it is allowed to trigger (when parallel sessions are possible of course). This is completely within the scope of that make command and has no influence on parallel installations (which is triggered through with  option). The recommended value is the number of logical processors in the CPU.

On a system with one i7 CPU the following command shows the numbering of the available logical CPUs.

In this example 8 CPUs are available, hence one can set the MAKEOPTS variable to:

For example, to measure the time needed to compile the package midnight commander with for 4 threads one can run: