Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 1998 16:34:13 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        current@FreeBSD.ORG, jdp@polstra.com
Subject:   Re: Does "make -j4 buildworld" actually help anybody?
Message-ID:  <199807100634.QAA09859@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I recently got what I thought would be a perfect box to take advantage
>of "make -j4": a PII/400 with 128 MB of RAM.  But "-j4" slows things
>down considerably.  Under identical conditions, the timings were:

I think it only helps with multiple CPUs and enough disk parallelism
to prevent too many extra seeks.

>Without -j4:
>    real    47m14.643s
>    user    36m7.531s
>    sys     12m20.942s

It is hard to improve on a negative amount of time waiting for the disks
:-).  I still haven't committed a fix for fork time getting counted twice.
Here is a cryptic version:

diff -c2 kern_resource.c~ kern_resource.c
*** kern_resource.c~	Fri May 29 13:02:39 1998
--- kern_resource.c	Fri Jul 10 16:26:57 1998
***************
*** 523,526 ****
--- 523,527 ----
  		 */
  		microuptime(&tv);
+ 		switchtime = tv;	/* XXX */
  		totusec += (tv.tv_usec - p->p_switchtime.tv_usec) +
  		    (tv.tv_sec - p->p_switchtime.tv_sec) * (int64_t)1000000;

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807100634.QAA09859>