如果我启用 huge_pages=on
在 postgresql.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
, andoff
. Withhuge_pages
set totry
, the server will try to request huge pages, but fall back to the default if that fails. Withon
, failure to request huge pages will prevent the server from starting up. Withoff
, 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/