【Linux】如何查看CPU、内存和磁盘及其性能测试

1.CPU 信息

  • lscpu 命令可以查看 CPU 的详细信息
# arm
$lscpu
Architecture:           aarch64
  CPU op-mode(s):       64-bit
  Byte Order:           Little Endian
CPU(s):                 xxx
  On-line CPU(s) list:  0-xxx
Vendor ID:              HiSilicon
  BIOS Vendor ID:       HiSilicon
  Model name:           Kunpeng-920
    BIOS Model name:    Kunpeng 920-xxxx
    Model:              0
    Thread(s) per core: x
    Core(s) per socket: xx
    Socket(s):          x
    Stepping:           0x1
    BogoMIPS:           x00.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
Caches (sum of all):
  L1d:                  x MiB (128 instances)
  L1i:                  x MiB (128 instances)
  L2:                   xx MiB (128 instances)
  L3:                   xxx MiB (4 instances)
NUMA:
  NUMA node(s):         x
  NUMA node0 CPU(s):    0-xx
  NUMA node1 CPU(s):    xx-xx
  NUMA node2 CPU(s):    xx-xx
  NUMA node3 CPU(s):    xx-xxx
Vulnerabilities:
  省略...

# x86
$lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                64
On-line CPU(s) list:   0-63
Thread(s) per core:    2
Core(s) per socket:    16
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 106
Model name:            Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz
Stepping:              6
CPU MHz:               800.000
CPU max MHz:           2401.0000
CPU min MHz:           800.0000
BogoMIPS:              4800.00
Virtualization:        VT-x
L1d cache:             48K
L1i cache:             32K
L2 cache:              1280K
L3 cache:              24576K
NUMA node0 CPU(s):     0-15,32-47
NUMA node1 CPU(s):     16-31,48-63
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 aperfmperf eagerfpu pni pclmulqdq dtes64 ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 intel_pt ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq spec_ctrl intel_stibp flush_l1d arch_capabilities
  • cat /proc/cpuinfo 命令可以查看 CPU 的更多信息
# arm
$cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 200.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
CPU implementer : 0x48
CPU architecture: 8
CPU variant     : 0x1
CPU part        : 0xd01
CPU revision    : 0

processor       : 1
BogoMIPS        : 200.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
CPU implementer : 0x48
CPU architecture: 8
CPU variant     : 0x1
CPU part        : 0xd01
CPU revision    : 0

processor       : 2
BogoMIPS        : 200.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
CPU implementer : 0x48
CPU architecture: 8
CPU variant     : 0x1
CPU part        : 0xd01
CPU revision    : 0
省略..

# x86
$cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 106
model name      : Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz
stepping        : 6
microcode       : 0xd0002c1
cpu MHz         : 800.000
cache size      : 24576 KB
physical id     : 0
siblings        : 32
core id         : 0
cpu cores       : 16
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 27
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 aperfmperf eagerfpu pni pclmulqdq dtes64 ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 intel_pt ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq spec_ctrl intel_stibp flush_l1d arch_capabilities
bogomips        : 4800.00
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 57 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 106
model name      : Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz
stepping        : 6
microcode       : 0xd0002c1
cpu MHz         : 800.000
cache size      : 24576 KB
physical id     : 0
siblings        : 32
core id         : 1
cpu cores       : 16
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 27
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 aperfmperf eagerfpu pni pclmulqdq dtes64 ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 intel_pt ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq spec_ctrl intel_stibp flush_l1d arch_capabilities
bogomips        : 4800.00
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 57 bits virtual
power management:
省略..

2.内存信息

  • dmidecode 命令查看内存的型号
    显示系统中所有安装的内存条的详细信息,包括型号、容量、速度和制造商等
 `dmidecode` 命令查看内存信息
  • free -h 命令可以查看内存的总量和使用情况
$free -h
              total        used        free      shared  buff/cache   available
Mem:           503G         31G        465G         28M        5.8G        469G

  • cat /proc/meminfo 命令可以查看内存的更多信息
# arm
$cat /proc/meminfo
MemTotal:       229434240 kB
MemFree:        208726588 kB
MemAvailable:   215668132 kB
Buffers:          899300 kB
Cached:          7011544 kB
SwapCached:            0 kB
Active:          4941448 kB
Inactive:       10553548 kB
Active(anon):      65020 kB
Inactive(anon):  7602564 kB
Active(file):    4876428 kB
Inactive(file):  2950984 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:      33554428 kB
SwapFree:       33554428 kB
Dirty:                44 kB
Writeback:             0 kB
AnonPages:       7562544 kB
Mapped:           142916 kB
Shmem:             83432 kB
KReclaimable:     429656 kB
Slab:            1067776 kB
SReclaimable:     429656 kB
SUnreclaim:       638120 kB
KernelStack:       52560 kB
PageTables:        31520 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    148271548 kB
Committed_AS:   16565252 kB
VmallocTotal:   135290159040 kB
VmallocUsed:      400412 kB
VmallocChunk:          0 kB
Percpu:           157696 kB
HardwareCorrupted:     0 kB
AnonHugePages:   6852608 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:          65536 kB
CmaFree:             160 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB

# x86
$cat /proc/meminfo
MemTotal:       527535308 kB
MemFree:        488599912 kB
MemAvailable:   492868268 kB
Buffers:            1668 kB
Cached:          2666268 kB
SwapCached:            0 kB
Active:         30404808 kB
Inactive:         624980 kB
Active(anon):   28362100 kB
Inactive(anon):    28620 kB
Active(file):    2042708 kB
Inactive(file):   596360 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       4194300 kB
SwapFree:        4194300 kB
Dirty:               420 kB
Writeback:             0 kB
AnonPages:      28363212 kB
Mapped:           174120 kB
Shmem:             28868 kB
Slab:            3456560 kB
SReclaimable:    3029568 kB
SUnreclaim:       426992 kB
KernelStack:       65520 kB
PageTables:        79072 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    267961952 kB
Committed_AS:   47249856 kB
VmallocTotal:   34359738367 kB
VmallocUsed:     1136556 kB
VmallocChunk:   34089998332 kB
HardwareCorrupted:     0 kB
AnonHugePages:  26982400 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      506952 kB
DirectMap2M:     9314304 kB
DirectMap1G:    528482304 kB

3.网络信息

  • lspci 命令查看网卡型号
    列出系统中所有的以太网控制器,包括型号和供应商信息
$lspci
  • ip 命令查看网卡信息
$ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether ac:b3:b5:2a:84:31 brd ff:ff:ff:ff:ff:ff
    inet 192.168.44.156/24 brd 192.168.44.255 scope global noprefixroute eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::ef0d:e8ab:38fc:92ff/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

  • ifconfig 命令可以查看网络接口的配置信息
