Centos7.8关闭NUMA的过程

Centos7.8关闭NUMA的过程
1. 编辑 /etc/default/grub 文件,如下图所示加上:numa=off
[root@p0-data-db03 ~]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off"
GRUB_DISABLE_RECOVERY="true"
2. 重新生成 /etc/grub2.cfg 配置文件:
[root@p0-data-db03 ~]# cp /etc/grub2.cfg /etc/grub2.cfg.bk
[root@p0-data-db03 ~]# grub2-mkconfig -o /etc/grub2.cfg
3. 重启操作系统

[root@p0-data-db03 ~]# shutdown -r now

[root@p0-data-db03 ~]# dmesg | grep -i numa
[ 0.000000] NUMA: Initialized distance table, cnt=2
[ 0.000000] NUMA: Node 0 [mem 0x00000000-0x7fffffff] + [mem 0x100000000-0x207fffffff] -> [mem 0x00000000-0x207fffffff]
[ 0.000000] Enabling automatic NUMA balancing. Configure with numa_balancing= or the kernel.numa_balancing sysctl
[ 1.768098] pci_bus 0000:00: on NUMA node 0
[ 1.777745] pci_bus 0000:17: on NUMA node 0
[ 1.780997] pci_bus 0000:3a: on NUMA node 0
[ 1.782931] pci_bus 0000:5d: on NUMA node 0
[ 1.784061] pci_bus 0000:80: on NUMA node 1
[ 1.788801] pci_bus 0000:85: on NUMA node 1
[ 1.791649] pci_bus 0000:ae: on NUMA node 1
[ 1.793167] pci_bus 0000:d7: on NUMA node 1

[root@p0-data-db03 ~]# dmesg | grep -i numa
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.10.0-1062.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off
[ 0.000000] NUMA turned off
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-1062.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off
[ 2.266776] pci_bus 0000:00: on NUMA node 0
[ 2.276396] pci_bus 0000:17: on NUMA node 0
[ 2.278909] pci_bus 0000:3a: on NUMA node 0
[ 2.280368] pci_bus 0000:5d: on NUMA node 0
[ 2.281206] pci_bus 0000:80: on NUMA node 1
[ 2.285584] pci_bus 0000:85: on NUMA node 1
[ 2.288472] pci_bus 0000:ae: on NUMA node 1
[ 2.290015] pci_bus 0000:d7: on NUMA node 1


# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0-1062.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off

 



posted on 2022-09-16 18:08  HelonTian  阅读(498)  评论(0编辑  收藏  举报