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

Commit4ee6740

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 parentbd67b7e commit4ee6740

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
@@ -1258,11 +1258,12 @@ default:\
12581258
<itemizedlist>
12591259
<listitem>
12601260
<para>
1261-
On <productname>Linux</productname>
1262-
<filename>/proc/sys/fs/file-max</filename> determines the
1263-
maximum number of open files that the kernel will support. It can
1264-
be changed by writing a different number into the file or by
1265-
adding an assignment in <filename>/etc/sysctl.conf</filename>.
1261+
On <productname>Linux</productname> the kernel parameter
1262+
<varname>fs.file-max</varname> determines the maximum number of open
1263+
files that the kernel will support. It can be changed with
1264+
<literal>sysctl -w fs.file-max=<replaceable>N</replaceable></literal>.
1265+
To make the setting persist across reboots, add an assignment
1266+
in <filename>/etc/sysctl.conf</filename>.
12661267
The maximum limit of files per process is fixed at the time the
12671268
kernel is compiled; see
12681269
<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
@@ -4891,7 +4891,7 @@ SubPostmasterMain(int argc, char *argv[])
48914891
* If testing EXEC_BACKEND on Linux, you should run this as root before
48924892
* starting the postmaster:
48934893
*
4894-
*echo 0 >/proc/sys/kernel/randomize_va_space
4894+
*sysctl -wkernel.randomize_va_space=0
48954895
*
48964896
* This prevents using randomized stack and code addresses that cause the
48974897
* child process's memory map to be different from the parent's, making it

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp