随笔 - 404  文章 - 4  评论 - 0  阅读 - 25万

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   HelonTian  阅读(536)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
历史上的今天:
2019-09-16 SAP MaxDB Backup and Restore
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示