LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-06-2004, 04:56 AM   #1
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Getting hyperthreading working


Hey all

I recently bought a new computer (yay) - it's got an Intel P4 2.8 Hyperthreaded processor and picks it up fine under windows yet in Linux which i'd most like to see it working it's not picking it up as hyperthreaded...

If I do a cat /proc/cpuinfo I only get the following:


processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 3
cpu MHz : 2793.042
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl cid
bogomips : 5570.56


Does anyone know how I can get this to work?
 
Old 05-06-2004, 07:45 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Do you use an SMP-enabled kernel? All major distributions come with a kernel that is compiled with SMP (support for multiple processors) as an option. Check your install CD's and see what kernels are available to you.


Håkan
 
Old 05-06-2004, 03:16 PM   #3
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
K i had an SMP enabled kernel installed (just never used it) - rebooted and booted using that kernel and I could see the 2x CPU's BUT for some strange reason it won't start X - I get an error about not being able to start NVIDIA and that there's no screens...

Weird cos i've got the nVidia drivers installed, works perfectly when running a standard kernel but when I use SMP it doesn't

From the XFre86 log file
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***

Last edited by AMMullan; 05-06-2004 at 03:27 PM.
 
Old 05-06-2004, 03:26 PM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
The Nvidia driver is a part binary, part source based driver. The binary part contains their secret sauce, and the source part is there to provide an interface to pretty much any current Linux kernel. The source part is an interface that is compiled against the kernel source of the kernel you're running to create a module that can be loaded and used by your kernel.

You can download the .tar.gz package from the Nvidia Linux driver download page and build it against your kernel. Install the kernel-source package that matches your SMP kernel package, and make sure you have gcc and the other necessary tools installed (a basic sane development environment, that is) and then read the Nvidia instructions carefully. There is also a source RPM (SRPM) package on the Nvidia driver page but I can't really recommend it since I have never used it and don't know how it works. Read the docs, it may be easier to use that though.


Håkan
 
Old 05-06-2004, 03:30 PM   #5
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
I've got their .sh file which is an RPM in a SH archive - if I went into the SMP enabled kernel and reinstalled the driver would that break my current settings on my non-SMP kernel?

Please forgive my arrogance - never really gotten around to playing with kernels yet (lol yeah in my 2 years never had the need/urge to) :P
 
Old 05-07-2004, 06:52 AM   #6
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
K I installed the driver on the SMP kernel and works perfectly - YAY man, my FC1 install isn't even using 2% of 1 CPU - this is kewl Now I gotta try and upgrade my kernel cos apparently 2.6 has got better hyperthreading support

Cheers Håkan
 
Old 05-25-2004, 05:35 PM   #7
guioc
LQ Newbie
 
Registered: May 2004
Distribution: Fedora - Mandrake
Posts: 1

Rep: Reputation: 0
Hyperthreading X time()

Hello all...

I am in charge of of a cluster with P4 2.8 GHz hyperthreaded processors running Fedora Core 1.

Fedora's original kernel 2.4.22-1.2115.nptl seem to manage hyperthreading and SMP well, however, for some reason, the machines suddenly started to hang out. We never knew exactly why, but after several (a lot, actually) hardware tests, we came to the conclusion that we had to change the kernel, and so we did.

Now we are using kernel.org's 2.6.5. And nothing is hanging anymore. However, in configuration of 2.4.22-1.2115.nptl there were options specific to hyperthreading. Kernel.org's 2.6.5 don't have them.

Besides , if I enable SMP, linux actually finds two processors, but, the time() function starts to act in a very strange way. No matter how many processes you start, all of them are reported with real time almost equal to user time, which, of course, is impossible.

As long as the cluster is meant for performance tests, is crucial that time() works properly, so I disabled SMP and everything is fine, but I can't take advantage of HT.

Does somebody know how to manage this? I guess there must be a patch specific to hyperthreading, am I right?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HyperThreading not working in RH9 vuzerak Red Hat 10 08-01-2005 08:58 AM
P4-3.00Ghz + Asus P5P800, HyperThreading not working (SUSE 9.2) finnjimm Linux - Hardware 10 03-22-2005 10:27 AM
P4 and Hyperthreading General_Tso Linux - Hardware 13 11-27-2004 05:39 PM
Hyperthreading working? otho Linux - Hardware 3 10-07-2003 09:48 AM
Hyperthreading Working? otho Red Hat 0 10-06-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration