From owner-freebsd-questions@FreeBSD.ORG Tue Jan 27 11:51:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB6A516A4CE for ; Tue, 27 Jan 2004 11:51:57 -0800 (PST) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34F9E43D68 for ; Tue, 27 Jan 2004 11:51:34 -0800 (PST) (envelope-from kstewart@owt.com) Received: from topaz-out (owt-207-41-94-233.owt.com [207.41.94.233]) by rutger.owt.com (8.11.6p2/8.9.3) with ESMTP id i0RJnR210586; Tue, 27 Jan 2004 11:49:27 -0800 From: Kent Stewart To: Ihsan Junaidi , freebsd-questions@freebsd.org Date: Tue, 27 Jan 2004 11:49:26 -0800 User-Agent: KMail/1.5.4 References: <40169BA2.8080506@synthexp.net> In-Reply-To: <40169BA2.8080506@synthexp.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401271149.26783.kstewart@owt.com> Subject: Re: Migrating 5.2 from Pentium 4 to Athlon MP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 19:51:58 -0000 On Tuesday 27 January 2004 09:10 am, Ihsan Junaidi wrote: > Hello all, > > I have a server currently running on a Pentium 4 box. Yesterday I > bought an AMD 762 MPX chipset to go with two Athlon MP 2000+. The > production server is running FreeBSD 5.2, a GENERIC with additional > SCSI/RAID controllers trimmed off. > > The kernel and all of the userland + ports were built with -march=p4 > flags and I am wondering if there's any way I can just plug the disk > into the Athlon box without rebuilding everything with the exception > of the world+kernel. FYI, the kernel is SMP-aware. > > How does the -march flag effect the userland programs? I am aware > that only OpenSSL is capable of taking advantage of specific CPU > instructions but other than that? > Rebuild your system with out the cpu flags in make.conf. It is too likely that there is cpu specific stuff in userland libraries that were linked to your builds. I have moved from P-IIIs to AMDs without problems. I also don't use the cpu flag on systems that I may NFS mount to rebuild one of the other systems with. I have recovered systems by doing a NFS mount and and installkernel and installworld. I wouldn't have even tried if they had been built with a cpu option. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html