Mad*_*han 35 linux cpu hardware
While I was learning about cpu load, I came to know that it depends on the number of cores. If I have 2 cores then load 2 will give 100% cpu utilization.
So I tried to find out cores.( I already know that system has 2 cores, 4 threads so 2 virtual cores Check here about processor).So I ran cat /proc/cpuinfo
Which gave me
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
stepping : 1
microcode : 0x17
cpu MHz : 774.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
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 arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
bogomips : 3591.40
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
stepping : 1
microcode : 0x17
cpu MHz : 1600.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
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 arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
bogomips : 3591.40
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
stepping : 1
microcode : 0x17
cpu MHz : 800.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
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 arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
bogomips : 3591.40
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
stepping : 1
microcode : 0x17
cpu MHz : 774.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
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 arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
bogomips : 3591.40
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
Run Code Online (Sandbox Code Playgroud)
Now I am totally confused. It shows 4 processors, with 2 cpu cores. Can anyone explain this output?
Once my cpu load was 3.70, Is this maximum load? Still at that time cpu was at <50%.
What about turbo boost? Are all cores are turbo boosted or only physical?
Any method in Ubuntu to get current cpu frequency to see if the processor is on turbo boost or not?
Load was to 3.70 about 100%. But CPU usage wasn't 100% because of IO response time. This does not means that IO device will be at maximum speed, but io device will be 100% busy, which sometimes affects applications using IO ex: music may break.
Gil*_*il' 46
“CPU”、“处理器”和“核心”这些词的使用方式有些令人困惑。它们指的是处理器架构。内核是实现通用处理器的最小独立单元;处理器是核心的组合(在某些 ARM 系统上,处理器是集群的组合,而集群本身就是核心的组合)。一个芯片可以包含一个或多个处理器(x86 芯片包含一个处理器,就字处理器而言)。
超线程意味着核心的某些部分是重复的。具有超线程的内核有时被表示为两个“虚拟内核”的组合——这意味着不是每个内核都是虚拟的,而是复数是虚拟的,因为它们实际上并不是独立的内核,它们有时必须等待,而另一个内核正在运行使用共享部分。
就软件而言,只有一个概念几乎无处不在:并行执行线程的概念。因此,在大多数软件手册中,术语CPU和处理器用于表示执行程序代码的任何一种硬件。在硬件方面,这意味着一个内核,或一个具有超线程的虚拟内核。
因此top
向您显示 4 个 CPU,因为您可以同时执行 4 个线程。/proc/cpuinfo
有 4 个条目,每个 CPU 一个(从这个意义上说)。的processor
号码(这是数量的条目中)分别对应于这4个线程。cpuNUMBER
/sys/devices/system/cpu
/proc/cpuinfo
是您获得有关哪些硬件实现这些执行线程的信息的少数几个地方之一:
Run Code Online (Sandbox Code Playgroud)physical id : 0 siblings : 4 core id : 0 cpu cores : 2
意味着它cpu0
是物理组件(处理器)编号 0 中的 4 个线程之一,并且位于该处理器中的 2 个核心 0 中。
beg*_*ner 13
只是回答你的第一个问题。在输出中,cat /proc/cpuinfo
您可以看到以下信息:-
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
Run Code Online (Sandbox Code Playgroud)
你可以看到的计数siblings is 4
和cpu cores is 2
。cpu cores
2 是处理器中的内核总数,可以从您提供的英特尔 URL 中给出的规范中进行检查。同样siblings
是由英特尔的 HTT 提供的线程数决定的。
同样,对于物理 ID,它0
表示只有一个处理器芯片,对于核心 ID,您可以看到0 and 1
处理器中有 2 个核心。
更新:添加其他问题的答案。
涡轮增压呢?所有核心都是涡轮增压还是只有物理核心?
好吧,我会说,所有活动核心都是涡轮增压的。嘿伙计,你应该查看我们心爱的维基百科的例子。也用计算来解释。
Any method in ubuntu to get current cpu freq. if processor is on turbo boost or not.
Run Code Online (Sandbox Code Playgroud)
涡轮增压与否,您可以在lscpu
. 对于精炼的输出:-
lscpu | grep Hz
Run Code Online (Sandbox Code Playgroud)
小智 10
您可以在终端中尝试此操作:
sudo lscpu
这将为您提供 CPU 物理特性的概览。至于涡轮增压与否,这纯粹是硬件控制而不是操作系统本身,所以除非英特尔有一个特定的 Linux 驱动程序可以调整你的处理器速度,否则没有可靠的线索来检查涡轮增压状态(除非有一个命令代码如果有关于您的问题的任何线索,请检查其他论坛)。
至于我,这就是我输入上述命令时得到的。我的 AMD 说它是四核,但我这里列出的物理核心只有 2 个,每个核心有 2 个线程(加起来最多 4 个核心)。我使用的是 AMD A10 APU 处理器 5750m。
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 21
Model: 19
Stepping: 1
CPU MHz: 2500.000
BogoMIPS: 4990.51
Virtualization: AMD-V
L1d cache: 16K
L1i cache: 64K
L2 cache: 2048K
NUMA node0 CPU(s): 0-3
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
130999 次 |
最近记录: |