database - 当我启用大页面时,postgres 没有连接

标签 database postgresql ubuntu huge-pages

如果我启用 huge_pages=onpostgresql.conf文件,
我的 postgres-14 没有连接
如果我禁用 postgres 它连接
谁能帮我?
我的操作系统是 ubuntu 20.04

最佳答案

如果设置 huge_pages = on ,除非您在操作系统上定义了足够多的大页面,否则服务器不会启动。见 the documentation :

huge_pages (enum)

Controls whether huge pages are requested for the main shared memory area. Valid values are try (the default), on, and off. With huge_pages set to try, the server will try to request huge pages, but fall back to the default if that fails. With on, failure to request huge pages will prevent the server from starting up. With off, huge pages will not be requested.

[...]

For more details about using huge pages on Linux, see Section 19.4.5.

关于database - 当我启用大页面时,postgres 没有连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71699310/

相关文章:

database - 最佳优化主键查询的大型数据库

ruby-on-rails - 如何在 ActiveRecord/Rails 中查询 postgresql 时间字段?

java - 如何访问数据库 native java.sql.Connection?

php - Apache2 mod_ruid2 和 Document ChRoot — 无法连接到 MySQL 数据库

mysql - 数据建模,我应该使用多少 fk?

mongodb - NoSQL 最佳实践 : should I save derivative (calculated data) as it is used in app?

node.js - 后端容器无法连接到数据库 - Sequelize、Node、Postgres、Docker

python - 无法在python中导入模块

c++ - 无法在 gtk 中使用 c++ 创建 appindicator。错误 : g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

jsp - Ubuntu 14中的Tomcat7 WEB根在哪里