Skip to content

Commit e4aded7

Browse files
kallimachoskay-kim
authored andcommitted
DOCS-10721 Document locked memory ulimit
1 parent 4ed1f86 commit e4aded7

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

source/reference/ulimit.txt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ system limits, as in the following example:
104104
-m: resident set size (kbytes) unlimited
105105
-u: processes 192276
106106
-n: file descriptors 21000
107-
-l: locked-in-memory size (kb) 40000
107+
-l: locked-in-memory size (kb) unlimited
108108
-v: address space (kb) unlimited
109109
-x: file locks unlimited
110110
-i: pending signals 192276
@@ -158,7 +158,7 @@ process.
158158

159159
Depending on your system's configuration, and default settings, any
160160
change to system limits made using ``ulimit`` may revert following
161-
system a system restart. Check your distribution and operating
161+
a system restart. Check your distribution and operating
162162
system documentation for more information.
163163

164164
.. include:: /includes/note-suse-ulimit.rst
@@ -175,6 +175,7 @@ the following thresholds and settings are particularly important for
175175
- ``-f`` (file size): ``unlimited``
176176
- ``-t`` (cpu time): ``unlimited``
177177
- ``-v`` (virtual memory): ``unlimited`` [#memory-size]_
178+
- ``-l`` (locked-in-memory size): ``unlimited``
178179
- ``-n`` (open files): ``64000``
179180
- ``-m`` (memory size): ``unlimited`` [#memory-size]_ [#rss-linux]_
180181
- ``-u`` (processes/threads): ``64000``
@@ -196,11 +197,12 @@ example:
196197

197198
.. code-block:: sh
198199

199-
limit fsize unlimited unlimited # (file size)
200-
limit cpu unlimited unlimited # (cpu time)
201-
limit as unlimited unlimited # (virtual memory size)
202-
limit nofile 64000 64000 # (open files)
203-
limit nproc 64000 64000 # (processes/threads)
200+
limit fsize unlimited unlimited # (file size)
201+
limit cpu unlimited unlimited # (cpu time)
202+
limit as unlimited unlimited # (virtual memory size)
203+
limit memlock unlimited unlimited # (locked-in-memory size)
204+
limit nofile 64000 64000 # (open files)
205+
limit nproc 64000 64000 # (processes/threads)
204206

205207
Each ``limit`` stanza sets the "soft" limit to the first value specified and the "hard"
206208
limit to the second.
@@ -236,6 +238,8 @@ example:
236238
LimitCPU=infinity
237239
# (virtual memory size)
238240
LimitAS=infinity
241+
# (locked-in-memory size)
242+
LimitMEMLOCK=infinity
239243
# (open files)
240244
LimitNOFILE=64000
241245
# (processes/threads)

0 commit comments

Comments
 (0)