首先安装 ipmctl
sudo yum install -y epel-release
yum install -y ipmctl*
1,查看机器AEP内存数量和状况
[root@localhost ~]# ipmctl show -dimm
DimmID | Capacity | LockState | HealthState | FWVersion
0x0001 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x0011 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x0101 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x0111 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x0201 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x0211 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x0301 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x0311 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1001 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1011 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1101 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1111 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1201 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1211 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1301 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
0x1311 | 126.742 GiB | Disabled | Healthy | 02.01.00.1426
2,将AEP全部设置成memeory mode
[root@localhost ~]# ipmctl create -goal memorymode=100
The following configuration will be applied:
SocketID | DimmID | MemorySize | AppDirect1Size | AppDirect2Size
0x0000 | 0x0001 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0011 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0101 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0111 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0201 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0211 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0301 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0311 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1001 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1011 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1101 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1111 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1201 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1211 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1301 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1311 | 126.000 GiB | 0.000 GiB | 0.000 GiB
Do you want to continue? [y/n] y
Created following region configuration goal
SocketID | DimmID | MemorySize | AppDirect1Size | AppDirect2Size
0x0000 | 0x0001 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0011 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0101 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0111 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0201 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0211 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0301 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0000 | 0x0311 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1001 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1011 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1101 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1111 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1201 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1211 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1301 | 126.000 GiB | 0.000 GiB | 0.000 GiB
0x0001 | 0x1311 | 126.000 GiB | 0.000 GiB | 0.000 GiB
A reboot is required to process new memory allocation goals.
[root@localhost ~]# free
total used free shared buff/cache available
Mem: 526955416 57561436 2747920 43592 466646060 466006764
Swap: 2104508 150784 1953724
3,重启机器
[root@localhost ~]#reboot
备注:启动自检时间超级长,上面的配置,耐心等待,可能时间有一点长,才能进入到操作系统
4,查看AEP模式状况和容量
[root@localhost ~]# free
total used free shared buff/cache available
Mem: 2079371424 107294740 6471308 112940 1965605376 1962094680
Swap: 2104508 102144 2002364
[root@localhost ~]# ipmctl show -memoryresources
MemoryType | DDR | PMemModule | Total
Volatile | 0.000 GiB | 2016.000 GiB | 2016.000 GiB
AppDirect | - | 0.000 GiB | 0.000 GiB
Cache | 512.000 GiB | - | 512.000 GiB
Inaccessible | 0.000 GiB | 11.874 GiB | 11.874 GiB
Physical | 512.000 GiB | 2027.874 GiB | 2539.874 GiB
发表评论