EMERGE DEFAULT OPTS/pt-br

As variáveis EMERGE_DEFAULT_OPTS são anexadas à linha de comando do emerge. Muitas vezes são usadas para permitir operações concorrentes do emerge através das opções  e , que informam ao Portage quantas compilações de pacotes paralelos podem ser usadas e até qual carga do sistema (load average) o paralelismo pode ser usado.

Parallel builds
With  (short form:  ),  runs N jobs at a time (without an argument,   will flood the processor with as many jobs as possible, and is not recommended). A typical value for N would be equal to the number of cores.

For example, to run up to three jobs in parallel:

For more information, see the EMERGE_DEFAULT_OPTS article.

When used with  (short form:  ), emerge will try to keep the load average of the system less than X.Y, a floating point number. If  is set as well, then it will run up to the limit indicated by that parameter.

The load average value is the same as displayed by or, and for an N -core system, a load average of   would be a 100% load. Another rule of thumb here is to set  which will limit the load to 90%, thus maintaining responsiveness.

These two settings are suited for long emerges which include multiple source code files to make the most of the  parameter. They can also cause emerge errors in some cases, so use with caution and be prepared to comment these out if problems arise.