Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2005 22:48:32 +0530
From:      "Subhro" <subhro.kar@gmail.com>
To:        "'Richard Danter'" <richard.danter@ntlworld.com>, <freebsd-questions@freebsd.org>
Subject:   RE: Optimising FreeBSD
Message-ID:  <42220101.4962813b.3031.00a0@smtp.gmail.com>
In-Reply-To: <4221F632.4060301@ntlworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C51D1E.75366290
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit


> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> questions@freebsd.org] On Behalf Of Richard Danter
> Sent: Sunday, February 27, 2005 22:03
> To: freebsd-questions@freebsd.org
> Subject: Optimising FreeBSD
> 
> First, I think I need to edit the /etc/make.conf file. This is what I
> think I should have in place:
> 
>    CPUTYPE ?= p2 		# or p3 on my workstation
>    CFLAGS   = -O -pipe		# O2 and above not recommended?
>    COPTFLAGS= -O -pipe

Make that CPUTYPE=p2 instead of CPUTYPE?=p2. The later is used if you build
for p2 on a different platform. CFLAGS and COPTFLAGS look ok. You can try
-O2 for COPTFLAGS but expect some instabilities.

> 
> I am not sure I understand the difference between CFLAGS and COPTFLAGS.
> Am I right in saying that COPTFLAGS is used for kernel builds and CFLAGS
> is used for everything else? 

That's correct

> 
> Is there anything else I need to set?

Go through /usr/local/sys/i386/conf/NOTES. Read through the different
processor flags.

> 
> Assuming the settings above are right, now I guess I can rebuild my
> kernel again without changing the configuration but I should now have p2
> specific code? Is there anything in the kernel config file I need to
> check? Do I even need to rebuild since I had the I686_CPU setting?

Just rebuilding the kernel after modifying make.conf should be enough.

> 
> Next I guess I need to re-build the rest of the userland apps. Is it
> simply a case of building world, or do I have to go through the whole
> upgrade procedure as described in the Handbook?

Yeh a rebuild of world is necessary. Well, not necessary but definitely
recommended.


> 
> I want to stick to -RELEASE, does this change (bug/security fixes)? If
> so, how do I update? I can see CVSup config files for -CURRENT and
> -STABLE, but not for -RELEASE.

RELENG_X means FreeBSD X-STABLE, RELENG_X_Y means FreeBSD X.Y-RELEASE.
Read through the "make world" section of the handbook again.

> 
> I guess the last step is to recompile the ports I have installed. Is
> there a quick way to rebuild just the ports I have installed or do I
> need to go through them all one by one and 'make install clean' them?
> 
> Anything else I have missed?

The simplest way I would do is pkg_delete -ad. This would delete *all* the
installed ports. Then selectively rebuild the ports as required.

> Sorry for so many questions in one go!

You don't learn something unless you have the guts to ask, so be proud about
it. :-)

Regards,
S. 

Indian Institute of Information Technology
Subhro Sankha Kar
Block AQ-13/1, Sector V
Salt Lake City
PIN 700091
India

------=_NextPart_000_000A_01C51D1E.75366290
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJ4TCCAj0w
ggGmAhEAzbp/VvDf5LxU/iKss3KqVTANBgkqhkiG9w0BAQIFADBfMQswCQYDVQQGEwJVUzEXMBUG
A1UEChMOVmVyaVNpZ24sIEluYy4xNzA1BgNVBAsTLkNsYXNzIDEgUHVibGljIFByaW1hcnkgQ2Vy
dGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNOTYwMTI5MDAwMDAwWhcNMjgwODAxMjM1OTU5WjBfMQsw
CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xNzA1BgNVBAsTLkNsYXNzIDEgUHVi
bGljIFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwgZ8wDQYJKoZIhvcNAQEBBQADgY0A
MIGJAoGBAOUZv22jVmEtmUhx9mfeuY3rt56GgAqRDvo4Ja9GiILlc6igmyRdDR/MZW4MsNBWhBiH
mgabEKFz37RYOWtuwfYV1aioP6oSBo0xrH+wNNePNGeICc0UEeJORVZpH3gCgNr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9qR39G/KW6Y7qrUA+DYw/U1dTi6lplrpbmvi+g2VcIudlMtFFyLEi8MTvbGDM1GsgDanPo
wAak5SiboxfTRni01LcUFa5LLjfSb30AAAAAAAA=

------=_NextPart_000_000A_01C51D1E.75366290--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42220101.4962813b.3031.00a0>