• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Disable/Enable Numa for Virtual Machine (XEN based)

By admin

How to check if NUMA is enabled

To determine if the server is a NUMA-based system with NUMA enabled, run the following command as root on the database server:

# numactl -H | grep available
available: 8 nodes (0-7)

– or –

# numactl -H | grep available
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.

How to 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. This needed downtime.

# vi /etc/xen/xend-config.sxp
# Enable or disable HVM guests seeing an vNUMA topology by default.
(vnuma 0)

I have disabled vNUMA ( indicated by value 0), if the value is 1 that means enabled (space is there for (vnuma 0)).

Restart the xend service after the changes.

# /etc/init.d/xend restart

We need to also restart the virtual machines for the changes to take effect:

# xm stop 0004fb0000060000aa3c75119ef2e544
# xm start 0004fb0000060000aa3c75119ef2e544

Before activity

# 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

# 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

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Check vendor of installed RPM packages in Linux
  2. Linux File/Directory Permissions cheat sheet
  3. How to restrict ssh logins by user and client address on CentOS/RHEL
  4. Managing iSCSI Timeouts Settings in Linux
  5. understanding “yum history” command output
  6. How to use sudo to allow a non-root user run a particular command
  7. “yum history” command examples to display, rollback, redo, undo yum transactions
  8. Understanding the Network interface configuration file /etc/sysconfig/network-scripts/ifcfg-eth#
  9. Linux OS Service ‘anacron’
  10. How to configure postifx smtp relay in CentOS/RHEL 5 and 6

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary