From owner-freebsd-current@FreeBSD.ORG Sun May 7 19:31:03 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB1D916A5D9 for ; Sun, 7 May 2006 19:31:03 +0000 (UTC) (envelope-from vincent@xtra-net.org) Received: from smtp.xtra-net.be (cable-195-162-200-89.customer.tvd.be [195.162.200.89]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D36543D49 for ; Sun, 7 May 2006 19:30:56 +0000 (GMT) (envelope-from vincent@xtra-net.org) Received: (qmail 24782 invoked from network); 7 May 2006 19:30:54 -0000 Received: from sbegfxab.xtra-net.org (HELO services.xtra-net.be) (192.168.1.19) by 0 with SMTP; 7 May 2006 19:30:54 -0000 Received: from 192.168.1.21 (SquirrelMail authenticated user jlang); by services.xtra-net.be with HTTP; Sun, 7 May 2006 21:30:54 +0200 (CEST) Message-ID: <61809.192.168.1.21.1147030254.squirrel@192.168.1.21> Date: Sun, 7 May 2006 21:30:54 +0200 (CEST) From: "Vincent Blondel" To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: I_686 MMX / 3DNOW / SSE / SSE2 ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2006 19:31:04 -0000 Hello everybody, I am preparing a new FreeBSD server ( 2x Athlon Mp ) that will host 30 jails serving apache/tomcat websites. I was just writing my kernel config file when I remarked that option CPU_ENABLE_SSE is disappeared and is now automatically added when I_686 is configured ( and naturally CPU_DISABLE_SSE is not enabled ). So in this context, I use 'CFLAGS= -O2 -pipe -fno-strict-aliasing' and 'CPUTYPE?=athlon-xp' for compiling kernel but when I look at file /usr/src/sys/conf/kern.mk I see all kind of mmx/3dnow/sse/sse2 are disabled and if we analyzed a bit one line comping from a kernel compilation we get such a line ... cc -c -O2 -pipe -fno-strict-aliasing -march=athlon-xp .. -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 .. So, finally, there is something I don't understand, what is the goal of 'CPU_ENABLE_SSE' if we disbable all kind of optimization a bit further and is there any sense to set CPUTYPE to athlon-xp in such a way ? Many thanks for your remarks, comments, explanations. Vincent.