Translated message

A translation of this page exists in English.

Red Hat Enterprise Linux システムで NUMA を無効にする方法

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Issue

  • Red Hat Enterprise Linux システムで NUMA を無効にするには、どうすればよいですか?

Resolution

  • ブートローダー設定のカーネルコマンドラインに "numa=off" を追加してシステムを再起動すると、NUMA 対応が無効になります。

以下に例を示します。

  • RHEL6 以前 (/boot/grub/grub.conf)

        title Red Hat Enterprise Linux AS (2.6.9-55.EL)
                root (hd0,0)
                kernel /vmlinuz-2.6.9-55.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet numa=off
                initrd /initrd-2.6.9-55.EL.img
    
  • RHEL7 以降 (/etc/default/grub)

        GRUB_CMDLINE_LINUX="rd.lvm.lv=rhel_vm-210/root rd.lvm.lv=rhel_vm-210/swap vconsole.font=latarcyrheb-sun16 crashkernel=auto  vconsole.keymap=us rhgb quiet numa=off"
    

    変更を有効にするには、grub config を再構築する必要があることに注意してください。

    # grub2-mkconfig -o /etc/grub2.cfg
    
  • RHEL8 以降で grub を変更するには、How do I permanently modify the kernel command line in RHEL 8? を参照してください。

Root Cause

  • NUMA は無効化できませんが、カーネルはすべてのメモリーを単一の NUMA ノードとして処理できます。以下のように、/usr/share/doc/kernel-doc-4.18.0/Documentation/x86/x86_64/boot-options.txt にオプションが記述されています。

      numa=off      Only set up a single NUMA node spanning all memory.
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments