zoukankan      html  css  js  c++  java
  • Linux学习笔记(23)numa的查看与关闭

    【1】centos6

    在/etc/grub.conf    在kernel 添加numa=off 就行了

    (1.1)检查OS是否开启NUMA

    # numactl --hardware     检查 numa 节点信息

      

    available: 1 nodes (0)       #如果是2或多个nodes就说明numa没关掉

    (1.2)关闭 numa

    numastat  #查看

          vi /etc/grub.conf  设置 numa=off

          查看每个节点的分配情况

            【1】numastat  【2】numactl --show

          然后重启生效,reboot

          (注意,要写在内核后)

          

    【2】CentOS7.x

    (2.1)查看是否关闭numa

      dmesg | grep -i numa

    (2.2)最佳实践关闭numa

    可以通过下面的方式关闭 numa:

      最佳实践一条命令解决:grubby --update-kernel=ALL --args="numa=off"       

        reboot

        #核验 

      dmesg | grep -i numa

    (2.3)其他方法相关参考

    1. 编辑 /etc/default/grub 文件,如下图所示加上:numa=off

      

    2. 重新生成 /etc/grub2.cfg 配置文件:

    grub2-mkconfig -o /etc/grub2.cfg

    3. 重启操作系统

      reboot

    4. 重启之后进行确认:

      dmesg | grep -i numa

    再次确认:cat /proc/cmdline

  • 相关阅读:
    jQuery源码 support
    jQuery 源码: 延迟对象补充。
    web FG interview all
    Img load
    浅谈js中this指向问题
    浅谈ES6原生Promise
    BootStrap的两种模态框方式
    让div盒子相对父盒子垂直居中的几种方法
    normalize与reset
    JS实现继承的方式
  • 原文地址:https://www.cnblogs.com/gered/p/15671691.html
Copyright © 2011-2022 走看看