Hyper-Threading is considered a cores

Bug #533334 reported by ubuntosaure
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CPU-G
Fix Committed
High
schmoemi

Bug Description

Hello, first thank you for your software, it is very useful and I hope that its continued development.

CPU-G sees my Intel Atom N270 as a dual-core. It should create a box "Hyper-Threading".
A simple solution allows to know the number of cores:
echo `sed -n '/^cpu c/{p;q}' /proc/cpuinfo`

---------------------

Here is a list of details that I propose to add:

dmidecode -t memory | egrep -o "Number Of Devices.*|Maximum Capacity.*|Size.*|Speed.*"

dmidecode -t processor | egrep -o "Upgrade.*|External Clock..*"

Fotis Tsamis (ftsamis)
Changed in cpug:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Fotis Tsamis (phantomas)
Revision history for this message
ubuntosaure (ubuntosaure) wrote :
Download full text (6.3 KiB)

cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
stepping : 2
cpu MHz : 800.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 xtpr pdcm movbe lahf_lm
bogomips : 3191.86
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
stepping : 2
cpu MHz : 800.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 xtpr pdcm movbe lahf_lm
bogomips : 3191.94
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:

--------------------------------------------------------------------

ls -R /sys/devices/system/cpu
/sys/devices/system/cpu:
cpu0 cpufreq kernel_max online possible sched_smt_power_savings
cpu1 cpuidle offline perf_events present

/sys/devices/system/cpu/cpu0:
cache cpufreq cpuidle crash_notes thermal_throttle topology

/sys/devices/system/cpu/cpu0/cache:
index0 index1 index2

/sys/devices/system/cpu/cpu0/cache/index0:
cache_disable_0 number_of_sets size
cache_disable_1 physical_line_partition type
coherency_line_size shared_cpu_list ways_of_associativity
level shared_cpu_map

/sys/devices/system/cpu/cpu0/cache/index1:
cache_disable_0 number_of_sets size
cache_disable_1 physical_line_partition type
coherency_line_size shared_cpu_list ways_of_associativity
level shared_cpu_map

/sys/devices/system/cpu/cpu0/cache/index2:
cache_disable_0 number_of_sets size
cache_disable_1 physical_line_partition type
coherency_line_size shared_cpu_list ways_of_associativity
level shared_cpu_map

/sys/devices/system/cpu/cpu0/cpufreq:
affected_cpus related_cpus scaling_max_freq
cpuinfo_cur_freq scaling_available_frequencies scaling_min_freq
cpuinfo_max_freq scaling_available_governors scaling_setspeed
cpuinfo_min_freq scaling_cur_freq stats
cpuinfo_transition_latency scaling_driver
ondemand scaling_governor

/sys/devices/system/cpu/cpu0/cpufreq/ondemand:
ignore_nice_load sampling_rate sampling_rate_min
powersave_bias sampling_rate_max up_threshold...

Read more...

Revision history for this message
schmoemi (schmoemi) wrote :

devel-0.11 should handle cores & threads correctly

Changed in cpug:
assignee: Fotis Tsamis (phantomas) → schmoemi (schmoemi)
status: Confirmed → Fix Committed
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

dmidecode -t processor | egrep -o "Upgrade.*|External Clock..*" output is useless on most systems probably. Here it shows:

External Clock: 100 MHz
Upgrade: Socket 478

while socket 1156 is on mainboard...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.