EMERGE DEFAULT OPTS/ru

The EMERGE_DEFAULT_OPTS variable entries are appended to the emerge command line. It is often used to allow for concurrent emerge operations through the  and   options, which tell Portage how many parallel package builds can be used and up to what system load (load average) the parallelism can be used.

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.