Re: SMP detection
- From: backyard <backyard1454-bsd@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 16:27:03 -0700 (PDT)
--- Jordi Carrillo <jordilin@xxxxxxxxx> wrote:
2006/8/31, backyard <backyard1454-bsd@xxxxxxxxx>:http://lists.freebsd.org/mailman/listinfo/freebsd-questions
wrote:
--- Michal Mertl <mime@xxxxxxxxxxxx> wrote:
Skylar Thompson wrote:
Jordi Carrillo wrote:<backyard1454-bsd@xxxxxxxxx>:
2006/8/30, backyard
--- Jordi Carrillo <jordilin@xxxxxxxxx>
P4
I've read that SMP should be disabled for
performance issues (I did not know
that before installing freebsd). I have a
and3GHz
with hyperthreading
technology. I have the SMP-GENERIC kernel
oneit
that ok?,only launches one cpu. So,
I've decided to disable SMP from BIOS. Is
knowing that I have a
Smp enabled kernel? or should I install
listwithout
_______________________________________________smp? If so, is there a
way to install one already precompiled?
Thanks in advance
--
http://jordilin.wordpress.com
freebsd-questions@xxxxxxxxxxx mailing
http://lists.freebsd.org/mailman/listinfo/freebsd-questions"freebsd-questions-unsubscribe@xxxxxxxxxxx"To unsubscribe, send any mail to
makedon't
if the system runs with one cpu now and you
then youenable smp with HT with the sysctl variable
recompilingshould be ok. If your not doing SMP then
the kernel for single processor mode will
won'tthings
run a little quicker because the SMP code
thecome
into play.
with HT disabling in FreeBSD is more for
onesecurity
issues about a potential exploit whereby
coresprocess
information ofin one pipe can access the priveledged
a process in another pipe because the two
table.share
one processor cache and thus one cache
itTo my
knowledge this hasn't been exploited yet.
If you just install the generic kernel you
doshould
be only the uniprocessor one. I would just
buta:
KERNCONF=GENERIC
cd /usr/src && make buildworld && make
KERNCONF=GENERIC buildkernel && make
haven'tinstallkernel
as opposed to a binary version assuming you
updated yet you won't have to install world
sourceI
believe it must have the build in the
thetree to
differencebuild a kernel. On your P4 though the
between SMP and uniproc may not be worth
betrouble
because I don't think much of a gain would
themade. on
hackersa P1 a much different story...
if you aren't concerned with bad users or
hitting the box I would just enable HT with
slowersysctl
variable. This will not make things run
theat all,
just (in theory) less secure, which is why
Iveriable was created in the first place as
smprecall.
updateIf you are concerned I would wait until you
GENERIC/CUSTOMyour system and then just build a
kernel without the SMP option set.
-brian
I will disable smp from bios. If I have a
thekernel, I suppose there
will
be no problem after all. Would that be ok?
The problem with having SMP enabled is that
cpusmp kernel only
detects one
cpu and the system monitor only features one
theas well as gkrellm (in
system monitor shows theLinux it shows two cpus). When compiling the
cpu at
a maximum of 50%, so what's going on with
toother 50%?
loader.conf does not solvewriting machdep.hlt_logical_cpus to 2 in
anything.
I believe FreeBSD uses the other logical CPU
Youhandle hardware
interrupts, which can still help perormance.
aren'tcan check dmesg to see
how it's actually handling it.
No! Kernel threads (e.g. handling interrupts)
mostthat much different
to normal processes.
Logical CPUs on a single HTT capable CPU share
"secondary/logical"of the CPU logic,
especially all the external stuff (handling
interrupts). Scheduling
handling of interrupts on the
allcore wouldn't
probably help performance at all (if that is at
CPUs topossible).
When FreeBSD sees logical CPUs it means HTT is
either enabled in BIOS or
that disabling HTT in BIOS does not hide the
HTTFreeBSD (bug in
BIOS/FreeBSD).
Until you enable scheduler to schedule tasks to
utilizationcores (with
machdep.hyperthreading_allowed=1 in loader.conf)
(disabled by default
due to mentioned security/performance reasons)
machine won't utilize the
logical HTT CPUs. Therefore total CPU
thewon't be more than
50%, because there are the (unused) logical CPUs
which don't get
scheduled tasks.
are you sure about this???
I would have figured the scheduler wouldn't see
other core at all without this option set and soit
wouldn't be used in calculating load at all. 50%on a
compile is fairly normal from my experience. Idon't
have too much experience with HT as I always optfor
true SMP so I can't speak with authority on theif
matter.
but if
top
isn't showing CPU 1 or 0 next to a process then it
isn't computing the load on multiple cores... Also
your
dmesg |grep cpu
doesn't show application cpu1 (and on through all
cores)... launched then the system isn't lookingat
the HT core at all.
-brian
When you do a "top" in the column marked as "C"
should put a 1 or 0 in each
process depending on the cpu the process is being
executed. Well, top does
so, only if you write the line
machdep.hyperthreading_allowed=1 in your
loader.conf. So, anyone having a pentium with
hyperthreading, when you
install freebsd it will install the SMP-GENERIC
kernel (my case) and then
you must enable it by writing
machdep.hyperthreading_allowed=1. If you don't
then the other cpu is not taken into account (at
least when you do a top
only appear 0s in every process, and no 1s). Is my
explanation correct?
--
http://jordilin.wordpress.com
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@xxxxxxxxxxx"
sounds like it to me. except by what you mean by
"taken in to account" top is only reading internal
scheduler information so it will display 1 and 0 or 3
4 5 6 however many cores/cpus you have that make
things up. I just don't want to mislead or
misunderstand the
machdep.hyperthreading_allowed=1
variable tells an SMP Kernel to allow the scheduler to
send task to the second core. Thus allowing SMP
execution of processes and interrupts. I know I am
likely abriviating what acutally internally occurs.
this does not affect top other then top will read the
schedule tasks and if processes are on the second core
it will report C=1.
But your a lucky dog it always seems I have to rebuild
the installed kernel to enable SMP with my systems.
Very frustrating, but forces me to immediately update
the tree. The point is the above variable is in the
BSD world and must be set if you want HT to work.
Linux does things their own way, which is why I'm
nuking my Gentoo partition this weekend; way too much
chaos for me.
-brian
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Prev by Date: Anyone Using the New Free Mulberry Mail Client?
- Next by Date: Re: can someone point me to some good and descriptive VPN documentation for my use?
- Previous by thread: Anyone Using the New Free Mulberry Mail Client?
- Next by thread: Re: SMP detection
- Index(es):
Relevant Pages
|
|