From owner-freebsd-questions@FreeBSD.ORG  Wed Aug 30 19:48:26 2006
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
X-Original-To: freebsd-questions@freebsd.org
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 7A8DD16A4E9
	for <freebsd-questions@freebsd.org>;
	Wed, 30 Aug 2006 19:48:26 +0000 (UTC)
	(envelope-from backyard1454-bsd@yahoo.com)
Received: from web83106.mail.mud.yahoo.com (web83106.mail.mud.yahoo.com
	[216.252.101.35])
	by mx1.FreeBSD.org (Postfix) with SMTP id 6EEB943D7B
	for <freebsd-questions@freebsd.org>;
	Wed, 30 Aug 2006 19:48:13 +0000 (GMT)
	(envelope-from backyard1454-bsd@yahoo.com)
Received: (qmail 65787 invoked by uid 60001); 30 Aug 2006 18:12:40 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=ZMy507yNRT9H2hK26FcKV0URuX0Mf6ILJOABD4+212PsZYuBbocBU7OnKCGYn88R9uX2dlvTcLVFJcjcGDmcP2P2fXPxBn48iuB6sEwPg8lmPsl3rvcMI8L0702ivrAvJr7h/JaE6yVZ78Z1HwrhX0MY1hZzpISDisCzFAid0i4=
	; 
Message-ID: <20060830181240.65785.qmail@web83106.mail.mud.yahoo.com>
Received: from [63.240.228.37] by web83106.mail.mud.yahoo.com via HTTP;
	Wed, 30 Aug 2006 11:12:39 PDT
Date: Wed, 30 Aug 2006 11:12:39 -0700 (PDT)
From: backyard <backyard1454-bsd@yahoo.com>
To: Jordi Carrillo <jordilin@gmail.com>, freebsd-questions@freebsd.org
In-Reply-To: <94ff3700608301020l34251166nbdb4d72842e1bb86@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Cc: 
Subject: Re: SMP detection
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: backyard1454-bsd@yahoo.com
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 30 Aug 2006 19:48:26 -0000



--- Jordi Carrillo <jordilin@gmail.com> wrote:

> I've read that SMP should be disabled for
> performance issues (I did not know
> that before installing freebsd). I have a P4 3GHz
> with hyperthreading
> technology. I have the SMP-GENERIC kernel and it
> only launches one cpu. So,
> I've decided to disable SMP from BIOS. Is that ok?,
> knowing that I have a
> Smp enabled kernel? or should I install one without
> smp? If so, is there a
> way to install one already precompiled?
> Thanks in advance
> 
> -- 
> http://jordilin.wordpress.com
> _______________________________________________
> 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"
> 

if the system runs with one cpu now and you don't
enable smp with HT with the sysctl variable then you
should be ok. If your not doing SMP then recompiling
the kernel for single processor mode will make things
run a little quicker because the SMP code won't come
into play.

with HT disabling in FreeBSD is more for the security
issues about a potential exploit whereby one process
in one pipe can access the priveledged information of
a process in another pipe because the two cores share
one processor cache and thus one cache table. To my
knowledge this hasn't been exploited yet. 

If you just install the generic kernel you it should
be only the uniprocessor one. I would just do a: 

cd /usr/src && make buildworld && make
KERNCONF=GENERIC buildkernel && make KERNCONF=GENERIC
installkernel

as opposed to a binary version assuming you haven't
updated yet you won't have to install world but I
believe it must have the build in the source tree to
build a kernel. On your P4 though the difference
between SMP and uniproc may not be worth the trouble
because I don't think much of a gain would be made. on
a P1 a much different story...

if you aren't concerned with bad users or hackers
hitting the box I would just enable HT with the sysctl
variable. This will not make things run slower at all,
just (in theory) less secure, which is why the
veriable was created in the first place as I recall.
If you are concerned I would wait until you update
your system and then just build a GENERIC/CUSTOM
kernel without the SMP option set.


-brian