码迷,mamicode.com
首页 > 系统相关 > 详细

进程管理命令

时间:2018-02-28 23:02:59      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:context   run   mice   --   格式   rmi   dev   byte   rest   

ps   #显示进程信息

BSD风格参数

a 选项包括所有终端中的进程
x 选项包括不链接终端的进程
u 选项显示进程所有者的信息
f 选项显示进程树,相当于 –forest
k|–sort 属性 对属性排序,属性前加- 表示倒序
o 属性… 选项显示定制的信息 pid、cmd、%cpu、%mem
L 显示支持的属性列表

 

UNIX参数风格

-C cmdlist 指定命令,多个命令用,分隔
-L 显示线程
-e: 显示所有进程,相当于-A
-f: 显示完整格式程序信息
-F: 显示更完整格式的进程信息
-H: 以进程层级格式显示进程相关信息
-u userlist 指定有效的用户ID或名称
-U userlist 指定真正的用户ID或名称
-g gid或groupname 指定有效的gid或组名称
-G gid或groupname 指定真正的gid或组名称
-p pid 显示指pid的进程
–ppid pid 显示属于pid的子进程
-M 显示SELinux信息,相当于Z

平常我比较喜欢使用的命令式BSD风格的 ps aux  现实的比较全面 相对UNIX风格的  ps -ef 现实的信息会更多一些

使用 ps auxf则会显示父进程的子进程,已进程树的方式展示。

ps axo %mem %cpu 。。。  可以列出单项的数据

 

STAT:进程状态
R:running
S: interruptable sleeping
D: uninterruptable sleeping
T: stopped
Z: zombie
+: 前台进程
l: 多线程进程
L:内存分页并带锁
N:低优先级进程
<: 高优先级进程
s: session leader,会话(子进程)发起者

 

ni: nice值
pri: priority 优先级
psr: processor CPU编号
rtprio: 实时优先级

技术分享图片
示例:
ps axo pid,cmd,psr,ni,pri,rtprio

  1. [root@newhostname yum.repos.d]# ps axo pid,cmd,psr,ni,pri,rtprio
  2. PID CMD PSR NI PRI RTPRIO
  3. 1 /usr/lib/systemd/systemd -- 0 0 19 -
  4. 2 [kthreadd] 0 0 19 -
  5. 3 [ksoftirqd/0] 0 0 19 -
  6. 5 [kworker/0:0H] 0 -20 39 -
  7. 7 [migration/0] 0 - 139 99
  8. 8 [rcu_bh] 0 0 19 -
  9. 9 [rcu_sched] 0 0 19 -
  10. 10 [watchdog/0] 0 - 139 99
  11. 12 [kdevtmpfs] 0 0 19 -
  12. 13 [netns] 0 -20 39 -
  13. 14 [khungtaskd] 0 0 19 -
  14. 15 [writeback] 0 -20 39 -
  15. 16 [kintegrityd] 0 -20 39 -
  16. 17 [bioset] 0 -20 39 -
  17. 18 [kblockd] 0 -20 39 -
  18. 19 [md] 0 -20 39 -
  19. 25 [kswapd0] 0 0 19 -
  20. 26 [ksmd] 0 5 14 -
  21. 27 [khugepaged] 0 19 0 -
  22. 28 [crypto] 0 -20 39 -
  23. 36 [kthrotld] 0 -20 39 -
  24. 37 [kworker/u256:1] 0 0 19 -
  25. 38 [kmpath_rdacd] 0 -20 39 -
  26. 39 [kpsmoused] 0 -20 39 -
  27. 41 [ipv6_addrconf] 0 -20 39 -
  28. 60 [deferwq] 0 -20 39 -
  29. 92 [kauditd] 0 0 19 -
  30. 272 [ata_sff] 0 -20 39 -
  31. 273 [scsi_eh_0] 0 0 19 -
  32. 274 [scsi_tmf_0] 0 -20 39 -
  33. 275 [scsi_eh_1] 0 0 19 -
  34. 276 [scsi_tmf_1] 0 -20 39 -
  35. 278 [mpt_poll_0] 0 -20 39 -
  36. 280 [mpt/0] 0 -20 39 -
  37. 288 [scsi_eh_2] 0 0 19 -
  38. 289 [scsi_tmf_2] 0 -20 39 -
  39. 290 [ttm_swap] 0 -20 39 -
  40. 413 [kdmflush] 0 -20 39 -
  41. 414 [bioset] 0 -20 39 -
  42. 424 [kdmflush] 0 -20 39 -
  43. 425 [bioset] 0 -20 39 -
  44. 438 [bioset] 0 -20 39 -
  45. 439 [xfsalloc] 0 -20 39 -
  46. 440 [xfs_mru_cache] 0 -20 39 -
  47. 441 [xfs-buf/dm-0] 0 -20 39 -
  48. 442 [xfs-data/dm-0] 0 -20 39 -
  49. 443 [xfs-conv/dm-0] 0 -20 39 -
  50. 444 [xfs-cil/dm-0] 0 -20 39 -
  51. 445 [xfs-reclaim/dm-] 0 -20 39 -
  52. 446 [xfs-log/dm-0] 0 -20 39 -
  53. 447 [xfs-eofblocks/d] 0 -20 39 -
  54. 448 [xfsaild/dm-0] 0 0 19 -
  55. 525 /usr/lib/systemd/systemd-jo 0 0 19 -
  56. 541 /usr/sbin/lvmetad -f 0 0 19 -

 

renice 调整进程的优先级(nice的优先级)

  1. [root@newhostname yum.repos.d]# renice 10 5915
  2. 5915 (进程 ID) 旧优先级为 0,新优先级为 10
  3. [root@newhostname yum.repos.d]# renice -5 5915
  4. 5915 (进程 ID) 旧优先级为 10,新优先级为 -5

 

nice 选择一个优先级并运行程序

  1. [root@newhostname yum.repos.d]# nice -n -10 ping 127.0.0.1
  2. PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
  3. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.041 ms
  4. 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.308 ms
  5. 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.069 ms

pgrep 搜索进程,支持正则表达式(扩展的)

pgrep -t pts/1   #-t terminal

   -a 显示完整的进程名

           -u user

-l 显示进程名

pidof  根据进程名反查进程号

lsof -i  查看某个端口被哪个进程占用,例:

lsof -i :22

vmstat 显示内存信息

vmstat -s 显示内存统计信息

  1. [root@newhostname ~]# vmstat -s
  2. 999696 K total memory
  3. 117204 K used memory
  4. 78544 K active memory
  5. 93468 K inactive memory
  6. 714460 K free memory
  7. 2352 K buffer memory
  8. 165680 K swap cache
  9. 2097148 K total swap
  10. 0 K used swap
  11. 2097148 K free swap
  12. 573 non-nice user cpu ticks
  13. 0 nice user cpu ticks
  14. 1312 system cpu ticks
  15. 366510 idle cpu ticks
  16. 19 IO-wait cpu ticks
  17. 0 IRQ cpu ticks
  18. 50 softirq cpu ticks
  19. 0 stolen cpu ticks
  20. 149021 pages paged in
  21. 16217 pages paged out
  22. 0 pages swapped in
  23. 0 pages swapped out
  24. 272164 interrupts
  25. 286714 CPU context switches
  26. 1513646276 boot time
  27. 1809 forks

iostat:统计CPU和设备IO信息

pmap命令:进程对应的内存映射

  1. [root@newhostname 2017-12-19]# pmap 1365
  2. 1365: /usr/sbin/atd -f
  3. 000055e12e3ed000 24K r-x-- atd
  4. 000055e12e5f2000 4K r---- atd
  5. 000055e12e5f3000 4K rw--- atd
  6. 000055e13017e000 132K rw--- [ anon ]
  7. 00007f6335653000 48K r-x-- libnss_files-2.17.so
  8. 00007f633565f000 2044K ----- libnss_files-2.17.so
  9. 00007f633585e000 4K r---- libnss_files-2.17.so
  10. 00007f633585f000 4K rw--- libnss_files-2.17.so
  11. 00007f6335860000 24K rw--- [ anon ]
  12. 00007f6335866000 16K r-x-- libcap-ng.so.0.0.0
  13. 00007f633586a000 2048K ----- libcap-ng.so.0.0.0
  14. 00007f6335a6a000 4K r---- libcap-ng.so.0.0.0
  15. 00007f6335a6b000 4K rw--- libcap-ng.so.0.0.0
  16. 00007f6335a6c000 116K r-x-- libaudit.so.1.0.0
  17. 00007f6335a89000 2044K ----- libaudit.so.1.0.0
  18. 00007f6335c88000 4K r---- libaudit.so.1.0.0
  19. 00007f6335c89000 4K rw--- libaudit.so.1.0.0
  20. 00007f6335c8a000 40K rw--- [ anon ]
  21. 00007f6335c94000 8K r-x-- libdl-2.17.so
  22. 00007f6335c96000 2048K ----- libdl-2.17.so
  23. 00007f6335e96000 4K r---- libdl-2.17.so
  24. 00007f6335e97000 4K rw--- libdl-2.17.so
  25. 00007f6335e98000 384K r-x-- libpcre.so.1.2.0
  26. 00007f6335ef8000 2048K ----- libpcre.so.1.2.0
  27. 00007f63360f8000 4K r---- libpcre.so.1.2.0
  28. 00007f63360f9000 4K rw--- libpcre.so.1.2.0
  29. 00007f63360fa000 92K r-x-- libpthread-2.17.so
  30. 00007f6336111000 2044K ----- libpthread-2.17.so
  31. 00007f6336310000 4K r---- libpthread-2.17.so
  32. 00007f6336311000 4K rw--- libpthread-2.17.so
  33. 00007f6336312000 16K rw--- [ anon ]
  34. 00007f6336316000 1760K r-x-- libc-2.17.so
  35. 00007f63364ce000 2048K ----- libc-2.17.so
  36. 00007f63366ce000 16K r---- libc-2.17.so
  37. 00007f63366d2000 8K rw--- libc-2.17.so
  38. 00007f63366d4000 20K rw--- [ anon ]
  39. 00007f63366d9000 12K r-x-- libpam_misc.so.0.82.0
  40. 00007f63366dc000 2044K ----- libpam_misc.so.0.82.0
  41. 00007f63368db000 4K r---- libpam_misc.so.0.82.0
  42. 00007f63368dc000 4K rw--- libpam_misc.so.0.82.0
  43. 00007f63368dd000 52K r-x-- libpam.so.0.83.1
  44. 00007f63368ea000 2048K ----- libpam.so.0.83.1
  45. 00007f6336aea000 4K r---- libpam.so.0.83.1
  46. 00007f6336aeb000 4K rw--- libpam.so.0.83.1
  47. 00007f6336aec000 144K r-x-- libselinux.so.1
  48. 00007f6336b10000 2044K ----- libselinux.so.1
  49. 00007f6336d0f000 4K r---- libselinux.so.1
  50. 00007f6336d10000 4K rw--- libselinux.so.1
  51. 00007f6336d11000 8K rw--- [ anon ]
  52. 00007f6336d13000 28K r-x-- librt-2.17.so
  53. 00007f6336d1a000 2044K ----- librt-2.17.so
  54. 00007f6336f19000 4K r---- librt-2.17.so
  55. 00007f6336f1a000 4K rw--- librt-2.17.so
  56. 00007f6336f1b000 132K r-x-- ld-2.17.so
  57. 00007f633711e000 24K rw--- [ anon ]
  58. 00007f633713a000 8K rw--- [ anon ]
  59. 00007f633713c000 4K r---- ld-2.17.so
  60. 00007f633713d000 4K rw--- ld-2.17.so
  61. 00007f633713e000 4K rw--- [ anon ]
  62. 00007ffc57ed2000 132K rw--- [ stack ]
  63. 00007ffc57fe1000 8K r-x-- [ anon ]
  64. ffffffffff600000 4K r-x-- [ anon ]
  65. total 25860K

