Introduction to VPS and Web Technology Development

linux cpu,io,网络查看命令

自由vps 无分类


rocesses: 363 total, 2 running, 361 sleeping, 1623 threads            04:03:16

Load Avg: 2.84, 2.33, 2.22  CPU usage: 3.42% user, 3.58% sys, 92.99% idle

SharedLibs: 216M resident, 63M data, 20M linkedit.

MemRegions: 72403 total, 2890M resident, 179M private, 8484M shared.

PhysMem: 16G used (1698M wired), 178M unused.

VM: 2934G vsize, 1991M framework vsize, 0(0) swapins, 0(0) swapouts.

Networks: packets: 1427696/2590M in, 366914/1119M out.

Disks: 379934/6586M read, 208594/3381M written.

PID   COMMAND      %CPU TIME     #TH   #WQ  #PORT MEM    PURG   CMPRS  PGRP PPID

205   WindowServer 10.5 02:39.26 10    4    1030  577M-  238M   2104K  205  1

516   com.docker.h 7.5  35:46.97 12    0    36    7987M  0B     4660K  451  513

3591  Google Chrom 5.0  00:47.51 34    2    611   148M   52K    0B     3591 1

1138  Terminal     3.2  00:05.39 12    5    335   43M+   3216K  0B     1138 1

687   QQLive       2.6  20:22.00 104   7    1194  492M   56M    0B     687  1

3605  Google Chrom 2.6  00:42.17 16    1    151   213M+  0B     0B     3591 3591

0     kernel_task  2.2  05:00.84 144/6 0    0     384M   0B     0B     0    0

3952  top          2.1  00:00.65 1/1   0    25    3276K  0B     0B     3952 3844

3946  Google Chrom 1.2  00:04.60 18    1    188   121M+  0B     0B     3591 3591

3932  mdworker_sha 1.0  00:00.17 4     1    50    7324K+ 0B     0B     3932 1

227   AppleUserHID 0.7  00:05.39 3     2    67    740K   0B     0B     227  1

113   hidd         0.7  00:05.63 5     2    211   2288K  0B     16K    113  1

229   AppleUserHID 0.4  00:03.01 2     1    67    720K   0B     0B     229  1





列详解字段名 字段含义 案例
PID 进程ID 29404
USER 进程所有者 root
PR 进程的优先级别,越小越优先被执行 20
NI nice值:
负值表示高优先级;
正值表示低优先级 0
VIRT 进程占用的虚拟内存(kb) 7080
RES 进程占用的物理内存(kb) 6236
SHR 进程占用的共享内存(kb) 808
S 进程的状态:
S表示休眠;
R表示正在运行;
Z表示僵死;
N表示该进程优先值为负 S
%CPU 进程占用CPU的比例 1.0
%MEM 进程占用物理内存的比例 0.1
TIME+ 进程启动后,占用CPU的累加时间,与进程启动时间不同 389:38.71表示389分38.71秒
COMMAND 进程启动命令名称 sap1002


磁盘消耗查看 iostat:

langhuaili@langhuailideiMac dnmp %  iostat     

              disk0               disk1               disk2       cpu    load average

    KB/t  tps  MB/s     KB/t  tps  MB/s     KB/t  tps  MB/s  us sy id   1m   5m   15m

  100.30    0  0.00    17.33   24  0.40     3.94    0  0.00   1  2 97  2.03 2.26 2.22




查看cpu:


[root@ecs-20WpF ~]# cat /proc/cpuinfo 
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
stepping : 2
microcode : 0x1
cpu MHz : 2599.996
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
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 mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt md_clear spec_ctrl intel_stibp
bogomips : 5199.99
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

查看网络:

watch cat /proc/net/dev

 Every 2.0s: cat /proc/net/dev                                     Fri Apr  1 04:19:22 2022

Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs dr
op fifo colls carrier compressed
  eth0: 328533690947 5249830959    0    0    0     0          0         0 1941138709 11432
394    0    0    0     0       0          0
  eth1:     656       8    0    0    0     0          0         0      126 3    0
 0    0     0       0          0
    lo: 56322501  379872    0    0    0     0          0         0 56322501  379872    0
  0    0     0       0          0




使用chatGPT寻求答案
标签: 暂无标签

免责声明:

本站提供的资源,都来自网络,版权争议与本站无关,所有内容及软件的文章仅限用于学习和研究目的。不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,我们不保证内容的长久可用性,通过使用本站内容随之而来的风险与本站无关,您必须在下载后的24个小时之内,从您的电脑/手机中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。侵删请致信E-mail:master@freevpsweb.com

同类推荐
评论列表