"top" and HyperThreading

If none of the more specific forums is the right place to ask

"top" and HyperThreading

Postby HyperDevil » 2006-06-13 10:48

Hello,

I have a Pentium 4 HT 3 ghz.
When i use the "top" command to view the processes i only see 1 CPU.
I know that HT does not mean you have 2 physical CPU's, but still i want to see which process works on which "core".
Anybody know how i can see that?
HyperDevil
 
Posts: 8
Joined: 2005-09-24 12:29

Postby cataract » 2006-06-13 11:00

if you have downloaded the compiled kernel of debian, i think that HT is not enabled.
to check it, you can go to /usr/src/your_kernel/ and make as su
Code: Select all
make menuconfig
and then go to processor type and features.

i have compiled my kernel, in able to use HT.
maybe there are some other ways to enable it, i don't know.
google it, if there is any way to enable it, without compile the kernel.

i think smp kernel is a solution, but i am not sure.
:)
Debian--Etch
Image
User avatar
cataract
 
Posts: 29
Joined: 2006-03-31 12:24

Postby HyperDevil » 2006-06-13 11:22

My server did not boot with the SMP kernel, it just hangs.
I use the: Linux version 2.6.8-3-686 (root@lart) (gcc version 3.3.5 (Debian 1:3.3.5-13)) #1
HT is i think enabled.
HyperDevil
 
Posts: 8
Joined: 2005-09-24 12:29

Postby cataract » 2006-06-13 11:37

go to /usr/src/your_kernel/ and make as su
Code: Select all
make menuconfig

and then go to processor type and features.

Also as su, you can see the output from /proc/cpuinfo and check if you have Hyper-Threading support.

If HT is enabled, you will see the processor 0 and processor 1
Debian--Etch
Image
User avatar
cataract
 
Posts: 29
Joined: 2006-03-31 12:24

Postby HyperDevil » 2006-06-13 11:46

cataract wrote:go to /usr/src/ and make as su
Code: Select all
make menuconfig

and then go to processor type and features.

Also as su, you can see the output from /proc/cpuinfo and check if you have Hyper-Threading support.

If HT is enabled, you will see the processor 0 and processor 1


my /usr/src/your_kernel/ is empty. :?

CPUINFO:

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping : 4
cpu MHz : 2994.312
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 : 5931.00
Last edited by HyperDevil on 2006-06-13 11:52, edited 1 time in total.
HyperDevil
 
Posts: 8
Joined: 2005-09-24 12:29

Postby cataract » 2006-06-13 11:52

it is not empty :D in your_kernel i mean Linux-2.6.8-3-686 :D

HT is not enabled.

first of all, you must enable HT from the bios of your motherboard, then google it if there is any way to enable HT from the kernel without compile it. I think this can be done in suse and red hat.
Debian--Etch
Image
User avatar
cataract
 
Posts: 29
Joined: 2006-03-31 12:24

Postby HyperDevil » 2006-06-13 11:58

cataract wrote:it is not empty :D

HT is not enabled.

first of all, you must enable HT from the bios of your motherboard, then google it if there is any way to enable HT from the kernel without compile it. I think this can be done in suse and red hat.


Ok then i know it is not enabled.
I know 100% sure that it is enabled in the BIOS i double checked it.
I just googled a bit, but i cant find anything on how i can enable it without recompiling.
The strange thing is that my server wont boot with the SMP kernel.
:? and i have a Intel 875P serverboard with 2 GB DDR memory.

/usr/src/ is empty on my server :oops:
HyperDevil
 
Posts: 8
Joined: 2005-09-24 12:29

Postby cataract » 2006-06-13 12:07

so, recompile the kernel and make sure, that you will enable HT.
check those post to compile the new kernel :D viewtopic.php?t=4468

about /usr/src/ i don't know why is empty. :?
try to see the folder as root. maybe the user you are trying to see it, don't have the rights to read those folders.
Debian--Etch
Image
User avatar
cataract
 
Posts: 29
Joined: 2006-03-31 12:24

Postby HyperDevil » 2006-06-13 12:10

cataract wrote:so, recompile the kernel and make sure, that you will enable HT.
check those post to compile the new kernel :D viewtopic.php?t=4468

about /usr/src/ i don't know why is empty. :?
try to see the folder as root. maybe the user you are trying to see it, don't have the rights to read those folders.


hehe beautiful... i tryed to compile my kernel before but it has no use.
I boot from a softwareraid set.. and it is almost impossible to try to get it to work.
Last time i tryed to recompile it, i had to ask a friend of mine to do it.
He has recompiled hundreds of kernels and he did not get the kernel starting from a software raid. (he worked on it almost 40 hours).
Thanks for the help anyway guys i appriciate it :)
HyperDevil
 
Posts: 8
Joined: 2005-09-24 12:29

Postby cataract » 2006-06-13 12:13

ok. just build a new kernel :D
Debian--Etch
Image
User avatar
cataract
 
Posts: 29
Joined: 2006-03-31 12:24

Postby HyperDevil » 2006-06-13 12:21

cataract wrote:ok. just build a new kernel :D


I wish! :)
HyperDevil
 
Posts: 8
Joined: 2005-09-24 12:29


Return to General Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable