To make options such as this permanent you'll typically add them to the file /etc/sysctl.conf
. You can see a full list of the options available using this command:
$ sysctl -a
Example
$ sudo sysctl -a | head -5
kernel.sched_child_runs_first = 0
kernel.sched_min_granularity_ns = 6000000
kernel.sched_latency_ns = 18000000
kernel.sched_wakeup_granularity_ns = 3000000
kernel.sched_shares_ratelimit = 750000
You can look for hugepage
in the output like so:
$ sudo sysctl -a | grep hugepage
vm.nr_hugepages = 0
vm.nr_hugepages_mempolicy = 0
vm.hugepages_treat_as_movable = 0
vm.nr_overcommit_hugepages = 0
It's not there?
However looking through the output I did not see transparent_hugepage
. Googling a bit more I did come across this Oracle page which discusses this very topic. The page is titled: Configuring HugePages for Oracle on Linux (x86-64).
Specifically on that page they mention how to disable the hugepage feature.
excerpt
The preferred method to disable Transparent HugePages is to add "transparent_hugepage=never" to the kernel boot line in the "/etc/grub.conf" file.
title Oracle Linux Server (2.6.39-400.24.1.el6uek.x86_64) root (hd0,0) kernel /vmlinuz-2.6.39-400.24.1.el6uek.x86_64 ro root=/dev/mapper/vg_ol6112-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=uk LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_NO_DM rd_LVM_LV=vg_ol6112/lv_swap rd_LVM_LV=vg_ol6112/lv_root rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.39-400.24.1.el6uek.x86_64.img
The server must be rebooted for this to take effect.
Alternatively you can add the command to your /etc/rc.local
file.
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
I think I would go with the 2nd option, since the first will be at risk of getting unset when you upgrade from one kernel to the next.
You can confirm that it worked with the following command after rebooting:
$ cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]
相关推荐
实现格基约减模代数(LRA-THP)的预编码,经过调试
采用THP预编码(QR算法)的simulink仿真链路
东风标致4008_350THP-380THP版车型手册汽车说明书pdf电子版下载
encoder and decoder programme for pre-coding MIMO system based on THP algorithm
Ocean主题.thp
MU-MIMO THP预编码技术的研究,曾加生,田宝玉,新一代无线通信系统引入了多入多出技术(MIMO)以满足快速增长的用户需求,而在采用MIMO系统的点对多点通信中,需要采用预编码以抑�
魅族16 thp机型基带备份文件qcn 解决基带 串码问题 基带qcn文件 可以修复刷机 降级 等掉基带 无串码等故障 需要开端口写入 有需要的友友下载使用 都是完美测试过的资源 百分百好使
结肠癌细胞SW480上清驯化THP-1巨噬细胞的蛋白质组学初步探究,陈颖,戚彩娃,目的 探索SW480结肠癌细胞上清驯化的THP-1巨噬细胞的功能蛋白质组变化。方法 用SW480细胞培养上清将THP-1来源的巨噬细胞驯化为肿瘤驯化�
肠癌Caco-2细胞介导的THP-1巨噬细胞的抗凋亡相关蛋白质组变化,乐尧金,陈南鹏,目的 探索肠癌Caco-2细胞上清介导的THP-1巨噬细胞(MTHP-1)的功能蛋白质组学变化特征。方法以Caco-2细胞培养上清介导的MTHP-1为肿瘤...
压缩算法之一 ZIP压缩格式是在基于互联网进行数据传输过程中
CST-Calendar,这是用PHP编程的原程序代码
两用户的THP预编码实例,功率分配因子可配,调制方式可配
多用户多天线系统中THP算法研究,王怿,郭莉,对于多输入多输出(MIMO)通信系统而言,当系统采用脏纸编码对信号进行预处理时,可获得广播信道下系统的最大和容量。但由于脏纸��
东风标致5008_360THP-400THP版车型手册汽车说明书pdf电子版下载
东风标致5008_350THP-380THP版车型手册汽车说明书pdf电子版下载
东风标致4008_360THP-400THP版车型手册汽车说明书pdf电子版下载
THP对流器 Python脚本可将带有wii / gc age thp视频的文件夹转换为mp4文件,反之亦然。 我没有真正看到过这种文件的封面,所以我写了一个。要求: Python 3.x(最好是3.7及更高版本)。 FFMPEG安装到PATH。 THPConv....
Tomlinson-Harashima预编码(THP)算法是一种多输入多输出下行链路系统中有效去除用户间干扰(MUI)的预均衡技术,但存在系统容量损失的问题。为此,提出通过在接收端进行波束成形使得MMSE-THP系统和容量最大化,设计了...
魅族i6thp完好机备份基带qcn 完好机备份 掉基带掉串码专用 看清楚型号 有需要的友友下载使用 建议修改原文件参数在写入