当我启用大页面时 postgres 不连接
postgres doesn't connect when I enable huge page
如果我在 postgresql.conf
文件中启用 huge_pages=on
,
我的 postgres-14 没有连接
如果我禁用 postgres,它会连接
谁能帮帮我?
我的 OS 是 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.
如果我在 postgresql.conf
文件中启用 huge_pages=on
,
我的 postgres-14 没有连接
如果我禁用 postgres,它会连接
谁能帮帮我? 我的 OS 是 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.