cpu核心怎么区别(cpu和核心关系)

[root@cat logs]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8//8个核心 On-line CPU(s) list: 0-7 Thread(s) per Core: 2 Core(s) per socket: 4//每颗cpu有几个核心 Socket(s): 1//1颗cpu NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 94 Model name: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz Stepping: 3 CPU MHz: 800.000 BogoMIPS: 6816.07 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K NUMA node0 CPU(s): 0-7

cpu核心怎么区别(cpu和核心关系)(1)

平均负载

Linux负载(平均数),衡量系统繁忙程度指标(cpu ,io),数值接近于系统核心总数。70%

cpu核心怎么区别(cpu和核心关系)(2)

cpu核心怎么区别(cpu和核心关系)(3)

[root@cat logs]# w 09:40:30 up 441 days, 23:36, 5 users, load average: 0.92, 1.12, 1.22 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 01Jun21 441days 0.17s 0.17s -bash liexin52 pts/0 192.168.1.168 08Aug22 0.00s 0.19s 0.03s sshd: liexin521 [priv] liexin52 pts/1 lcrm_new.liexin. 08Aug22 46:41m 0.09s 0.02s sshd: liexin521 [priv] root pts/3 192.168.1.18 26Jul22 43:25m 0.08s 0.08s -bash root pts/8 192.168.1.192 Mon12 45:34m 0.07s 0.07s -bash

cpu核心怎么区别(cpu和核心关系)(4)

cpu核心怎么区别(cpu和核心关系)(5)

cpu核心怎么区别(cpu和核心关系)(6)

cpu核心怎么区别(cpu和核心关系)(7)

cpu核心怎么区别(cpu和核心关系)(8)

cpu核心怎么区别(cpu和核心关系)(9)

cpu核心怎么区别(cpu和核心关系)(10)

cpu核心怎么区别(cpu和核心关系)(11)

cpu核心怎么区别(cpu和核心关系)(12)

[root@cat logs]# grep processor /proc/cpuinfo processor : 0 processor : 1 processor : 2 processor : 3 processor : 4 processor : 5 processor : 6 processor : 7

cpu核心怎么区别(cpu和核心关系)(13)

cpu核心怎么区别(cpu和核心关系)(14)

[root@cat logs]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 94 model name : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz stepping : 3 microcode : 214 cpu MHz : 800.000 cache size : 8192 KB physical id : 0 siblings : 8 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 22 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 xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat xsaveopt pln pts dtherm hwp hwp_noitfy hwp_act_window hwp_epp invpcid_single ssbd pti retpoline ibrs ibpb tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx md_clear flush_l1d bogomips : 6816.07 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 : 94 model name : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz stepping : 3 microcode : 214 cpu MHz : 800.000 cache size : 8192 KB physical id : 0 siblings : 8 core id : 1 cpu cores : 4 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 22 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 xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat xsaveopt pln pts dtherm hwp hwp_noitfy hwp_act_window hwp_epp invpcid_single ssbd pti retpoline ibrs ibpb tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx md_clear flush_l1d bogomips : 6816.07 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management:

cpu核心怎么区别(cpu和核心关系)(15)

cpu核心怎么区别(cpu和核心关系)(16)

cpu核心怎么区别(cpu和核心关系)(17)

ps:平均负载有是哪个数值,我们应该关注哪个呢?

实际上,我们都需要关注。就好比上海4月的天气,如果只看晚上天气,感觉在过冬天呢,单如果你结合了早上,中午,晚上三个时间点的温度看,基本就可以全方位了解这一天的天气情况了。

cpu核心怎么区别(cpu和核心关系)(18)

cpu核心怎么区别(cpu和核心关系)(19)

cpu核心怎么区别(cpu和核心关系)(20)

cpu核心怎么区别(cpu和核心关系)(21)

cpu核心怎么区别(cpu和核心关系)(22)

每秒一次 一共10次

cpu核心怎么区别(cpu和核心关系)(23)

cpu核心怎么区别(cpu和核心关系)(24)

cpu核心怎么区别(cpu和核心关系)(25)

[root@host-234 ~]# mpstat Linux 3.10.0-1127.19.1.el7.x86_64 (host-234) 2022年08月17日 _x86_64_ (32 CPU) 19时32分58秒 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle 19时32分58秒 all 1.61 0.00 0.73 0.30 0.00 0.02 0.00 0.00 0.00 97.34

cpu核心怎么区别(cpu和核心关系)(26)

cpu核心怎么区别(cpu和核心关系)(27)

cpu核心怎么区别(cpu和核心关系)(28)

压力测试:8个进程 一个进程写1g

cpu核心怎么区别(cpu和核心关系)(29)

cpu核心怎么区别(cpu和核心关系)(30)

[root@host-234 ~]# iostat Linux 3.10.0-1127.19.1.el7.x86_64 (host-234) 2022年08月17日 _x86_64_ (32 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 1.61 0.00 0.74 0.30 0.00 97.34 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sdb 14.40 1.41 308.56 53843909 11814063450 sda 17.47 13.29 373.83 508979129 14313025448 dm-0 3.98 9.91 27.04 379521960 1035293816 dm-1 0.27 0.29 0.79 10929152 30295048 dm-2 5.63 3.10 345.98 118521576 13246791308 dm-3 18.15 1.41 308.58 53814784 11814705692 dm-4 61.06 1276.28 231.08 48866147007 8847722188 dm-5 0.08 0.01 2.61 437776 99887371 dm-6 0.10 0.02 2.54 626500 97072884 dm-17 0.06 0.02 1.93 676396 74035226 dm-18 0.00 0.00 0.00 129956 10067 dm-19 0.00 0.00 0.00 146961 11486 dm-10 0.06 0.09 1.55 3353342 59327101 dm-8 0.00 0.00 0.00 158923 63592 dm-9 0.07 0.36 1.41 13791169 54042151 dm-13 0.00 0.02 0.00 608332 95174 dm-11 0.00 0.01 0.00 200058 76432 dm-12 2.54 9.93 81.39 380211145 3116143442 dm-14 0.00 0.02 0.00 908663 107019 dm-15 0.00 0.01 0.00 229295 88952 dm-16 0.00 0.00 0.01 100564 352063

cpu核心怎么区别(cpu和核心关系)(31)

iotop

cpu核心怎么区别(cpu和核心关系)(32)

总结:

cpu核心怎么区别(cpu和核心关系)(33)

cpu核心怎么区别(cpu和核心关系)(34)

cpu核心怎么区别(cpu和核心关系)(35)

cpu核心怎么区别(cpu和核心关系)(36)

cpu核心怎么区别(cpu和核心关系)(37)

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页