Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2011 14:37:16 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Max Khon <fjoe@samodelkin.net>
Cc:        Doug Barton <dougb@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: WITHOUT_PROFILE=yes by default
Message-ID:  <20111202223716.GA35140@troutmask.apl.washington.edu>
In-Reply-To: <CADe0-4nj=ZvfPrT=9=m9hQhsADn9--5VFoAxTncGasQQTZN=0g@mail.gmail.com>
References:  <CADe0-4=DwzFj1NbJTeq3p92YGF_5yjhc-Yajn-hHNB_aca1k2g@mail.gmail.com> <20111202015133.GA4111@dragon.NUXI.org> <CADe0-4n2rXvoo4K%2BCHd-JBCHJ56OdTJTpzsF1r2X1yvcLt5CEA@mail.gmail.com> <20111202064132.GC88903@troutmask.apl.washington.edu> <4ED8776F.9060301@FreeBSD.org> <20111202072349.GA89183@troutmask.apl.washington.edu> <20111202083501.GA73959@dragon.NUXI.org> <CADe0-4nj=ZvfPrT=9=m9hQhsADn9--5VFoAxTncGasQQTZN=0g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 02, 2011 at 04:21:14PM +0700, Max Khon wrote:
> David,
> 
> On Fri, Dec 2, 2011 at 3:35 PM, David O'Brien <obrien@freebsd.org> wrote:
> > On Fri, Dec 02, 2011 at 11:56:31AM +0700, Max Khon wrote:
> >> You still failed to name a single compelling reason to leave profiled
> >> libs even in -CURRENT.
> >
> > Sorry Joe, I don't think your reasoning is compelling.
> > I'm sure you know how to stick "NO_PROFILE=true" in your /etc/src.conf.
> >
> > How far do you want to take this? ??By this reasoning we should set all
> > the knobs to "NO" to speed up the build. ??I mean we're all competent
> > code builders running FreeBSD-current and know how to enable knobs in
> > /etc/src.conf.
> >
> > Is speeding up the build import important to you then the default
> > base system being an comfortable featureful development environment?
> 
> The most important thing is to have reasonable defaults.
> Having WITH_PROFILE by default does not seem to be a reasonable default to me.
> 

Common options set in make.conf

WITHOUT_MODULES="YES"
WITHOUT_NLS="YES"
WITHOUT_LIB32="YES"
WITH_BSD_GREP="YES"

Here's some numbers to consider:

WITH_PROFILE="YES"
rm -rf /usr/obj/*
time make -j2 buildworld
     6678.61 real      9752.40 user      1630.71 sys

WITHOUT_PROFILE="YES"
rm -rf /usr/obj/*
time make -j2 buildworld
     6221.21 real      9171.41 user      1471.23 sys

WITH_PROFILE="YES"
WITHOUT_CLANG="YES"
     3388.27 real      4804.24 user      1160.12 sys

If one wants to speed up buildworld, it would seem to
be prudent to compile clang with profiled libraries
to determined why it is such a time sync.

>From dmesg.boot:

CPU: AMD Opteron(tm) Processor 248 (2191.96-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf5a  Family = f  Model = 5  Stepping = 10
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!>
real memory  = 8589934592 (8192 MB)
avail memory = 8203833344 (7823 MB)

-- 
Steve



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