4
4
4Proof2015-11-12 13:02:10
linux
4Proof, 2015-11-12 13:02:10

How to restore the number of threads (Threads) in the CPU?

cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping : 10
microcode : 0x4
cpu MHz : 3010.515
cache size : 2048 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
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 syscall nx lmgo constant_tsc up pebs bts nopl pni dtes64 monitor ds_cpl est cid cx16 xtpr lahf2.0
lahf2.0
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
After reboot, there was one Thread (Threads), and there were two. Htop also had 2 CPU loading bars. Marking processor Intel Pentium 4 631
I would be grateful for any information.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Softer, 2015-11-12
@4Proof

Enable HT (HyperThreading) in BIOS.

O
Oleg Tsilyurik, 2015-11-12
@Olej

Your processor is not 2-core, but with hyperthreading.
Linux does not distinguish between (cat /proc/cpuinfo) multiprocessing and hyperthreading.
If you turn on hyperthreading, then it is a). will give only a small increase in performance, b). and even then not at all, but only at certain classes of problems.
PS Since such a question has already been asked, the question in passing is:
how? is there a way? in Linux to distinguish a 4-core processor, for example, from a 2-core processor with hyperthreading ???

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question