mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
-DLINUX_OOM_ADJ=0 should be in CPPFLAGS, not CFLAGS
This commit is contained in:
parent
d747a45b46
commit
0ff319d20a
@ -1291,7 +1291,7 @@ echo -17 > /proc/self/oom_adj
|
||||
Note that this action must be done as root, or it will have no effect;
|
||||
so a root-owned startup script is the easiest place to do it. If you
|
||||
do this, you may also wish to build <productname>PostgreSQL</>
|
||||
with <literal>-DLINUX_OOM_ADJ=0</> added to <varname>CFLAGS</>.
|
||||
with <literal>-DLINUX_OOM_ADJ=0</> added to <varname>CPPFLAGS</>.
|
||||
That will cause postmaster child processes to run with the normal
|
||||
<varname>oom_adj</> value of zero, so that the OOM killer can still
|
||||
target them at need.
|
||||
|
Loading…
Reference in New Issue
Block a user