From owner-freebsd-questions@FreeBSD.ORG Thu Mar 13 12:02:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 487EE1065676 for ; Thu, 13 Mar 2008 12:02:34 +0000 (UTC) (envelope-from juliushuang@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.233]) by mx1.freebsd.org (Postfix) with ESMTP id E75DD8FC15 for ; Thu, 13 Mar 2008 12:02:33 +0000 (UTC) (envelope-from juliushuang@gmail.com) Received: by wr-out-0506.google.com with SMTP id c49so2754427wra.19 for ; Thu, 13 Mar 2008 05:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references:mime-version:x-gpgmail-state:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; bh=nB7mRxmxp9X3/Oi5e9v8cAZ1b21z+vlgPKmdPIviHn0=; b=nTc7MPSY/YKVu0Kpn9/avHTEzhB889M6URyVk7S13Tznpo3xn98cGm6NTAuEHBlEHX38PKryHo1tLQOW11OJhD8yig9akxmYw3n8+JFcA1l9QeY+Kh9RM2DuzV9ioBWY50XfWgkKZdpqLeHZ9Jomjics/Ps/7C9TI1dp2WzvmQw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:x-gpgmail-state:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=rWHUVKbhHKj6U/7THkRwHd587AUedQDOx78x+qwL94UiNJnT/rwYNSBf2VZt8gMSnCddn+6gqVZnWC3/2LFDaTsK+vBCZQhj2uIa9mjm6XfJKdFl+HhWme3JgPXjB2G/Ek7C7LaF0Yxi6JjEpsNSri1FpYRgl99ac8njwustgKk= Received: by 10.114.154.1 with SMTP id b1mr9158949wae.34.1205409752402; Thu, 13 Mar 2008 05:02:32 -0700 (PDT) Received: from ?59.124.104.176? ( [59.124.104.176]) by mx.google.com with ESMTPS id m26sm31180050pof.8.2008.03.13.05.02.29 (version=SSLv3 cipher=OTHER); Thu, 13 Mar 2008 05:02:30 -0700 (PDT) In-Reply-To: <9A6A62B6B84859469F3EBB5F09D818CA219E98@cernxchg50.cern.ch> References: <47D9004D.5070407@planet.nl> <9A6A62B6B84859469F3EBB5F09D818CA219E98@cernxchg50.cern.ch> Mime-Version: 1.0 (Apple Message framework v753) X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <87F851FC-750A-478F-BD01-1B7FED69BF7A@gmail.com> Content-Transfer-Encoding: 7bit From: Julius Huang Date: Thu, 13 Mar 2008 20:02:24 +0800 To: Luca Presotto X-Mailer: Apple Mail (2.753) Cc: marcin.koziuk@planet.nl, freebsd-questions@freebsd.org Subject: Re: Tuning make.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 12:02:34 -0000 Hi, On Mar 13, 2008, at 18:58 , Luca Presotto wrote: >> You're *really* wasting your time. > I supposed that! > > >> Your system is doing no cpu cycles at all for most of >> the time anyway. [cut]Also, makeopts and -pipe just make >> _compiling_ faster, not the >> applications themselves!!!. > > I agree with everything. In any case I think that a faster > compiling will really be a good thing. > I have been reading another time the man of make.conf and I still > have some doubts. > Neither in the example either in the man page there is any > reference to "MAKEOPTS". Changing from -j1 to -j3 would really be a > huge difference! > Isn't -j depend on how many cpu/core and a faster harddisk / raid? In our small lab we used to install New system on some Very Old SCSI for testing (18G SCSI 2 I think). It takes 2x to 3x more time to build world / kernel than a New SCSI Ultra 320 HD on the Same machine no matter what we put in -j. Faster / Higher IO through put always compile faster. Also there may be problem buildworld and buildkernel if use -j IIRC, other method is required to speed up compiler when build world / kernel. Like not compile everything except what is Really need to be recompile. > To be able to set this is very important. > Then I don't want an ultra tweaked make.conf like gentooers do. > Just a reasonable one. > (And you have convinced me, I won't recompile everything. Just to > have a good compiling when I will be upgrading) > > I have some doubts about the correct syntax, the man is ambiguous > in this point. > If I write CPUTYPE= core2 will it automatically sets all the best > safe CFLAGS for my core or just set the -march=core2 > Should my make.conf be like: > MAKEOPTS==-j3 > CPUTYPE=core2 > CFLAGS= --O2 -pipe -fno-strict-aliasing > > or just: > MAKEOPTS==-j3 > CPUTYPE=core2 > > or maybe: > > MAKEOPTS==-j3 > CPUTYPE=core2 > CFLAGS+= --O2 -pipe -fno-strict-aliasing > I remember seeing some thread in Stable@, Question@, Performance@ discuss about best CPUTYPE on AMD64 not long ago. J.H. >> Please take a look at the following pages, they have a lot more >> information about this matter ;) >> http://funroll-loops.info/ >> http://bugs.gentoo.org/show_bug.cgi?id=74072 > > Actually that's really funny!! I think that's why there are so many > pages about gentoo and almost none about other OSes. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org"