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

相关文章
|
30天前
|
安全 关系型数据库 MySQL
|
30天前
|
存储 Linux Shell
Linux中的计划任务—Crontab调度一次性执行的任务at/batch
Linux中的计划任务—Crontab调度一次性执行的任务at/batch
135 0
|
23天前
|
存储 Linux
linux上SVN出现 "Unable to connect to a repository at URL 'svn://xx.xx.xx.xx/xxx' 和 No repository ...
centos上安装了svn, 有时候会不知道什么原因出现客户端小乌龟无法连接或无法提交等情况
26 5
|
30天前
|
Linux 调度
Linux定时任务调度--crontab与at
Linux定时任务调度--crontab与at
39 0
|
30天前
|
关系型数据库 Linux Shell
Linux|奇怪的知识|一次性任务at命令的使用
Linux|奇怪的知识|一次性任务at命令的使用
45 0
|
30天前
|
Linux
Linux - 一次性计划任务之at命令使用
Linux - 一次性计划任务之at命令使用
111 0
|
11月前
|
算法 Linux 数据安全/隐私保护
Linux中at和crontab,chrony
Linux中at和crontab,chrony
92 0
|
12月前
|
存储 Unix Linux
Linux计划任务at和cron命令的使用
前面学习了Linux中的软件管理,这篇文章将开始学习Linux中的计划任务,通过本篇文章将学习Linux中的一次性调度执行at命令和循环调度执行cron命令的介绍与使用,下面开始我们的Linux计划任务的学学习吧。
124 0
|
SQL Oracle 关系型数据库
Oracle OS认证与密码文件认证(操作系统认证、口令文件认证、创建密码文件)
Oracle OS认证与密码文件认证(操作系统认证、口令文件认证、创建密码文件)
484 0
|
消息中间件 缓存 运维
linux上numa架构介绍
linux上numa架构介绍
linux上numa架构介绍