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

Commiteb0097c

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 parent6d05d57 commiteb0097c

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp