Re: WITHOUT_PROFILE=yes by default

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Fri, 2 Dec 2011 14:37:16 -0800
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_at_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
Received on Fri Dec 02 2011 - 21:37:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC