5: 参数-R REALMEM,REALMEM这个值是指物理内存数量。此参数可以让smem在整个系统(-w)的输出中发现固件/硬件所耗用的内存数量(对比上下即可发现,注意firmware/hardware)
1: [root@DB-Server01 ~]# smem -R 24G -w 2: Area Used Cache Noncache 3: firmware/hardware 558296 0 558296 4: kernel image 0 0 0 5: kernel dynamic memory 22024108 21722972 301136 6: userspace memory 1907676 122436 1785240 7: free memory 675744 675744 0
6:参数-c 用来显示需要展示的列。
1: [root@DB-Server01 ~]# smem -c "name user pss" 2: Name User PSS 3: mingetty root 18 4: mingetty root 18 5: mingetty root 18 6: mingetty root 18 7: mingetty root 18 8: bash root 911 9: sftp-server root 939 10: cupsd root 1208 11: rsyslogd root 1403 12: smbd tibco 1474 13: hald haldaemon 1477 14: pickup postfix 1487 15: vmtoolsd root 2309 16: sshd root 2521 17: python root 5464 18: beremote root 7585 19: java weblogic 18454 20: java weblogic 31431 21: java weblogic 69389 22: java tomcat 339977 23: java tomcat 355037 24: java tomcat 421133 25: java weblogic 640531
7: 参数-s 根据某一列(例如 rss)来排序.