'postgres doesn't connect when I enable huge page
If I enable huge_pages=on in postgresql.conf file,
my postgres-14 not connecting
If i disable postgres it connects
can anyone help me? My OS is ubuntu 20.04
Solution 1:[1]
If you set huge_pages = on, the server won't start unless you define enough hugepages on the operating system. See 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_pagesset 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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Laurenz Albe |
