aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-08-23 09:41:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-08-23 09:41:53 -0400
commitd53ff6a44b32c15dd150c383ffbe4b0f5dd13037 (patch)
tree3fcce677fce0f2c6b95adabf2e1798a5e8486b37 /doc/src
parent42681dffafa2f9dea3e034d0c29a3f1a7b3b07e8 (diff)
downloadpostgresql-d53ff6a44b32c15dd150c383ffbe4b0f5dd13037.tar.gz
postgresql-d53ff6a44b32c15dd150c383ffbe4b0f5dd13037.zip
Doc: prefer sysctl to /proc/sys in docs and comments.
sysctl is more portable than Linux's /proc/sys file tree, and often easier to use too. That's why most of our docs refer to sysctl 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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/runtime.sgml11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index c27c703aa1c..b9c4e611aaa 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -1277,11 +1277,12 @@ default:\
<itemizedlist>
<listitem>
<para>
- On <productname>Linux</productname>
- <filename>/proc/sys/fs/file-max</filename> determines the
- maximum number of open files that the kernel will support. It can
- be changed by writing a different number into the file or by
- adding an assignment in <filename>/etc/sysctl.conf</filename>.
+ On <productname>Linux</productname> the kernel parameter
+ <varname>fs.file-max</varname> determines the maximum number of open
+ files that the kernel will support. It can be changed with
+ <literal>sysctl -w fs.file-max=<replaceable>N</replaceable></literal>.
+ To make the setting persist across reboots, add an assignment
+ in <filename>/etc/sysctl.conf</filename>.
The maximum limit of files per process is fixed at the time the
kernel is compiled; see
<filename>/usr/src/linux/Documentation/proc.txt</filename> for