Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

How to enable Hyper-threading?

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
rmautino
n00b
n00b
User avatar
Posts: 33
Joined: Fri Dec 31, 2004 10:09 am

How to enable Hyper-threading?

  • Quote

Post by rmautino » Mon Jan 03, 2005 11:48 pm

Hello,

I did an install from Stage one. When I compiled my kernel, I did the genkernel --menuconfig all command. I did verufy that SMP support was there.

Processor type and features --->
[*] Symmetric multi-processing support

When I do dmesg, I see this in the output....

CPU: Hyper-Threading is disabled.


How can I get this going and then verify it is going?

Thanks,
Rob
Top
rkrenzis
Tux's lil' helper
Tux's lil' helper
Posts: 135
Joined: Thu Jul 22, 2004 1:25 am
Location: USA

Kernel?

  • Quote

Post by rkrenzis » Tue Jan 04, 2005 12:08 am

Could you please provide more information like the version of kernel you are using?

Try emerging "gentoo-dev-sources" and symlink the linux directory to that version.

Select...
[*] Symmetric multi-processing support

Then...

[*] SMT (Hyperthreading) scheduler support

Update your make.conf to include MAKE_OPTS="-j3"

Although HT is not exactly like dual processors it does give you a 30-40% increase versus only having one core.
Top
rmautino
n00b
n00b
User avatar
Posts: 33
Joined: Fri Dec 31, 2004 10:09 am

  • Quote

Post by rmautino » Tue Jan 04, 2005 1:06 am

Hello,


Sorry. My kernel is gentoo-dev-sources. kernel-2.6.9-gentoo-r13

This is my Make.conf:
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
USE="-gtk -gnome qt kde dvd alsa cdr"


I selected SMP and Hyper-threading support with make menuconfig

Processor type and features ---> Processor type and features --->

[*] Symmetric multi-processing support
(8) Maximum number of CPUs (2-255)
[*] SMT (Hyperthreading) scheduler support


My question is, when I run the command
# dmesg

In the Output I see:

CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Hyper-Threading is disabled
CPU: After all inits, caps: bfebfbff 00000000 00000000 00000080



Does this actually mean that Hyper threading is disabled?

Thanks,
Rob
Top
n3mo
l33t
l33t
User avatar
Posts: 657
Joined: Sun Mar 28, 2004 2:21 pm
Location: In a Cruel World

  • Quote

Post by n3mo » Tue Jan 04, 2005 8:20 am

If you want HT enabled you have to accomplish two tasks, the first is enabling HT from your motherboard's BIOS, the second one is to build a kernel that supports it.

If I'm not wrong you already build your kernel with the right options, now all you've got to do is to go on the motherboard's BIOS and enable HT, save and enjoy.

:D
Google, really.
Top
kung.foo
Tux's lil' helper
Tux's lil' helper
Posts: 99
Joined: Tue Dec 16, 2003 3:23 pm

  • Quote

Post by kung.foo » Sun Mar 27, 2005 12:03 pm

I have a question about HT.
I own a P4 3.2ghz, with HT currently enabled. Compiling the kernel for example right now, only uses up 50% of the Cpu power (as stated by system monitor). Which seems nice, "Hey, I still have half the power at my hands right now..."
Do the two CPU inside the one I own, run both with half speed, and then add up to the total speed, or are both running with 3.2ghz?? Also, is it really a wise choice to enable HT under Linux, as far as my experience goes, the scheduler is far good enough, that it wouldn't even be necessary...
Top
Nard`
Apprentice
Apprentice
Posts: 250
Joined: Sun Jan 23, 2005 5:13 pm

  • Quote

Post by Nard` » Sun Mar 27, 2005 12:06 pm

kung.foo wrote:I have a question about HT.
I own a P4 3.2ghz, with HT currently enabled. Compiling the kernel for example right now, only uses up 50% of the Cpu power (as stated by system monitor). Which seems nice, "Hey, I still have half the power at my hands right now..."
Do the two CPU inside the one I own, run both with half speed, and then add up to the total speed, or are both running with 3.2ghz?? Also, is it really a wise choice to enable HT under Linux, as far as my experience goes, the scheduler is far good enough, that it wouldn't even be necessary...
I don't think you quite understand HT :P Hyperthreading works by having one physical processor split up into two logical ones, it does that by allowing for the fact that when the CPU is waiting to do something (i.e. waiting for hard disk read) it will let the other logical processor do something else. At least, that's what I think happens...
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Top
kung.foo
Tux's lil' helper
Tux's lil' helper
Posts: 99
Joined: Tue Dec 16, 2003 3:23 pm

  • Quote

Post by kung.foo » Sun Mar 27, 2005 12:14 pm

Yeah i kinda understand that it is only logical. So the "two" CPUs both run at full speed, say during compilation, because there is in fact only one of them...
Now this starts to sound like I'm a hardware moron :D
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic