Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit384199e

Browse files
committed
Doc: prefer sysctl to /proc/sys in docs and comments.
sysctl is more portable than Linux's /proc/sys file tree, andoften easier to use too. That's why most of our docs refer tosysctl when talking about how to adjust kernel parameters.Bring the few stragglers into line.Discussion:https://postgr.es/m/361175.1661187463@sss.pgh.pa.us
1 parent9415873 commit384199e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

‎doc/src/sgml/runtime.sgml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,11 +1355,12 @@ default:\
13551355
<itemizedlist>
13561356
<listitem>
13571357
<para>
1358-
On <productname>Linux</productname>
1359-
<filename>/proc/sys/fs/file-max</filename> determines the
1360-
maximum number of open files that the kernel will support. It can
1361-
be changed by writing a different number into the file or by
1362-
adding an assignment in <filename>/etc/sysctl.conf</filename>.
1358+
On <productname>Linux</productname> the kernel parameter
1359+
<varname>fs.file-max</varname> determines the maximum number of open
1360+
files that the kernel will support. It can be changed with
1361+
<literal>sysctl -w fs.file-max=<replaceable>N</replaceable></literal>.
1362+
To make the setting persist across reboots, add an assignment
1363+
in <filename>/etc/sysctl.conf</filename>.
13631364
The maximum limit of files per process is fixed at the time the
13641365
kernel is compiled; see
13651366
<filename>/usr/src/linux/Documentation/proc.txt</filename> for

‎src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4908,7 +4908,7 @@ SubPostmasterMain(int argc, char *argv[])
49084908
* If testing EXEC_BACKEND on Linux, you should run this as root before
49094909
* starting the postmaster:
49104910
*
4911-
*echo 0 >/proc/sys/kernel/randomize_va_space
4911+
*sysctl -wkernel.randomize_va_space=0
49124912
*
49134913
* This prevents using randomized stack and code addresses that cause the
49144914
* child process's memory map to be different from the parent's, making it

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp