bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: [RFC]serialize the output of parallel make?


From: Howard Chu
Subject: Re: Fwd: [RFC]serialize the output of parallel make?
Date: Fri, 30 Jul 2010 17:52:09 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; rv:1.9.3a6pre) Gecko/20100708 Firefox 3.6

Chiheng Xu wrote:
---------- Forwarded message ----------
From: Chiheng Xu<address@hidden>
Date: Fri, Jul 30, 2010 at 6:02 PM
Subject: Re: [RFC]serialize the output of parallel make?
To: Tim Murphy<address@hidden>


On Fri, Jul 30, 2010 at 5:54 PM, Tim Murphy<address@hidden>  wrote:
Hi,

The cost to the system of even starting a shell to invoke a recipe is
so huge compared to the time needed to reserve a semaphore that it is
insignificant in comparison.

The amount of contention is limited by -j i.e. by how many processes
there are ( 2 * CPUs is usually considered reasonable) and by how long

2x is too much. 1.5x has been the best in my experience, any more than that and you're losing too much CPU to scheduling overhead instead of real work. Any less and you're giving up too much in idle or I/O time.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]