From owner-freebsd-current@FreeBSD.ORG Tue Mar 2 19:41:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 076B516A4CE; Tue, 2 Mar 2004 19:41:10 -0800 (PST) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3901C43D3F; Tue, 2 Mar 2004 19:41:07 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86])i233f5nX016022; Wed, 3 Mar 2004 14:41:05 +1100 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i233f2sJ005477; Wed, 3 Mar 2004 14:41:03 +1100 Date: Wed, 3 Mar 2004 14:41:01 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Garance A Drosihn In-Reply-To: Message-ID: <20040303140104.F5143@gamplex.bde.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org cc: Robert Watson Subject: Re: buildworld times X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 03:41:10 -0000 On Tue, 2 Mar 2004, Garance A Drosihn wrote: > At 5:18 PM -0500 3/2/04, Robert Watson wrote: > >On Wed, 3 Mar 2004, Bruce Evans wrote: > > > > >> > (2) If we reran these tests with 5.2-CURRENT, how would the numbers > >> > change? > >> > >> I would be surprised if they changed much. buildworld is mostly a gcc > >> cpu hog benchmark, and about the only significant thing the kernel can > >> do to speed up gcc is to reduce its memory contention. > > > >Interestingly, on the same hardware using 5.2-CURRENT GENERIC - WITNESS, > >INVARIANTS, et al (with ULE since that's the default now): > > > > Real User Sys > >default 2304.16 1834.51 474.96 # slower indentometer: |- >|- >|- >|- >|- >|- >|- >|- >|- >| > >-j 2 1611.61 2715.89 684.97 # faster! > >-j 4 1416.11 2988.32 878.40 # faster! > >-j 6 1399.92 3090.95 955.74 # fastest! > >-j 8 1405.38 3151.92 1003.69 # fasterish! > > > >Note that this was a 5.2.1 source tree built on a 5.2-current system, so > >isn't a perfect comparison. I should have used a 5.2.1-current world > >changing out only the kernel. > > When did the change to make go in? That would probably result in > a difference in speed, especially for -j builds. The change to add > a SIGCHLD handler... > > Bah, I can look it up as much as anyone else can. From > http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/make/main.c > > it looks like that change went in right after 5.2-release. So > that is probably a part of what you're seeing. Yes, I forgot that des committed my quick fix for -j. All benchmarks involving make -j were invalid before this change. IIRC, fixing this speeded up make -j4 on a UP system by about 15%, so it was only 0.5% slower than make without -j. I would have thought that the bug cost much less on SMP systems, because with real parallelism there is more chance of at least one of the makes not sleeping. However, it costs more with It's interesting that the -j6 case has almost caught up with my best buildworld time 2 years ago. It's still a fair way behind since it doesn't do installworld (or profiling libraries IIRC). %%% [configuration not carefully recorded... Athlon XP1600 overclocked 512MB... and of course current sources at the time of the run... installworld goes to an async mounted temporary partition so it doesn't take very long] -------------------------------------------------------------- >>> elf make world completed on Fri Jan 4 00:00:15 EST 2002 (started on Thu Jan 3 23:37:04 EST 2002) -------------------------------------------------------------- 1390.18 real 913.56 user 232.63 sys 13076 maximum resident set size 1093 average shared memory size 1205 average unshared data size 129 average unshared stack size 9055054 page reclaims 21976 page faults 0 swaps 31885 block input operations 4960 block output operations 0 messages sent 0 messages received 4 signals received 346041 voluntary context switches 423794 involuntary context switches %%% Bruce