Re: GCC on multiprocessor platform?

From: Marco S Hyman (marc_at_snafu.org)
Date: 06/04/05


Date: Sat, 04 Jun 2005 01:17:03 GMT

m <sq8ijk@poczta.onet.pl> writes:

> How to use more than one cpu (I am using bsd.mp) for building something
> e.g. make

Make sure that there are enough processes running to require all available
cpus. On my two processor system, for example, it takes something
like 8 concurrent compiles to keep both processors busy most of the time.

Different disk/disk controllers/memory bandwidth/etc will make your
system have different requirements.

The number for your system can be found by trial and error.

// marc



Relevant Pages

  • Re: Multiple CPU and Load Average
    ... On Saturday 20 May 2006 08:01, Dave Vandervies stood up and spoke the ... Suppose further that there are two processes running, ... The load average is the average over the last N seconds of the ... (So if loadavg < #CPUs, you have CPU cycles that aren't getting used, ...
    (comp.os.linux.misc)
  • Re: Multiple CPU and Load Average
    ... Suppose further that there are two processes running, ... calculation loop, each working 100% hard. ... The load average is the average over the last N seconds of the ... (So if loadavg < #CPUs, you have CPU cycles that aren't getting used, ...
    (comp.os.linux.misc)
  • Re: top output: 8 cpus busy in user-mode activities, 6 processes running
    ... 8 cpus busy in user-mode activities, 6 processes running ... 0:00   3 oracle ...
    (RedHat)
  • Re: Multiple CPU and Load Average
    ... Suppose further that there are two processes running, ... calculation loop (no swapping, I/O or network), each working 100% hard. ... The load average is the average number of processes that are either running or ready to be run. ... If both CPUs are 100% busy, there must always be at least two processes ready to run, at all times, one for each CPU. ...
    (comp.os.linux.misc)