Linux中Huge Pages的相关设置有哪些
发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,本篇内容介绍了"Linux中Huge Pages的相关设置有哪些"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够
千家信息网最后更新 2026年11月02日Linux中Huge Pages的相关设置有哪些
本篇内容介绍了"Linux中Huge Pages的相关设置有哪些"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
PostgreSQL通过参数huge_pages设置是否启用大页,利用常驻内存用以提升性能
Check if CPU supports HugePages 2MB Size
命令如下,关键字是pse(Page Size Extension)
[root@localhost ~]# cat /proc/cpuinfo | grep pse | uniqflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm fsgsbase smep arat[root@localhost ~]# [root@localhost ~]#cat /proc/cpuinfo | egrep -o pse | head -n 1pse[root@localhost ~]#
Check if CPU supports HugePages 1GB Size
命令如下,关键字是pdpe1gb
[root@localhost ~]# grep pdpe1gb /proc/cpuinfo | head -n 1flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm fsgsbase smep arat[root@localhost ~]# [root@localhost ~]# egrep -o pdpe1gb /proc/cpuinfo | head -n 1pdpe1gb[root@localhost ~]#
How to change default HugePage size?
默认大小为2MB
[root@localhost ~]# grep Hugepagesize: /proc/meminfoHugepagesize: 2048 kB[root@localhost ~]#
修改命令为
[root@localhost ~]# grep GRUB_CMDLINE_LINUX /etc/sysconfig/grubGRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"[root@localhost ~]# [root@localhost ~]# vim /etc/sysconfig/grub[root@localhost ~]# grep GRUB_CMDLINE_LINUX /etc/sysconfig/grubGRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet default_hugepagesz=1G"[root@localhost ~]# [root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfgGenerating grub configuration file ...Found linux image: /boot/vmlinuz-5.2.14-1.el7.elrepo.x86_64Found initrd image: /boot/initramfs-5.2.14-1.el7.elrepo.x86_64.imgFound linux image: /boot/vmlinuz-3.10.0-957.27.2.el7.x86_64Found initrd image: /boot/initramfs-3.10.0-957.27.2.el7.x86_64.imgFound linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.imgFound linux image: /boot/vmlinuz-0-rescue-f0b4bffdc9e44816abd201320f8a4f75Found initrd image: /boot/initramfs-0-rescue-f0b4bffdc9e44816abd201320f8a4f75.imgdone[root@localhost ~]# [root@localhost ~]# rebootConnection closed by foreign host.[root@localhost ~]# grep Hugepagesize /proc/meminfoHugepagesize: 1048576 kB[root@localhost ~]#
"Linux中Huge Pages的相关设置有哪些"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!
命令
关键
关键字
内容
更多
知识
实用
学有所成
接下来
内存
参数
困境
大小
实际
性能
情况
文章
案例
用以
编带
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
上海挚品互联网科技有限公司
华服互联网科技怎么样
蓝思科技飞鸽互联网
高科技互联网
科技赋能下的互联网金融
互联网属科技
科技互联网项目
互联网科技财经
北京互联网科技
为想互联网科技
苏州互联网科技贷款公司
科技创新互联网企业
上游互联网科技
互联网高科技企业
一五八零互联网科技
滨湖区互联网智能科技产品供应
华服互联网科技官网
互联网为啥属于高科技
坤平互联网科技
卡尔迅互联网科技有限公司
电子科技大学互联网
恒生科技互联网指数分析
科技互联网海报
广州富喜互联网络科技
互联网科技股为什么大涨
上海互联网科技公司ppt
风投北京互联网科技
陕西云淼互联网科技公司
艺电能源互联网科技有限公司招聘
长沙渺峰互联网科技有限公司