DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd July 2008
thevirtuesofxen thevirtuesofxen is offline
New User
 
Join Date: Jul 2008
Posts: 6
Default quick question about optimizations in /etc/make.conf

Hi!
I'm still learning my way around FreeBSD. I just installed a system with Xorg and GNOME. I am about to rebuild world, and I want to enable the CPU optimizations. I successfully rebuilt world on Gentoo using optimizations, but I took a shortcut and used 'march=native'. I don't know how to find the cpu info on FreeBSD. I remember it was 'cat /proc/cpuinfo' on Gentoo, and I know that I have a single core Prescott CPU that accepts SSE3 instruction. Could somebody get me started on these optimizations? I know people say that the speed increase is negligible, but I notice a huge difference.
Reply With Quote
  #2   (View Single Post)  
Old 2nd July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin Tournoij
Tcpdump Spy
 
Join Date: Apr 2008
Location: Ireland
Posts: 2,245
Default

% dmesg | grep -A 2 CPU:
Reply With Quote
  #3   (View Single Post)  
Old 3rd July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

See the comments in /usr/share/examples/etc/make.conf for what you can put for CPUTYPE. Beyond setting CPUTYPE, you really shouldn't mess with compiler optimisation flags in FreeBSD. You'll break more things than you'll "fix".
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #4   (View Single Post)  
Old 7th July 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

You may also be interested by this live example of mine make.conf:
http://toya.net.pl/~vermaden/text/make.conf
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #5   (View Single Post)  
Old 11th July 2008
LateNiteTV LateNiteTV is offline
Port Guard
 
Join Date: Jul 2008
Posts: 19
Default

the only changes i made in my make.conf was the cputype and the cflags option which is set to "-O2 -pipe".
Reply With Quote
  #6   (View Single Post)  
Old 11th July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Remove your CFLAGS setting. The default includes -O2, and a bunch of others that you just stripped out with your setting.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #7   (View Single Post)  
Old 15th July 2008
fallen fallen is offline
New User
 
Join Date: Jul 2008
Posts: 3
Default

What are the defaults ?

Cause I've put -O -pipe to my servers (faster compilation than -O2)

Thanks.
Reply With Quote
  #8   (View Single Post)  
Old 15th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin Tournoij
Tcpdump Spy
 
Join Date: Apr 2008
Location: Ireland
Posts: 2,245
Default

The defaults are:
-fno-strict-aliasing -O2 -pipe
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Ant Question disappearedng FreeBSD General 0 27th October 2008 06:20 AM
Quick question about PHP script 18Googol2 Programming 2 21st September 2008 05:33 AM
make.conf lumiwa FreeBSD General 9 8th September 2008 12:15 AM
I need help with make.conf syntax troberts FreeBSD Ports and Packages 4 1st June 2008 03:58 AM
Buildworld make.conf options siffland FreeBSD Installation and Upgrading 4 12th May 2008 12:02 AM


All times are GMT. The time now is 05:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick