Open petersulyok opened 2 years ago
What's
psutil.cpu_count(logical=True)
psutil.cpu_count(logical=False)
on your machine?
This is a new processor with 8 power core (where hyper-threading is enabled), and with 4 efficiency core (where HT is not working):
>>> import psutil
>>> psutil.cpu_count(logical=True)
20
>>> psutil.cpu_count(logical=False)
12
>>>
Here is also the /proc/cpuinfo
file:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 0
cpu cores : 12
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 0
cpu cores : 12
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 4
cpu cores : 12
apicid : 8
initial apicid : 8
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 4
cpu cores : 12
apicid : 9
initial apicid : 9
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 8
cpu cores : 12
apicid : 16
initial apicid : 16
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 8
cpu cores : 12
apicid : 17
initial apicid : 17
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 12
cpu cores : 12
apicid : 24
initial apicid : 24
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 12
cpu cores : 12
apicid : 25
initial apicid : 25
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 8
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 16
cpu cores : 12
apicid : 32
initial apicid : 32
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 9
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 16
cpu cores : 12
apicid : 33
initial apicid : 33
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 10
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 20
cpu cores : 12
apicid : 40
initial apicid : 40
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 11
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 20
cpu cores : 12
apicid : 41
initial apicid : 41
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 12
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 24
cpu cores : 12
apicid : 48
initial apicid : 48
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 13
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 24
cpu cores : 12
apicid : 49
initial apicid : 49
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 14
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 28
cpu cores : 12
apicid : 56
initial apicid : 56
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 15
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 800.064
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 28
cpu cores : 12
apicid : 57
initial apicid : 57
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 16
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 36
cpu cores : 12
apicid : 72
initial apicid : 72
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 17
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 37
cpu cores : 12
apicid : 74
initial apicid : 74
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 18
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 38
cpu cores : 12
apicid : 76
initial apicid : 76
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 19
vendor_id : GenuineIntel
cpu family : 6
model : 151
model name : 12th Gen Intel(R) Core(TM) i7-12700K
stepping : 2
microcode : 0x22
cpu MHz : 3600.000
cache size : 25600 KB
physical id : 0
siblings : 20
core id : 39
cpu cores : 12
apicid : 78
initial apicid : 78
fpu : yes
fpu_exception : yes
cpuid level : 32
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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb
bogomips : 7222.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
I see. Yeah, tiptop can't handle this yet.
In the meantime, you just need to comment (or delete) the assertion on _cpu.py, line 129
:
125 self.num_cores = psutil.cpu_count(logical=False)
126 num_threads = psutil.cpu_count(logical=True)
127
128 # 8 threads, 4 cores -> [[0, 4], [1, 5], [2, 6], [3, 7]]
- 129 assert num_threads % self.num_cores == 0
+ 129 #assert num_threads % self.num_cores == 0
130 self.core_threads = transpose(list(chunks(range(num_threads), self.num_cores)))
131
132 self.cpu_total_stream = BrailleStream(50, 7, 0.0, 100.0)
And it works, until it is fixed in the code or merged.
Checked it and it is working as you suggested.
First time I got this exception (python cache proble?) but after that it was running properly.
(.venv) peter@giantmd:~/git/test$ tiptop
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /home/peter/git/test/.venv/lib/python3.11/site-packages/tiptop/_cpu.py:210 │
│ in collect_data │
│ │
│ 207 │ │
│ 208 │ def collect_data(self): │
│ 209 │ │ # CPU loads │
│ ❱ 210 │ │ self.cpu_total_stream.add_value(psutil.cpu_percent()) │
│ 211 │ │ # │
│ 212 │ │ load_per_thread = psutil.cpu_percent(percpu=True) │
│ 213 │ │ assert isinstance(load_per_thread, list) │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
│ │
│ /home/peter/git/test/.venv/lib/python3.11/site-packages/tiptop/braille_strea │
│ m.py:87 in add_value │
│ │
│ 84 │ │ │
│ 85 │ │ # update stream │
│ 86 │ │ for k, char in enumerate(chars): │
│ ❱ 87 │ │ │ g[k] = g[k][1:] + char │
│ 88 │ │ │
│ 89 │ │ self.values = self.values[1:] + [value] │
│ 90 │ │ self._last_blocks = blocks │
│ │
│ ╭──────────────────────────────── locals ─────────────────────────────────╮ │
│ │ blocks = [1, 0, 0] │ │
│ │ char = ' ' │ │
│ │ chars = [' ', ' ', '⣀'] │ │
│ │ g = [] │ │
│ │ k = 0 │ │
│ │ self = <tiptop.braille_stream.BrailleStream object at 0x7f1ef9d1a610> │ │
│ │ value = 0.6 │ │
│ ╰─────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
IndexError: list index out of range
During handling of the above exception, another exception occurred:
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /home/peter/git/test/.venv/lib/python3.11/site-packages/textual/message_pump │
│ .py:327 in on_timer │
│ │
│ 324 │ │ │ try: │
│ 325 │ │ │ │ await invoke(event.callback) │
│ 326 │ │ │ except Exception as error: │
│ ❱ 327 │ │ │ │ raise CallbackError( │
│ 328 │ │ │ │ │ f"unable to run callback {event.callback!r}; {erro │
│ 329 │ │ │ │ ) │
│ 330 │
│ │
│ ╭───────────── locals ──────────────╮ │
│ │ event = Timer('Timer#1', count=0) │ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰───────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
CallbackError: unable to run callback <bound method CPU.collect_data of
CPU(name='CPU#1')>; list index out of range
(.venv) peter@giantmd:~/git/test$ tiptop
(.venv) peter@giantmd:~/git/test$ tiptop
(.venv) peter@giantmd:~/git/test$ tiptop
Same error on Windows 11 in a freshly installed conda
environment (python=3.10)
(tiptip-env) C:\Users\jonma>tiptop
╭─────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────╮
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\tiptop\_cpu.py:129 in on_mount │
│ │
│ 126 │ │ num_threads = psutil.cpu_count(logical=True) │
│ 127 │ │ │
│ 128 │ │ # 8 threads, 4 cores -> [[0, 4], [1, 5], [2, 6], [3, 7]] │
│ ❱ 129 │ │ assert num_threads % self.num_cores == 0 │
│ 130 │ │ self.core_threads = transpose(list(chunks(range(num_threads), self.num_cores))) │
│ 131 │ │ │
│ 132 │ │ self.cpu_total_stream = BrailleStream(50, 7, 0.0, 100.0) │
│ │
│ ╭──────────── locals ─────────────╮ │
│ │ num_threads = 24 │ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰─────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AssertionError
╭─────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────╮
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:202 in _get_lines │
│ │
│ 199 │ def _get_lines(self) -> Lines: │
│ 200 │ │ """Get segment lines to render the widget.""" │
│ 201 │ │ if self.render_cache is None: │
│ ❱ 202 │ │ │ self.render_lines() │
│ 203 │ │ assert self.render_cache is not None │
│ 204 │ │ lines = self.render_cache.lines │
│ 205 │ │ return lines │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:188 in render_lines │
│ │
│ 185 │ │
│ 186 │ def render_lines(self) -> None: │
│ 187 │ │ width, height = self.size │
│ ❱ 188 │ │ renderable = self.render_styled() │
│ 189 │ │ options = self.console.options.update_dimensions(width, height) │
│ 190 │ │ lines = self.console.render_lines(renderable, options) │
│ 191 │ │ self.render_cache = RenderCache(self.size, lines) │
│ │
│ ╭────────── locals ──────────╮ │
│ │ height = 9 │ │
│ │ self = CPU(name='CPU#1') │ │
│ │ width = 66 │ │
│ ╰────────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:128 in render_styled │
│ │
│ 125 │ │ Returns: │
│ 126 │ │ │ RenderableType: A new renderable. │
│ 127 │ │ """ │
│ ❱ 128 │ │ renderable = self.render() │
│ 129 │ │ if self.padding is not None: │
│ 130 │ │ │ renderable = Padding(renderable, self.padding) │
│ 131 │ │ if self.border in self.BOX_MAP: │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\tiptop\_cpu.py:312 in render │
│ │
│ 309 │ │ self.info_box_width = 4 + len(Text.from_markup(lines[0])) │
│ 310 │ │
│ 311 │ def render(self): │
│ ❱ 312 │ │ return self.panel │
│ 313 │ │
│ 314 │ async def on_resize(self, event): │
│ 315 │ │ self.width = event.width │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'CPU' object has no attribute 'panel'
╭─────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────╮
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:202 in _get_lines │
│ │
│ 199 │ def _get_lines(self) -> Lines: │
│ 200 │ │ """Get segment lines to render the widget.""" │
│ 201 │ │ if self.render_cache is None: │
│ ❱ 202 │ │ │ self.render_lines() │
│ 203 │ │ assert self.render_cache is not None │
│ 204 │ │ lines = self.render_cache.lines │
│ 205 │ │ return lines │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:188 in render_lines │
│ │
│ 185 │ │
│ 186 │ def render_lines(self) -> None: │
│ 187 │ │ width, height = self.size │
│ ❱ 188 │ │ renderable = self.render_styled() │
│ 189 │ │ options = self.console.options.update_dimensions(width, height) │
│ 190 │ │ lines = self.console.render_lines(renderable, options) │
│ 191 │ │ self.render_cache = RenderCache(self.size, lines) │
│ │
│ ╭────────── locals ──────────╮ │
│ │ height = 9 │ │
│ │ self = CPU(name='CPU#1') │ │
│ │ width = 66 │ │
│ ╰────────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:128 in render_styled │
│ │
│ 125 │ │ Returns: │
│ 126 │ │ │ RenderableType: A new renderable. │
│ 127 │ │ """ │
│ ❱ 128 │ │ renderable = self.render() │
│ 129 │ │ if self.padding is not None: │
│ 130 │ │ │ renderable = Padding(renderable, self.padding) │
│ 131 │ │ if self.border in self.BOX_MAP: │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\tiptop\_cpu.py:312 in render │
│ │
│ 309 │ │ self.info_box_width = 4 + len(Text.from_markup(lines[0])) │
│ 310 │ │
│ 311 │ def render(self): │
│ ❱ 312 │ │ return self.panel │
│ 313 │ │
│ 314 │ async def on_resize(self, event): │
│ 315 │ │ self.width = event.width │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'CPU' object has no attribute 'panel'
╭─────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────╮
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:202 in _get_lines │
│ │
│ 199 │ def _get_lines(self) -> Lines: │
│ 200 │ │ """Get segment lines to render the widget.""" │
│ 201 │ │ if self.render_cache is None: │
│ ❱ 202 │ │ │ self.render_lines() │
│ 203 │ │ assert self.render_cache is not None │
│ 204 │ │ lines = self.render_cache.lines │
│ 205 │ │ return lines │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:188 in render_lines │
│ │
│ 185 │ │
│ 186 │ def render_lines(self) -> None: │
│ 187 │ │ width, height = self.size │
│ ❱ 188 │ │ renderable = self.render_styled() │
│ 189 │ │ options = self.console.options.update_dimensions(width, height) │
│ 190 │ │ lines = self.console.render_lines(renderable, options) │
│ 191 │ │ self.render_cache = RenderCache(self.size, lines) │
│ │
│ ╭────────── locals ──────────╮ │
│ │ height = 9 │ │
│ │ self = CPU(name='CPU#1') │ │
│ │ width = 66 │ │
│ ╰────────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\textual\widget.py:128 in render_styled │
│ │
│ 125 │ │ Returns: │
│ 126 │ │ │ RenderableType: A new renderable. │
│ 127 │ │ """ │
│ ❱ 128 │ │ renderable = self.render() │
│ 129 │ │ if self.padding is not None: │
│ 130 │ │ │ renderable = Padding(renderable, self.padding) │
│ 131 │ │ if self.border in self.BOX_MAP: │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
│ │
│ C:\Users\jonma\miniconda3\envs\tiptip-env\lib\site-packages\tiptop\_cpu.py:312 in render │
│ │
│ 309 │ │ self.info_box_width = 4 + len(Text.from_markup(lines[0])) │
│ 310 │ │
│ 311 │ def render(self): │
│ ❱ 312 │ │ return self.panel │
│ 313 │ │
│ 314 │ async def on_resize(self, event): │
│ 315 │ │ self.width = event.width │
│ │
│ ╭───────── locals ─────────╮ │
│ │ self = CPU(name='CPU#1') │ │
│ ╰──────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'CPU' object has no attribute 'panel'
(tiptip-env) C:\Users\jonma>
Same here, 12th gen Intel i7-1265U on Windows 11. No errors raised after removing assertion.
More hardware details for this issue:
❯ python3
Python 3.12.2 (main, Feb 6 2024, 20:19:44) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.cpu_count(logical=True)
32
>>> psutil.cpu_count(logical=False)
24
>>>
❯ inxi -c
CPU: 24-core (8-mt/16-st) 13th Gen Intel Core i9-13980HX (-MST AMCP-)
speed/min/max: 1059/800/5400:5600:4000 MHz Kernel: 6.1.0-1036-oem x86_64
Up: 6h 6m Mem: 42037.4/128558.1 MiB (32.7%) Storage: 5.5 TiB (17.4% used)
Procs: 675 Shell: Zsh inxi: 3.3.13
Installed with pip and received this error on ArchLinux kernel 5.19, CPU Intel i7-12700K