Oracle Linux: How To Disable NUMA At OS Level (Doc ID 2193586.1)

简介: Oracle Linux: How To Disable NUMA At OS Level (Doc ID 2193586.1)

FOR LEGACY GRUB

To disable NUMA, add numa=off to the kernel line in /boot/grub/grub.conf , as follows:

kernel /vmlinuz-2.6.39-400.215.10.el5uek ro root=/dev/VolGroup00/LogVol00 numa=off

Reboot server.

shutdown -r now

Validate NUMA is disabled after server boot successfully.
$ uptime
22:11:10 up 23 days, 3:12, 1 user, load average: 0.00, 0.01, 0.05

cat /proc/cmdline

ro root=/dev/VolGroup00/LogVol00 numa=off <---------- NUMA is disabled

numactl -H

available: 1 nodes (0)
node 0 size: 4195 MB
node 0 free: 3304 MB
node distances:
node 0
0: 10

Also, if NUMA were activated, there would be more than one node listed in the above output.
FOR GRUB2 EFI Boot Loader

To disable NUMA on servers which use the EFI boot loader. GRUB 2 is the default EFI-mode boot loader, so the steps are based on GRUB2.

Take a backup of /etc/default/grub file.
Edit /etc/default/grub file and replace numa=on to numa=off.

vi /etc/default/grub

..
GRUB_CMDLINE_LINUX_DEFAULT="root=LABEL=DBSYS bootarea=dbsys bootfrom=BOOT ro loglevel=7 panic=60 debug pci=noaer log_buf_len=1m nmi_watchdog=0 transparent_hugepage=never rd_NO_PLYMOUTH audit=1 console=tty1 console=ttyS0,115200n8 crashkernel=448M@128M numa=on << -- Replace it as off

Run the following command to rebuild the grub.cfg

grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

Reboot the server to make the changes effect.

Disable Numa on Virtual Machine

vNUMA removes the transparency between the VM and the OS and presents the NUMA architecture directly to the VM’s operating system. It worth mentioning that vNUMA also known as wide NUMA in the industry.

To disable NUMA on Xen Hypervisor it needs downtime.

Backup /etc/xen/xend-config.sxp file.

cp /etc/xen/xend-config.sxp /etc/xen/xend-config.sxp.bkp_default.

Edit /etc/xen/xend-config.sxp file and replace "(vnuma 1)" to "(vnuma 0)"
[root@ VirtualDisks]# vi /etc/xen/xend-config.sxp

# Enable or disable HVM guests seeing an vNUMA topology by default.
(vnuma 0)                       ⇒ 0 Means disabled and 1 means enabled (space is there for (vnuma 0))

Restart Xend service to make the changes effect.
[root@ VirtualDisks]# /etc/init.d/xend restart
Stop/Start the Guest Machines.
[root@ VirtualDisks]# xm stop 0004fb0000060000aa3c75119ef2e544
[root@ VirtualDisks]# xm start 0004fb0000060000aa3c75119ef2e544

Before activity:
[root@ ~]# numactl --hardware
available: 2 nodes (0-1) ⇒ If the number of available nodes is "2 nodes (0-1)" or "8 nodes (0-7)" then NUMA is enabled. If the number of available nodes is "1 nodes (0)" then NUMA is not enabled.
node 0 cpus: 0
node 0 size: 9997 MB
node 0 free: 9879 MB
node 1 cpus: 1
node 1 size: 10078 MB
node 1 free: 10019 MB
node distances:
node 0 1
0: 10 21
1: 21 10

After reboot:
[root@ ~]# numactl --hardware
available: 1 nodes (0)
node 0 cpus: 0 1
node 0 size: 20076 MB
node 0 free: 19897 MB
node distances:
node 0
0: 10

相关文章
|
15天前
|
运维 自然语言处理 Ubuntu
OS Copilot-操作系统智能助手-Linux新手小白的福音
OS Copilot 是阿里云推出的一款操作系统智能助手,专为Linux新手设计,支持自然语言问答、辅助命令执行和系统运维调优等功能。通过简单的命令行操作,用户可以快速获取所需信息并执行任务,极大提升了Linux系统的使用效率。安装步骤简单,只需在阿里云服务器上运行几条命令即可完成部署。使用过程中,OS Copilot不仅能帮助查找命令,还能处理文件和复杂场景,显著节省了查找资料的时间。体验中发现,部分输出格式和偶尔出现的英文提示有待优化,但整体非常实用,特别适合Linux初学者。
72 10
|
3月前
|
安全 Linux 数据安全/隐私保护
Vanilla OS:下一代安全 Linux 发行版
【10月更文挑战第30天】
131 0
Vanilla OS:下一代安全 Linux 发行版
|
1月前
|
弹性计算 自然语言处理 Ubuntu
OS Copilot-操作系统智能助手-Linux新手小白的福音
OS Copilot是由阿里云推出的操作系统智能助手,专为Linux新手设计,支持自然语言问答、辅助命令执行等功能,极大提升了Linux系统的使用效率。用户只需通过简单的命令或自然语言描述问题,OS Copilot即可快速提供解决方案并执行相应操作。例如,查询磁盘使用量等常见任务变得轻松快捷。此外,它还支持从文件读取复杂任务定义,进一步简化了操作流程。虽然在某些模式下可能存在小问题,但总体上大大节省了学习和操作时间,提高了工作效率。
139 2
OS Copilot-操作系统智能助手-Linux新手小白的福音
|
1月前
|
Oracle 关系型数据库 Linux
linux8安装oracle 11g遇到的问题记录
Oracle 11g在Linux 8上安装时会遇到link编译环节的问题。官方建议忽略安装中的链接错误,安装完成后应用DBPSU 11.2.0.4.240716补丁及一次性补丁33991024,再重新编译二进制文件,并配置监听器和数据库。但因11g已退出服务期,这些补丁需付费获取。网上信息显示22年1月的PSU补丁也可解决问题,找到该补丁后按常规方式打补丁即可。如有需求或疑问可咨询我。
83 20
|
1月前
|
弹性计算 运维 Ubuntu
os-copilot在Alibaba Cloud Linux镜像下的安装与功能测试
我顺利使用了OS Copilot的 -t -f 功能,我的疑惑是在换行的时候就直接进行提问了,每次只能写一个问题,没法连续换行更有逻辑的输入问题。 我认为 -t 管道 功能有用 ,能解决环境问题的连续性操作。 我认为 -f 管道 功能有用 ,可以单独创建可连续性提问的task问题。 我认为 | 对文件直接理解在新的服务器理解有很大的帮助。 此外,我还有建议 可以在非 co 的环境下也能进行连续性的提问。
79 7
|
3月前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
112 10
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
|
3月前
|
监控 Oracle 关系型数据库
Linux平台Oracle开机自启动设置
【11月更文挑战第8天】在 Linux 平台设置 Oracle 开机自启动有多种方法,本文以 CentOS 为例,介绍了两种常见方法:使用 `rc.local` 文件(较简单但不推荐用于生产环境)和使用 `systemd` 服务(推荐)。具体步骤包括编写启动脚本、赋予执行权限、配置 `rc.local` 或创建 `systemd` 服务单元文件,并设置开机自启动。通过 `systemd` 方式可以更好地与系统启动过程集成,更规范和可靠。
291 2
|
3月前
|
Oracle Ubuntu 关系型数据库
Linux平台Oracle开机自启动设置
【11月更文挑战第7天】本文介绍了 Linux 系统中服务管理机制,并详细说明了如何在使用 systemd 和 System V 的系统上设置 Oracle 数据库的开机自启动。包括创建服务单元文件、编辑启动脚本、设置开机自启动和启动服务的具体步骤。最后建议重启系统验证设置是否成功。
|
4月前
|
存储 Oracle 关系型数据库
|
4月前
|
安全 搜索推荐 Ubuntu