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

Commit384497f

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 parent4985a45 commit384497f

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
@@ -1275,11 +1275,12 @@ default:\
12751275
<itemizedlist>
12761276
<listitem>
12771277
<para>
1278-
On <productname>Linux</productname>
1279-
<filename>/proc/sys/fs/file-max</filename> determines the
1280-
maximum number of open files that the kernel will support. It can
1281-
be changed by writing a different number into the file or by
1282-
adding an assignment in <filename>/etc/sysctl.conf</filename>.
1278+
On <productname>Linux</productname> the kernel parameter
1279+
<varname>fs.file-max</varname> determines the maximum number of open
1280+
files that the kernel will support. It can be changed with
1281+
<literal>sysctl -w fs.file-max=<replaceable>N</replaceable></literal>.
1282+
To make the setting persist across reboots, add an assignment
1283+
in <filename>/etc/sysctl.conf</filename>.
12831284
The maximum limit of files per process is fixed at the time the
12841285
kernel is compiled; see
12851286
<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
@@ -4949,7 +4949,7 @@ SubPostmasterMain(int argc, char *argv[])
49494949
* If testing EXEC_BACKEND on Linux, you should run this as root before
49504950
* starting the postmaster:
49514951
*
4952-
*echo 0 >/proc/sys/kernel/randomize_va_space
4952+
*sysctl -wkernel.randomize_va_space=0
49534953
*
49544954
* This prevents using randomized stack and code addresses that cause the
49554955
* child process's memory map to be different from the parent's, making it

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp