日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

Linux關(guān)于透明大頁(yè)機(jī)制的介紹

瀏覽:416日期:2023-03-07 14:40:03

透明大頁(yè)介紹

Transparent Huge Pages的一些官方介紹資料:

Transparent Huge Pages (THP) are enabled by default in RHEL 6 for all applications. The kernel attempts to allocate hugepages whenever possible and any Linux process will receive 2MB pages if the mmap region is 2MB naturally aligned. The main kernel address space itself is mapped with hugepages, reducing TLB pressure from kernel code. For general information on Hugepages, see: What are Huge Pages and what are the advantages of using them?

The kernel will always attempt to satisfy a memory allocation using hugepages. If no hugepages are available (due to non availability of physically continuous memory for example) the kernel will fall back to the regular 4KB pages. THP are also swappable (unlike hugetlbfs). This is achieved by breaking the huge page to smaller 4KB pages, which are then swapped out normally.

But to use hugepages effectively, the kernel must find physically continuous areas of memory big enough to satisfy the request, and also properly aligned. For this, a khugepaged kernel thread has been added. This thread will occasionally attempt to substitute smaller pages being used currently with a hugepage allocation, thus maximizing THP usage.

In userland, no modifications to the applications are necessary (hence transparent). But there are ways to optimize its use. For applications that want to use hugepages, use of posix_memalign() can also help ensure that large allocations are aligned to huge page (2MB) boundaries.

Also, THP is only enabled for anonymous memory regions. There are plans to add support for tmpfs and page cache. THP tunables are found in the /sys tree under /sys/kernel/mm/redhat_transparent_hugepage.

查看是否啟用透明大頁(yè)

1:命令cat /sys/kernel/mm/redhat_transparent_hugepage/enabled 該命令適用于Red Hat Enterprise Linux系統(tǒng)

[root@getlnx06 ~]# more /etc/issue Red Hat Enterprise Linux Server release 6.6 (Santiago) Kernel \r on an \m [root@getlnx06 ~]# cat /sys/kernel/mm/redhat_transparent_hugepage/enabled [always] madvise never

2:命令cat /sys/kernel/mm/transparent_hugepage/enabled 該命令適用于其它Linux系統(tǒng)

[root@getlnx06 ~]# cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never] [root@getlnx06 ~]# 

使用命令查看時(shí),如果輸出結(jié)果為[always]表示透明大頁(yè)啟用了。[never]表示透明大頁(yè)禁用、[madvise]表示(只在MADV_HUGEPAGE標(biāo)志的VMA中使用THP

3:如何HugePages_Total返回0,也意味著標(biāo)準(zhǔn)大頁(yè)禁用了(注意傳統(tǒng)/標(biāo)準(zhǔn)大頁(yè)和透明大頁(yè)的區(qū)別)

透明大頁(yè)(THP)管理和標(biāo)準(zhǔn)/傳統(tǒng)大頁(yè)(HP)管理都是操作系統(tǒng)為了減少頁(yè)表轉(zhuǎn)換消耗的資源而發(fā)布的新特性,雖然ORACLE建議利用大頁(yè)機(jī)制來提高數(shù)據(jù)庫(kù)的性能,但是ORACLE卻同時(shí)建議關(guān)閉透明大頁(yè)管理。這二者的區(qū)別在于大頁(yè)的分配機(jī)制,標(biāo)準(zhǔn)大頁(yè)管理是預(yù)分配的方式,而透明大頁(yè)管理則是動(dòng)態(tài)分配的方式。

[root@getlnx06 ~]# grep -i HugePages_Total /proc/meminfo  HugePages_Total: 0

4:cat /proc/sys/vm/nr_hugepages返回0也意味著傳統(tǒng)大頁(yè)禁用了(傳統(tǒng)大頁(yè)和透明大頁(yè))。

[root@getlnx06 ~]# cat /proc/sys/vm/nr_hugepages  0

禁用、啟用透明大頁(yè)功能

方法1:設(shè)置/etc/grub.conf文件,在系統(tǒng)啟動(dòng)是禁用。

[root@getlnx06 ~]# vi /etc/grub.conf# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE:  You have a /boot partition.  This means that#  all kernel and initrd paths are relative to /boot/, eg.#  root (hd0,0)#  kernel /vmlinuz-version ro root=/dev/mapper/VolGroup--LogVol0-LogVol01#  initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=0timeout=5

方法2:設(shè)置/etc/rc.local文件

[root@getlnx06 ~]# vi /etc/rc.local#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don"t# want to do the full Sys V style init stuff. touch /var/lock/subsys/local if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then   echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabledfi

使用上面的配置后必須重啟操作系統(tǒng)才能生效,你也可以運(yùn)行下面命令不用重啟操作系統(tǒng)。

You must reboot your system for the setting to take effect, or run the following two echo lines to proceed with the install without rebooting:

[root@getlnx06 ~]# echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled[root@getlnx06 ~]# cat /sys/kernel/mm/redhat_transparent_hugepage/enabledalways madvise [never][root@getlnx06 ~]# 

小知識(shí)點(diǎn):

1:從RedHat 6, OEL 6, SLES 11 and UEK2 kernels 開始,系統(tǒng)缺省會(huì)啟用 Transparent HugePages :用來提高內(nèi)存管理的性能透明大頁(yè)(Transparent HugePages )和之前版本中的大頁(yè)功能上類似。主要的區(qū)別是:Transparent HugePages 可以實(shí)時(shí)配置,不需要重啟才能生效配置;

2:Transparent Huge Pages在32位的RHEL 6中是不支持的。

Transparent Huge Pages are not available on the 32-bit version of RHEL 6.

3: ORACLE官方不建議我們使用RedHat 6, OEL 6, SLES 11 and UEK2 kernels 時(shí)的開啟透明大頁(yè)(Transparent HugePages ), 因?yàn)橥该鞔箜?yè)(Transparent HugePages ) 存在一些問題:

  • 1.在RAC環(huán)境下 透明大頁(yè)(Transparent HugePages )會(huì)導(dǎo)致異常節(jié)點(diǎn)重啟,和性能問題;
  • 2.在單機(jī)環(huán)境中,透明大頁(yè)(Transparent HugePages ) 也會(huì)導(dǎo)致一些異常的性能問題;

Transparent HugePages memory is enabled by default with Red Hat Enterprise Linux 6, SUSE Linux Enterprise Server 11, and Oracle Linux 6 with earlier releases of Oracle Linux Unbreakable Enterprise Kernel 2 (UEK2) kernels. Transparent HugePages memory is disabled in later releases of Oracle Linux UEK2 kernels.Transparent HugePages can cause memory allocation delays during runtime. To avoid performance issues, Oracle recommends that you disable Transparent HugePages on all Oracle Database servers. Oracle recommends that you instead use standard HugePages for enhanced performance.Transparent HugePages memory differs from standard HugePages memory because the kernel khugepaged thread allocates memory dynamically during runtime. Standard HugePages memory is pre-allocated at startup, and does not change during runtime.

Starting with RedHat 6, OEL 6, SLES 11 and UEK2 kernels, Transparent HugePages are implemented and enabled (default) in an attempt to improve the memory management. Transparent HugePages are similar to the HugePages that have been available in previous Linux releases. The main difference is that the Transparent HugePages are set up dynamically at run time by the khugepaged thread in kernel while the regular HugePages had to be preallocated at the boot up time. Because Transparent HugePages are known to cause unexpected node reboots and performance problems with RAC, Oracle strongly advises to disable the use of Transparent HugePages. In addition, Transparent Hugepages may cause problems even in a single-instance database environment with unexpected performance problems or delays. As such, Oracle recommends disabling Transparent HugePages on all Database servers running Oracle.

4:安裝Vertica Analytic Database時(shí)也必須關(guān)閉透明大頁(yè)功能。

到此這篇關(guān)于Linux關(guān)于透明大頁(yè)機(jī)制的文章就介紹到這了。希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持。

標(biāo)簽: Linux Apache
相關(guān)文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
国产一区二区精品福利地址| 久久高清免费| 欧美久久一区二区三区| 麻豆视频观看网址久久| 日韩理论视频| 免费在线观看日韩欧美| 国产精品一区三区在线观看| 福利一区二区三区视频在线观看| 99pao成人国产永久免费视频| 欧美另类中文字幕| 国产亚洲一区二区手机在线观看| 在线视频免费在线观看一区二区| 青青草国产成人99久久| 97精品国产一区二区三区| 天堂日韩电影| 亚洲精品观看| 另类中文字幕国产精品| 日韩超碰人人爽人人做人人添| 国产成人精品亚洲线观看| 亚洲免费精品| 卡一精品卡二卡三网站乱码| 国产日韩专区| 国产一区二区三区免费在线| 日韩精品一二三| 国产一区二区三区日韩精品| 在线国产精品一区| 日韩毛片视频| 国产日韩亚洲| 男女精品网站| 国产精品乱战久久久| 日韩午夜免费| 国产成人77亚洲精品www| 蜜桃久久av一区| 久久91导航| 免费亚洲婷婷| 亚洲精品日韩久久| 91精品国产乱码久久久久久久| 91精品国产自产精品男人的天堂| 久久精品国产大片免费观看| 国产精品美女午夜爽爽| 亚洲一区av| 久久国产直播| 国产精品免费99久久久| 三级欧美韩日大片在线看| 激情综合五月| 91成人在线精品视频| 91久久在线| 欧美亚洲日本精品| 国产精品v一区二区三区| 中文字幕av一区二区三区人| 久久影视一区| 日韩电影免费网站| 精品无人区麻豆乱码久久久 | 成人三级高清视频在线看| 日韩欧乱色一区二区三区在线| 亚洲午夜黄色| 国产v日韩v欧美v| 久久国产乱子精品免费女| 香蕉成人久久| 成人av动漫在线观看| 黑森林国产精品av| 欧美激情综合| 日本视频一区二区| 亚洲一区av| 久久国产精品亚洲77777| 亚洲精品伦理| 日韩精品亚洲aⅴ在线影院| 久久久久国产精品一区二区| 国产不卡av一区二区| 日本亚洲三级在线| 久久免费国产| 国产aⅴ精品一区二区三区久久| 日本在线观看不卡视频| 人人香蕉久久| 久久久久九九精品影院| 亚洲在线久久| 黄色不卡一区| 伊人久久国产| 美女免费视频一区| 91精品国产经典在线观看| 老色鬼久久亚洲一区二区| 久久久成人网| 成人国产精选| 国产女人18毛片水真多18精品| 老牛影视一区二区三区| 亚洲大片在线| 欧美久久天堂| 国产一区二区三区精品在线观看| 亚洲18在线| 久久国产成人| 午夜久久一区| 蜜桃成人av| 亚洲不卡av不卡一区二区| 成人在线视频免费| 久久尤物视频| 国产极品模特精品一二| 国产日韩欧美一区二区三区在线观看| 久久xxxx| 日韩影院在线观看| 国产精品女主播一区二区三区| 国产99久久| 久久精品91| 午夜影院一区| 精品三级在线观看视频| 嫩呦国产一区二区三区av| 国产日韩中文在线中文字幕| 日韩av中文字幕一区二区三区| 欧美日韩国产在线一区| 99久精品视频在线观看视频| 日韩成人精品一区二区| 精品免费av| 精品国产乱码久久久久久1区2匹| 国产精品自拍区| 欧美日韩亚洲一区二区三区在线| 日韩1区2区3区| 日本aⅴ免费视频一区二区三区| 中文一区一区三区免费在线观| 欧美日韩国产高清| 性一交一乱一区二区洋洋av| 久久av在线| 欧美一级网址| 水蜜桃久久夜色精品一区| 欧美日韩中文一区二区| 水蜜桃久久夜色精品一区的特点 | 麻豆国产精品| 日本一区二区高清不卡| 欧美sss在线视频| 中文日韩欧美| 国产日本亚洲| 国产麻豆久久| 欧美日韩黑人| 日本少妇一区二区| 日韩激情一区| 在线精品一区| 精品国产aⅴ| 亚洲欧洲一区| 国产欧美一区二区三区米奇| 欧美freesex黑人又粗又大| 视频一区二区三区在线| 欧美激情一区| 不卡在线一区| 国产精品一区二区免费福利视频| 激情黄产视频在线免费观看| 天堂成人国产精品一区| 久久久亚洲欧洲日产| 欧美综合另类| 国产精品一页| 狠狠久久婷婷| 免费日韩一区二区三区| 好看不卡的中文字幕| 国产精品白丝一区二区三区| 欧美+亚洲+精品+三区| 国产欧美精品久久| 一级欧洲+日本+国产| 美女精品久久| 石原莉奈一区二区三区在线观看| 久久精品国产999大香线蕉| 欧美精品羞羞答答| 国产精品一区二区99| 欧美 日韩 国产一区二区在线视频| 日韩精品一卡二卡三卡四卡无卡| 精品国产亚洲日本| 一区二区三区网站| 日韩大片免费观看| 欧美日韩精品一区二区三区视频| 久久中文字幕av| 久久亚洲风情| 日韩精品亚洲一区二区三区免费| 久久一区国产| 亚洲激情社区| 麻豆精品在线观看| 国产亚洲精品v| 国产极品久久久久久久久波多结野| 欧美日韩一区二区三区视频播放| 日韩一区二区三区高清在线观看| 欧美a级一区二区| av不卡在线| 精品午夜久久| 中文字幕一区二区三区在线视频| 精品一区二区三区的国产在线观看| 老牛影视一区二区三区| 在线一区av| 麻豆精品视频在线| 亚洲精品在线a| 午夜日韩福利| 成人一区而且| 国产精品伦一区二区| 中文字幕中文字幕精品| 婷婷成人在线| 另类专区亚洲| 国产欧美日韩视频在线| 中文在线日韩| 99国产精品99久久久久久粉嫩| 黄色在线观看www| 久久精品国产成人一区二区三区| 97成人超碰| 日本中文字幕不卡| 免费久久99精品国产| 91久久久精品国产| 亚洲爱爱视频|