另一种表现形式cat /proc/PID/maps

  1. [root@newhostname 2017-12-19]# cat /proc/1365/maps
  2. 55e12e3ed000-55e12e3f3000 r-xp 00000000 fd:00 36085062 /usr/sbin/atd
  3. 55e12e5f2000-55e12e5f3000 r--p 00005000 fd:00 36085062 /usr/sbin/atd
  4. 55e12e5f3000-55e12e5f4000 rw-p 00006000 fd:00 36085062 /usr/sbin/atd
  5. 55e13017e000-55e13019f000 rw-p 00000000 00:00 0 [heap]
  6. 7f6335653000-7f633565f000 r-xp 00000000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  7. 7f633565f000-7f633585e000 ---p 0000c000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  8. 7f633585e000-7f633585f000 r--p 0000b000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  9. 7f633585f000-7f6335860000 rw-p 0000c000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  10. 7f6335860000-7f6335866000 rw-p 00000000 00:00 0
  11. 7f6335866000-7f633586a000 r-xp 00000000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  12. 7f633586a000-7f6335a6a000 ---p 00004000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  13. 7f6335a6a000-7f6335a6b000 r--p 00004000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  14. 7f6335a6b000-7f6335a6c000 rw-p 00005000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  15. 7f6335a6c000-7f6335a89000 r-xp 00000000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  16. 7f6335a89000-7f6335c88000 ---p 0001d000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  17. 7f6335c88000-7f6335c89000 r--p 0001c000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  18. 7f6335c89000-7f6335c8a000 rw-p 0001d000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  19. 7f6335c8a000-7f6335c94000 rw-p 00000000 00:00 0
  20. 7f6335c94000-7f6335c96000 r-xp 00000000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  21. 7f6335c96000-7f6335e96000 ---p 00002000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  22. 7f6335e96000-7f6335e97000 r--p 00002000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  23. 7f6335e97000-7f6335e98000 rw-p 00003000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  24. 7f6335e98000-7f6335ef8000 r-xp 00000000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  25. 7f6335ef8000-7f63360f8000 ---p 00060000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  26. 7f63360f8000-7f63360f9000 r--p 00060000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  27. 7f63360f9000-7f63360fa000 rw-p 00061000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  28. 7f63360fa000-7f6336111000 r-xp 00000000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  29. 7f6336111000-7f6336310000 ---p 00017000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  30. 7f6336310000-7f6336311000 r--p 00016000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  31. 7f6336311000-7f6336312000 rw-p 00017000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  32. 7f6336312000-7f6336316000 rw-p 00000000 00:00 0
  33. 7f6336316000-7f63364ce000 r-xp 00000000 fd:00 33740617 /usr/lib64/libc-2.17.so
  34. 7f63364ce000-7f63366ce000 ---p 001b8000 fd:00 33740617 /usr/lib64/libc-2.17.so
  35. 7f63366ce000-7f63366d2000 r--p 001b8000 fd:00 33740617 /usr/lib64/libc-2.17.so
  36. 7f63366d2000-7f63366d4000 rw-p 001bc000 fd:00 33740617 /usr/lib64/libc-2.17.so
  37. 7f63366d4000-7f63366d9000 rw-p 00000000 00:00 0
  38. 7f63366d9000-7f63366dc000 r-xp 00000000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  39. 7f63366dc000-7f63368db000 ---p 00003000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  40. 7f63368db000-7f63368dc000 r--p 00002000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  41. 7f63368dc000-7f63368dd000 rw-p 00003000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  42. 7f63368dd000-7f63368ea000 r-xp 00000000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  43. 7f63368ea000-7f6336aea000 ---p 0000d000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  44. 7f6336aea000-7f6336aeb000 r--p 0000d000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  45. 7f6336aeb000-7f6336aec000 rw-p 0000e000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  46. 7f6336aec000-7f6336b10000 r-xp 00000000 fd:00 33788778 /usr/lib64/libselinux.so.1
  47. 7f6336b10000-7f6336d0f000 ---p 00024000 fd:00 33788778 /usr/lib64/libselinux.so.1
  48. 7f6336d0f000-7f6336d10000 r--p 00023000 fd:00 33788778 /usr/lib64/libselinux.so.1
  49. 7f6336d10000-7f6336d11000 rw-p 00024000 fd:00 33788778 /usr/lib64/libselinux.so.1
  50. 7f6336d11000-7f6336d13000 rw-p 00000000 00:00 0
  51. 7f6336d13000-7f6336d1a000 r-xp 00000000 fd:00 33740647 /usr/lib64/librt-2.17.so
  52. 7f6336d1a000-7f6336f19000 ---p 00007000 fd:00 33740647 /usr/lib64/librt-2.17.so
  53. 7f6336f19000-7f6336f1a000 r--p 00006000 fd:00 33740647 /usr/lib64/librt-2.17.so
  54. 7f6336f1a000-7f6336f1b000 rw-p 00007000 fd:00 33740647 /usr/lib64/librt-2.17.so
  55. 7f6336f1b000-7f6336f3c000 r-xp 00000000 fd:00 33740610 /usr/lib64/ld-2.17.so
  56. 7f633711e000-7f6337124000 rw-p 00000000 00:00 0
  57. 7f633713a000-7f633713c000 rw-p 00000000 00:00 0
  58. 7f633713c000-7f633713d000 r--p 00021000 fd:00 33740610 /usr/lib64/ld-2.17.so
  59. 7f633713d000-7f633713e000 rw-p 00022000 fd:00 33740610 /usr/lib64/ld-2.17.so
  60. 7f633713e000-7f633713f000 rw-p 00000000 00:00 0
  61. 7ffc57ed2000-7ffc57ef3000 rw-p 00000000 00:00 0 [stack]
  62. 7ffc57fe1000-7ffc57fe3000 r-xp 00000000 00:00 0 [vdso]
  63. ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
  64. [root@newhostname 2017-12-19]#
  65. [root@newhostname 2017-12-19]#
  66. [root@newhostname 2017-12-19]# cat /proc/1365/maps
  67. 55e12e3ed000-55e12e3f3000 r-xp 00000000 fd:00 36085062 /usr/sbin/atd
  68. 55e12e5f2000-55e12e5f3000 r--p 00005000 fd:00 36085062 /usr/sbin/atd
  69. 55e12e5f3000-55e12e5f4000 rw-p 00006000 fd:00 36085062 /usr/sbin/atd
  70. 55e13017e000-55e13019f000 rw-p 00000000 00:00 0 [heap]
  71. 7f6335653000-7f633565f000 r-xp 00000000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  72. 7f633565f000-7f633585e000 ---p 0000c000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  73. 7f633585e000-7f633585f000 r--p 0000b000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  74. 7f633585f000-7f6335860000 rw-p 0000c000 fd:00 33740635 /usr/lib64/libnss_files-2.17.so
  75. 7f6335860000-7f6335866000 rw-p 00000000 00:00 0
  76. 7f6335866000-7f633586a000 r-xp 00000000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  77. 7f633586a000-7f6335a6a000 ---p 00004000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  78. 7f6335a6a000-7f6335a6b000 r--p 00004000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  79. 7f6335a6b000-7f6335a6c000 rw-p 00005000 fd:00 33789147 /usr/lib64/libcap-ng.so.0.0.0
  80. 7f6335a6c000-7f6335a89000 r-xp 00000000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  81. 7f6335a89000-7f6335c88000 ---p 0001d000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  82. 7f6335c88000-7f6335c89000 r--p 0001c000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  83. 7f6335c89000-7f6335c8a000 rw-p 0001d000 fd:00 33789149 /usr/lib64/libaudit.so.1.0.0
  84. 7f6335c8a000-7f6335c94000 rw-p 00000000 00:00 0
  85. 7f6335c94000-7f6335c96000 r-xp 00000000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  86. 7f6335c96000-7f6335e96000 ---p 00002000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  87. 7f6335e96000-7f6335e97000 r--p 00002000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  88. 7f6335e97000-7f6335e98000 rw-p 00003000 fd:00 33740623 /usr/lib64/libdl-2.17.so
  89. 7f6335e98000-7f6335ef8000 r-xp 00000000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  90. 7f6335ef8000-7f63360f8000 ---p 00060000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  91. 7f63360f8000-7f63360f9000 r--p 00060000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  92. 7f63360f9000-7f63360fa000 rw-p 00061000 fd:00 33788768 /usr/lib64/libpcre.so.1.2.0
  93. 7f63360fa000-7f6336111000 r-xp 00000000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  94. 7f6336111000-7f6336310000 ---p 00017000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  95. 7f6336310000-7f6336311000 r--p 00016000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  96. 7f6336311000-7f6336312000 rw-p 00017000 fd:00 33740643 /usr/lib64/libpthread-2.17.so
  97. 7f6336312000-7f6336316000 rw-p 00000000 00:00 0
  98. 7f6336316000-7f63364ce000 r-xp 00000000 fd:00 33740617 /usr/lib64/libc-2.17.so
  99. 7f63364ce000-7f63366ce000 ---p 001b8000 fd:00 33740617 /usr/lib64/libc-2.17.so
  100. 7f63366ce000-7f63366d2000 r--p 001b8000 fd:00 33740617 /usr/lib64/libc-2.17.so
  101. 7f63366d2000-7f63366d4000 rw-p 001bc000 fd:00 33740617 /usr/lib64/libc-2.17.so
  102. 7f63366d4000-7f63366d9000 rw-p 00000000 00:00 0
  103. 7f63366d9000-7f63366dc000 r-xp 00000000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  104. 7f63366dc000-7f63368db000 ---p 00003000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  105. 7f63368db000-7f63368dc000 r--p 00002000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  106. 7f63368dc000-7f63368dd000 rw-p 00003000 fd:00 34310272 /usr/lib64/libpam_misc.so.0.82.0
  107. 7f63368dd000-7f63368ea000 r-xp 00000000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  108. 7f63368ea000-7f6336aea000 ---p 0000d000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  109. 7f6336aea000-7f6336aeb000 r--p 0000d000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  110. 7f6336aeb000-7f6336aec000 rw-p 0000e000 fd:00 34294046 /usr/lib64/libpam.so.0.83.1
  111. 7f6336aec000-7f6336b10000 r-xp 00000000 fd:00 33788778 /usr/lib64/libselinux.so.1
  112. 7f6336b10000-7f6336d0f000 ---p 00024000 fd:00 33788778 /usr/lib64/libselinux.so.1
  113. 7f6336d0f000-7f6336d10000 r--p 00023000 fd:00 33788778 /usr/lib64/libselinux.so.1
  114. 7f6336d10000-7f6336d11000 rw-p 00024000 fd:00 33788778 /usr/lib64/libselinux.so.1
  115. 7f6336d11000-7f6336d13000 rw-p 00000000 00:00 0
  116. 7f6336d13000-7f6336d1a000 r-xp 00000000 fd:00 33740647 /usr/lib64/librt-2.17.so
  117. 7f6336d1a000-7f6336f19000 ---p 00007000 fd:00 33740647 /usr/lib64/librt-2.17.so
  118. 7f6336f19000-7f6336f1a000 r--p 00006000 fd:00 33740647 /usr/lib64/librt-2.17.so
  119. 7f6336f1a000-7f6336f1b000 rw-p 00007000 fd:00 33740647 /usr/lib64/librt-2.17.so
  120. 7f6336f1b000-7f6336f3c000 r-xp 00000000 fd:00 33740610 /usr/lib64/ld-2.17.so
  121. 7f633711e000-7f6337124000 rw-p 00000000 00:00 0
  122. 7f633713a000-7f633713c000 rw-p 00000000 00:00 0
  123. 7f633713c000-7f633713d000 r--p 00021000 fd:00 33740610 /usr/lib64/ld-2.17.so
  124. 7f633713d000-7f633713e000 rw-p 00022000 fd:00 33740610 /usr/lib64/ld-2.17.so
  125. 7f633713e000-7f633713f000 rw-p 00000000 00:00 0
  126. 7ffc57ed2000-7ffc57ef3000 rw-p 00000000 00:00 0 [stack]
  127. 7ffc57fe1000-7ffc57fe3000 r-xp 00000000 00:00 0 [vdso]
  128. ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

iostat  IO吞吐

iotop 类似top形式的IO吞吐

glances一个可以查看远端系统进程的软件 。

进程管理命令

标签:context   run   mice   --   格式   rmi   dev   byte   rest   

原文地址:https://www.cnblogs.com/momenglin/p/8485977.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!