目录
查看当前CPU频率【cpufrequtils】【cpufreq-info】
知识扩展:Red Hat Enterprise Linux 和 Debian GNU/Linux 两者的发展介绍
10.使用【nmon】工具,查看服务器的性能(服务器的使用状况)
---------
1.查看CPU信息【lscpu】
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 36 bits physical, 48 bits virtual
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 55
Model name: Intel(R) Celeron(R) CPU J1800 @ 2.41GHz
Stepping: 9
CPU MHz: 2055.354
CPU max MHz: 2415.7000
CPU min MHz: 1332.8000
BogoMIPS: 4833.33
Virtualization: VT-x
L1d cache: 48 KiB
L1i cache: 64 KiB
L2 cache: 1 MiB
NUMA node0 CPU(s): 0,1
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT disabled
Vulnerability Meltdown: Mitigation; PTI
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP disabled, RSB filling
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
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 rdtscp lm constant_tsc ar
ch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 c
x16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid tsc_a
djust smep erms dtherm arat md_clear
===
查看当前CPU频率【cpufrequtils】【cpufreq-info】
先要安装工具
apt-get install cpufrequtils
然后查看
cpufreq-info
===
2.查看内存信息【free】
free -h
total used free shared buff/cache available
Mem: 7.7Gi 188Mi 4.4Gi 2.0Mi 3.1Gi 7.2Gi
Swap: 0B 0B 0B
===
Men:物理内存
Swap:交换内存。
当系统物理内存吃紧时,Linux 会将内存中不常访问的数据保存到 swap 上,
这样系统就有更多的物理内存为各个进程服务,而当系统需要访问 swap 上存储的内容时,
再将 swap 上的数据加载到内存中,这就是换出和换入。交换空间可以在一定程度上缓解
内存不足的情况,它需要读写磁盘数据,性能不是很高。swappiness 的参数,