$ifconfig
enp10s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether ac:b3:b5:1f:7c:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp11s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether ac:b3:b5:1f:7c:7f  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp125s0f0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 84:46:fe:26:04:f6  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp125s0f1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 84:46:fe:26:04:f7  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp125s0f2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 84:46:fe:26:04:f8  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp125s0f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 90.90.43.210  netmask 255.255.248.0  broadcast 90.90.47.255
        inet6 fe80::8646:feff:fe26:4f9  prefixlen 64  scopeid 0x20<link>
        ether 84:46:fe:26:04:f9  txqueuelen 1000  (Ethernet)
        RX packets 2144661  bytes 385041521 (367.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 510453  bytes 244088276 (232.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp12s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether ac:b3:b5:1f:7c:80  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp13s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether ac:b3:b5:1f:7c:81  txqueuelen 1000  (Ethernet)
        RX packets 43150  bytes 14754480 (14.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether ac:b3:b5:1f:78:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
省略...
# server1 节点
$yum install iperf3
$iperf3 -s
-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
Accepted connection from 192.168.70.64, port 41116
[  5] local 192.168.70.62 port 5201 connected to 192.168.70.64 port 41132
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   965 MBytes  8.09 Gbits/sec
[  5]   1.00-2.00   sec  1.10 GBytes  9.41 Gbits/sec
[  5]   2.00-3.00   sec  1.10 GBytes  9.41 Gbits/sec
...省略
[  5]  59.00-60.00  sec  1.10 GBytes  9.41 Gbits/sec
[  5]  60.00-60.00  sec   266 KBytes  8.68 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-60.00  sec  65.4 GBytes  9.36 Gbits/sec                  receiver
-----------------------------------------------------------

# agent 1节点
$yum install iperf3
$iperf3 -c server1 -t 60
Connecting to host server1, port 5201
[  5] local 192.168.70.64 port 41132 connected to 192.168.70.62 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   968 MBytes  8.12 Gbits/sec   25    850 KBytes
[  5]   1.00-2.00   sec  1.10 GBytes  9.42 Gbits/sec    0   1.22 MBytes
...省略
[  5]  58.00-59.00  sec  1.09 GBytes  9.41 Gbits/sec    0   1.88 MBytes
[  5]  59.00-60.00  sec  1.10 GBytes  9.42 Gbits/sec    0   1.88 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  65.4 GBytes  9.36 Gbits/sec   75             sender
[  5]   0.00-60.00  sec  65.4 GBytes  9.36 Gbits/sec                  receiver

4.磁盘信息

  • df 命令可以查看磁盘空间的使用情况
$df -h
Filesystem                    Size  Used Avail Use% Mounted on
devtmpfs                      4.0M     0  4.0M   0% /dev
tmpfs                         110G     0  110G   0% /dev/shm
tmpfs                          44G   20M   44G   1% /run
tmpfs                         4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/mapper/openeuler00-root  3.6T   96G  3.3T   3% /
tmpfs                         110G   62M  110G   1% /tmp
/dev/sdb2                     2.0G  150M  1.7G   9% /boot
/dev/sdb1                     2.0G  6.4M  2.0G   1% /boot/efi
/dev/sdg1                     3.7T   27G  3.7T   1% /data/data5
/dev/sdh1                     3.7T   27G  3.7T   1% /data/data7
/dev/sdi1                     3.7T   27G  3.7T   1% /data/data8
/dev/sdj1                     3.7T   27G  3.7T   1% /data/data9
/dev/sdd1                     3.7T   27G  3.7T   1% /data/data3
/dev/sdc1                     3.7T   27G  3.7T   1% /data/data2
/dev/sdf1                     3.7T   27G  3.7T   1% /data/data6
/dev/sdk1                     3.7T   27G  3.7T   1% /data/data10
/dev/sde1                     3.7T   27G  3.7T   1% /data/data4
/dev/sdl1                     3.7T   27G  3.7T   1% /data/data11
/dev/sda1                     3.7T   27G  3.7T   1% /data/data1
  • iotop 命令可以查看磁盘的 I/O 活动情况
$iotop
Total DISK READ :       0.00 B/s | Total DISK WRITE :      47.39 K/s
Actual DISK READ:       0.00 B/s | Actual DISK WRITE:      33.85 K/s
  TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND
 6823 be/4 root        0.00 B/s   16.93 K/s  0.00 %  0.08 % java -Dproc_timelineserver -Djava.net.preferIPv4Stack=true -Dyarn.log.dir=/usr/local/hadoop/~pache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer [qtp644052207-14]
16851 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.06 % java -cp /usr/local/spark/conf/:/usr/local/spark/jars/*:/usr/local/hadoop/etc/hadoop/ -Xmx40~ds_bin_partitioned_varchar_parquet_3000 -f /root/omni-dev/sql/sql99/Q_51.sql [process reaper]
 8353 be/4 root        0.00 B/s    6.77 K/s  0.00 %  0.00 % java -Dproc_timelineserver -Djava.net.preferIPv4Stack=true -Dyarn.log.dir=/usr/local/hadoop/~pache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer [qtp644052207-14]
10223 be/4 root        0.00 B/s    3.39 K/s  0.00 %  0.00 % java -Dproc_timelineserver -Djava.net.preferIPv4Stack=true -Dyarn.log.dir=/usr/local/hadoop/~pache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer [qtp644052207-14]
62061 be/4 root        0.00 B/s    3.39 K/s  0.00 %  0.00 % java -Dproc_namenode -Djava.net.preferIPv4Stack=true -Dhdfs.audit.logger=INFO,NullAppender -~oop.policy.file=hadoop-policy.xml org.apache.hadoop.hdfs.server.namenode.NameNode [VM Thread]
63346 be/4 root        0.00 B/s    6.77 K/s  0.00 %  0.00 % java -Dproc_resourcemanager -Djava.net.preferIPv4Stack=true -Dservice.libdir=/usr/local/hado~,NullAppender org.apache.hadoop.yarn.server.resourcemanager.ResourceManager [SchedulerEventD]
15422 be/4 root        0.00 B/s    3.39 K/s  0.00 %  0.00 % java -cp /usr/local/spark/conf/:/usr/local/spark/jars/*:/usr/local/hadoop/etc/hadoop/ -Xmx1g org.apache.spark.deploy.history.HistoryServer [VM Thread]
15521 be/4 root        0.00 B/s    3.39 K/s  0.00 %  0.00 % java -cp /usr/local/spark/conf/:/usr/local/spark/jars/*:/usr/local/hadoop/etc/hadoop/ -Xmx1g org.apache.spark.deploy.history.HistoryServer [spark-history-t]
15527 be/4 root        0.00 B/s    3.39 K/s  0.00 %  0.00 % java -cp /usr/local/spark/conf/:/usr/local/spark/jars/*:/usr/local/hadoop/etc/hadoop/ -Xmx1g org.apache.spark.deploy.history.HistoryServer [log-replay-exec]
    1 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % systemd --switched-root --system --deserialize 22
    2 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kthreadd]
    3 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/0]
    5 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/0:0H]
    8 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/0]
    9 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcu_bh]
   10 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcu_sched]
   11 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [lru-add-drain]
   12 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/0]
   13 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/1]
   14 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/1]
   15 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/1]
   17 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/1:0H]
   18 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/2]
   19 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/2]
   20 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/2]
   22 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/2:0H]
   23 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/3]
   24 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/3]
   25 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/3]
   27 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/3:0H]
   28 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/4]
   29 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/4]
   30 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/4]
16415 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % java -Dproc_secondarynamenode -Djava.net.preferIPv4Stack=true -Dhdfs.audit.logger=INFO,NullA~=hadoop-policy.xml org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode [IPC Parameter S]
   32 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/4:0H]
   33 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/5]
   34 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/5]
   35 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/5]
省略...
  • dd 命令测试磁盘的读写性能
dd if=/dev/zero of=/root/test/testfile bs=1G count=1 oflag=direct
dd if=/root/test/testfile of=/dev/null bs=1G count=1 iflag=direct
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,088评论 5 459
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,715评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,361评论 0 319
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,099评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 60,987评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,063评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,486评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,175评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,440评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,518评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,305评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,190评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,550评论 3 298
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,880评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,152评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,451评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,637评论 2 335

推荐阅读更多精彩内容