大家好,又见面了,我是你们的朋友全栈君。
查看CPU 型号
host01:/home/oracle$lsattr -El proc0
frequency 3500000000 Processor Speed False
smt_enabled true Processor SMT enabled False
smt_threads 4 Processor SMT threads False
state enable Processor state False
type PowerPC_POWER7 Processor type False
host01:/home/oracle$
从这里可以看出,CPU 型号是 PowerPC_POWER7;
查看cpu个数
#lsdev -Cc processor | grep proc | wc -l
32
安装了32个cpu
查看cpu 核心数及频率
host01:/home/oracle$pmcycles -m
CPU 0 runs at 3500 MHz
CPU 1 runs at 3500 MHz
CPU 2 runs at 3500 MHz
CPU 3 runs at 3500 MHz
CPU 4 runs at 3500 MHz
CPU 5 runs at 3500 MHz
CPU 6 runs at 3500 MHz
CPU 7 runs at 3500 MHz
CPU 8 runs at 3500 MHz
CPU 9 runs at 3500 MHz
CPU 10 runs at 3500 MHz
CPU 11 runs at 3500 MHz
CPU 12 runs at 3500 MHz
CPU 13 runs at 3500 MHz
CPU 14 runs at 3500 MHz
CPU 15 runs at 3500 MHz
CPU 16 runs at 3500 MHz
CPU 17 runs at 3500 MHz
CPU 18 runs at 3500 MHz
CPU 19 runs at 3500 MHz
CPU 20 runs at 3500 MHz
CPU 21 runs at 3500 MHz
CPU 22 runs at 3500 MHz
CPU 23 runs at 3500 MHz
CPU 24 runs at 3500 MHz
CPU 25 runs at 3500 MHz
CPU 26 runs at 3500 MHz
CPU 27 runs at 3500 MHz
CPU 28 runs at 3500 MHz
CPU 29 runs at 3500 MHz
CPU 30 runs at 3500 MHz
CPU 31 runs at 3500 MHz
CPU 32 runs at 3500 MHz
CPU 33 runs at 3500 MHz
CPU 34 runs at 3500 MHz
CPU 35 runs at 3500 MHz
CPU 36 runs at 3500 MHz
CPU 37 runs at 3500 MHz
CPU 38 runs at 3500 MHz
CPU 39 runs at 3500 MHz
CPU 40 runs at 3500 MHz
CPU 41 runs at 3500 MHz
CPU 42 runs at 3500 MHz
CPU 43 runs at 3500 MHz
CPU 44 runs at 3500 MHz
CPU 45 runs at 3500 MHz
CPU 46 runs at 3500 MHz
CPU 47 runs at 3500 MHz
CPU 48 runs at 3500 MHz
CPU 49 runs at 3500 MHz
CPU 50 runs at 3500 MHz
CPU 51 runs at 3500 MHz
CPU 52 runs at 3500 MHz
CPU 53 runs at 3500 MHz
CPU 54 runs at 3500 MHz
CPU 55 runs at 3500 MHz
CPU 56 runs at 3500 MHz
CPU 57 runs at 3500 MHz
CPU 58 runs at 3500 MHz
CPU 59 runs at 3500 MHz
CPU 60 runs at 3500 MHz
CPU 61 runs at 3500 MHz
CPU 62 runs at 3500 MHz
CPU 63 runs at 3500 MHz
CPU 64 runs at 3500 MHz
CPU 65 runs at 3500 MHz
CPU 66 runs at 3500 MHz
CPU 67 runs at 3500 MHz
CPU 68 runs at 3500 MHz
CPU 69 runs at 3500 MHz
CPU 70 runs at 3500 MHz
CPU 71 runs at 3500 MHz
CPU 72 runs at 3500 MHz
CPU 73 runs at 3500 MHz
CPU 74 runs at 3500 MHz
CPU 75 runs at 3500 MHz
CPU 76 runs at 3500 MHz
CPU 77 runs at 3500 MHz
CPU 78 runs at 3500 MHz
CPU 79 runs at 3500 MHz
CPU 80 runs at 3500 MHz
CPU 81 runs at 3500 MHz
CPU 82 runs at 3500 MHz
CPU 83 runs at 3500 MHz
CPU 84 runs at 3500 MHz
CPU 85 runs at 3500 MHz
CPU 86 runs at 3500 MHz
CPU 87 runs at 3500 MHz
CPU 88 runs at 3500 MHz
CPU 89 runs at 3500 MHz
CPU 90 runs at 3500 MHz
CPU 91 runs at 3500 MHz
CPU 92 runs at 3500 MHz
CPU 93 runs at 3500 MHz
CPU 94 runs at 3500 MHz
CPU 95 runs at 3500 MHz
host01:/home/oracle$
这里我们可以看出,共有96颗 cpu 核心,频率是3.5GHz;
查看机器型号
host01:/home/oracle$uname -M
IBM,8408-E**
host01:/home/oracle$
查看aix 完整版本号
#oslevel -s
7100-03-05-1524
查看内存大小
host01:/home/oracle$lsattr -El mem0
ent_mem_cap I/O memory entitlement in Kbytes False
goodsize 126976 Amount of usable physical memory in Mbytes False
mem_exp_factor Memory expansion factor False
size 126976 Total amount of physical memory in Mbytes False
var_mem_weight Variable memory capacity weight False
host01:/home/oracle$
内存显示为126976MB,126976/1024=124GB ,内存为124GB
查看内存使用率
svmon
memory 那一行,inuse / size *100% 即为内存使用率。
topas 这个命令也能看内存使用情况,包括交换空间
内存使用率排序
ps vx | sort -n +6
该命令最好使用root 执行,非root 用户看不到其他用户的进程。
ps vx 输出详细信息,包括内存使用情况;sort -n 对数值进行排序,+6 是跳过前6列,对第7列的数字进行排序;// 注意:如果对非数字进行排序,将造成不可预知的后果。
查看硬盘
host01:/home/oracle$lspv
hdisk0 00fa0759b43cfc42 rootvg active
hdisk1 00fa0758b18584c0 rootvg active
hdisk2 00fa0758b56b7e9d oravg active
hdisk3 00fa0758b5667009 oravg active
hdisk4 00fa0758b5667f15 None
hdisk5 00fa0758b5668a78 None
hdisk6 none None
hdisk7 none None
......
hdiskpower21 00fa0758d3eaf907 datavg active
hdiskpower22 00fa0758d3e7ff51 datavg active
hdisk166 none None
从输出可以看出,有6个active ,共有6块盘。
查看存储空间使用情况
查看当前目录下,存储空间使用量
host1:/grid/base$du -ms * (注:-m 代表输出的结果单位是MB)
0.01 Clusterware
0.41 cfgtoollogs (大小为0.41 MB)
0.00 checkpoints
412.92 diag
0.47 oradiag_root
0.00 mach1
host1:/grid/base$du -ks * (注:-k 代表输出的结果单位是KB)
8 Clusterware
416 cfgtoollogs (大小为416 KB)
0 checkpoints
425720 diag
480 oradiag_root
4 mach1
du -ms 后面除了接 * 外,还可以接 文件夹名称:
host1:/grid/base$du -ms diag
417.25 diag
查看端口号
举例:查看513端口是否起来
netstat -an | grep 513
官方资料
https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/p_commands/pmcycles.html
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/149223.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...