暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

PostgreSQL 14 支持显示指定hugepage 单页大小 huge_page_size

digoal 2020-07-20
578

作者

digoal

日期

2020-07-20

标签

PostgreSQL , hugepage


背景

PostgreSQL支持显示指定申请大页标准. 默认使用OS标准.

例如1GB或2MB每页.

```
Add huge_page_size setting for use on Linux.

This allows the huge page size to be set explicitly. The default is 0,
meaning it will use the system default, as before.

Author: Odin Ugedal odin@ugedal.com
Discussion: https://postgr.es/m/20200608154639.20254-1-odin%40ugedal.com
```

In this example the default is 2MB, but you can also explicitly request either 2MB or 1GB with huge_page_size.

huge_page_size (integer)

Controls the size of huge pages, when they are enabled with huge_pages. The default is zero (0). When set to 0, the default huge page size on the system will be used.

Some commonly available page sizes on modern 64 bit server architectures include: 2MB and 1GB (Intel and AMD), 16MB and 16GB (IBM POWER), and 64kB, 2MB, 32MB and 1GB (ARM). For more information about usage and support, see Section 18.4.5.

Non-default settings are currently supported only on Linux.

参考

https://www.postgresql.org/docs/devel/kernel-resources.html#LINUX-HUGE-PAGES

https://www.postgresql.org/docs/devel/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-MEMORY

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=d2bddc2500fb74d56e5bc53a1cfa269e2e846510

PostgreSQL 许愿链接

您的愿望将传达给PG kernel hacker、数据库厂商等, 帮助提高数据库产品质量和功能, 说不定下一个PG版本就有您提出的功能点. 针对非常好的提议,奖励限量版PG文化衫、纪念品、贴纸、PG热门书籍等,奖品丰富,快来许愿。开不开森.

9.9元购买3个月阿里云RDS PostgreSQL实例

PostgreSQL 解决方案集合

德哥 / digoal's github - 公益是一辈子的事.

digoal's wechat

文章转载自digoal,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论